Commit Graph

295 Commits (master)

Author SHA1 Message Date
Mcat12 d67122dffc
Pin the Fedora test docker container to 29
5 years ago
pvogt09 efbd42f7b5 Moves creation of pihole user before FTL installation
5 years ago
DL6ER 7479485d45
Add test for the case the binary variable is unset (defaults to "tbd" in this case)
5 years ago
DL6ER d26f2dcb2c
Use global binary variable in tests for automated install
5 years ago
Mark Drobnak 1789a2db29
Merge pull request #2384 from pi-hole/feature/install-privacy-level
6 years ago
bcambl 6f8e8e98bb update centos version check test
6 years ago
Mcat12 c22e94c9c7
Update test to include empty FTL config
6 years ago
DL6ER f5c3dc5d9d
Improve download error message that is shown when downloading or verifying the binary failed
6 years ago
Adam Hill b04195041a
Update README.md
6 years ago
Adam Hill 8ca4c66e3c
make smarter assertions rathe than `largestring not in string`
6 years ago
Adam Hill 449b7bf6e4
reduce the amount of strict `not in` checks
6 years ago
Adam Hill 88e4b6390c
Tox!
6 years ago
bcambl fff31558a0 assert REMI repository is not installed for Fedora
6 years ago
bcambl 4c23964964 ensure images are build prior to running tests
6 years ago
bcambl d4addd53ad Add tests for Fedora/CentOS distro_check
6 years ago
bcambl 09d40679c0 add test for unsupported distro checking
6 years ago
bcambl 553aad6ed2 add Fedora container to test matrix
6 years ago
bcambl 5ca2ad6148 move test globals & mock commands to conftest
6 years ago
bcambl 40537e1522 python linting: missing whitespace after ',' (E231)
6 years ago
bcambl 064a75b21b python linting: missing whitespace around operator (E225)
6 years ago
bcambl 1d3445bc0f python linting: whitespace after '(' and before ')' (E201 & E202)
6 years ago
bcambl 79232d02c9 python linting: 'pytest' imported but unused (F401)
6 years ago
bcambl 9bd4986781 python linting: whitespace before ':' (E203)
6 years ago
bcambl c3d443aaff python linting: lines > 79 characters (E501)
6 years ago
bcambl da3dfd0998 python linting: missing whitespace after ':' (E231)
6 years ago
bcambl 4468d81472 python linting: 2 lines prior to defs (E302)
6 years ago
bcambl 9d3d33b6a2 add tests for selinux checking
6 years ago
Adam Warner 8cf8da4c78
- Check file /etc/pihole/ftlbranch for current FTL branch, download from github if master, or pi-hole.net if other
6 years ago
WaLLy3K 26afe04926 Remove index.js test
7 years ago
Adam Warner 42b5574f9b
remove no longer needed tests
7 years ago
WaLLy3K fdf2649f2f Clean up known remaining colour output issues (#1613)
7 years ago
Mcat12 b09c660833 Always process DNS and DHCP settings in installer (#1630)
7 years ago
Adam Warner bf70c2c660
initial changes to tests to take into account changes to strings
7 years ago
Dan Schaper c29c4ceb0f
Integrate DL's update.sh fixes.
7 years ago
Dan Schaper 07fc047dd8
Remove testing for `debug` as this is getting a re-write by Jacob.
7 years ago
Dan Schaper 0c2827e130
Test exclusion for sourced files SC1090.
7 years ago
Adam Warner 536585b846 Colourise Core Output Text (#1471)
7 years ago
DL6ER 939055f19c Revert "Add FTL tests to the test suite (#1510)" (#1519)
7 years ago
DL6ER cf6a1ac9ad Add FTL tests to the test suite (#1510)
7 years ago
DL6ER 01e091fd17 Prefer ULA over GUA addresses [IPv6] (#1508)
7 years ago
georou 6c56665403 updated travis for new firewalld add service
7 years ago
Dan Schaper dcb9797f35
Tests changed to reflect `uname` calls.
7 years ago
DL6ER e9b50442fa
Remove test_FTL_support_files_installed as we create them using the init.d script as of now
7 years ago
Dan Schaper 02ea9b9abc
Check file path and permissions in one go.
7 years ago
Dan Schaper 4cd598ae10
Check support files installed and permissions.
7 years ago
Dan Schaper 8eeb8ad779
Check binary installed and functional.
7 years ago
Dan Schaper 70e876ee13
Download tests.
7 years ago
Dan Schaper 7a269e757e
Debian buildpack image for docker (Need `curl` for testing, using scm version to add `curl` and `git`.)
7 years ago
Dan Schaper 87edbeaf58
Factor out downloader from detector function.
7 years ago
Dan Schaper 339f95b00c
Change from `uname -m` to straight `arch`
7 years ago
Dan Schaper e480c761cd
Merge remote-tracking branch 'origin/new/FTL-binary' into new/FTL-binary
7 years ago
Dan Schaper 26c628f8a5
Mock ldd command response.
7 years ago
Dan Schaper 59d6907d71
Test aarch64 detection
7 years ago
Dan Schaper b4450a3918
Mock ldd command response.
7 years ago
Dan Schaper 7032be6049
Template for FTL engine type tests.
7 years ago
Dan Schaper 439999cb62
Last rule check.
7 years ago
Dan Schaper 409f76aa34
Error check.
7 years ago
Dan Schaper 54e2c6181a
Populate all required variables with a distro check.
7 years ago
Dan Schaper 2a5587f236
Test for failure.
7 years ago
Dan Schaper 2d18b2d784
Start test templates.
7 years ago
Dan Schaper d5587e32d0
Populated directory test
7 years ago
Dan Schaper 28eb348707
Individual Page tests
7 years ago
Dan Schaper 91bcc18e6a
Make full path to directory for pihole web page.
7 years ago
Dan Schaper 5b43f13935
Fresh install web page directory tests
7 years ago
Dan Schaper 0bbe0aed83
Last of the IPTables tests, new test rig is operating.
7 years ago
Dan Schaper b16f797317
`firewall-cmd --state` returns 0 on 'running' non 0 on 'not running',
7 years ago
Dan Schaper 4bb71ae046
IPtables tests.
7 years ago
Dan Schaper 679b098aa7
No firewall enabled test.
7 years ago
Dan Schaper e0e88fdb52
Start IPTables test, get baseline for commands in the container. See
7 years ago
Dan Schaper 8529c1287f
Full test suite for firewallD configuration.
7 years ago
Dan Schaper 9c7f7756b4
Revert second test.
7 years ago
Dan Schaper f1cfb16bf9
Test firewallD enabled and disabled.
7 years ago
Dan Schaper 95796e1978
Only expect text output, not the leader `:::`
7 years ago
Dan Schaper 968b981ecb
Try mocking whiptail
7 years ago
Dan Schaper 3aeb378b56
Fix moved incorrect blocks.
7 years ago
Dan Schaper 28bafe7427
Rename test for firewallD, running state.
7 years ago
Dan Schaper 1317b67657
Attempt at modifying firewall rules for testing.
7 years ago
Dan Schaper a48518d234
Update test rig for new firewalld
7 years ago
Dan Schaper 3ca21d8c8a Merge pull request #931 from pi-hole/update_tests
8 years ago
Dan Schaper 808503d526 Add piholeDebug to tests
8 years ago
diginc b9f3493dbc move PH_TRUE to Dockerfiles to DRY
8 years ago
Adam Hill c2930b0ca5 remove the debug print in mock_command
8 years ago
diginc 5b54b9cb11 update Pihole fixture comment
8 years ago
diginc d2f815bba7 no longer need to write bash test scripts
8 years ago
diginc a5a067d50f switching testinfra's Docker run from dash to bash
8 years ago
diginc 699e299345 add a comment about bash vs dash. future refact needed
8 years ago
diginc 05e114173d update comments, add configureFirewall test
8 years ago
diginc 0d7e06a141 remove old pytest output file
8 years ago
Dan Schaper a1a9a7fa9e Clarify which DNS entry we are modifying.
8 years ago
Dan Schaper 07029f93e3 Match team convention in naming.
8 years ago
Dan Schaper e99ef9c093 Cap the variables and echo out the proper environment.
8 years ago
Dan Schaper fef9ab674e Pi-hole CORE installer variables are being changed to standardize scripts.
8 years ago
diginc 7548d9a8fe point shellcheck at update.sh instead
8 years ago
diginc 97c44042e1 Adding failing shellcheck test and results
8 years ago
diginc a03caea549 setupVar tests passing for debian & centos
8 years ago