DL6ER
01e091fd17
Prefer ULA over GUA addresses [IPv6] ( #1508 )
...
* On installs with GUA and ULA's we should prefer ULA's as it's been demonstrated that GUA's can and often are rotated by ISPs. Fixes #1473
* Add test for link-local address detection
* Add ULA-only and GUA-only tests
* Add test_IPv6_GUA_ULA_test and test_IPv6_ULA_GUA_test
* Add ""
* Add mock_command_2 command that can mock a command with more than one argument (as "ip -6 address") and result multiple lines of results
* Make mock_command_2 more similar to the original mock_command
* Correct comments
* Fixed remaining comments
* Fixed one last comment...
* Fixed a comment...
7 years ago
georou
6c56665403
updated travis for new firewalld add service
8 years ago
Dan Schaper
dcb9797f35
Tests changed to reflect `uname` calls.
...
Signed-off-by: Dan Schaper <dan.schaper@pi-hole.net>
8 years ago
DL6ER
e9b50442fa
Remove test_FTL_support_files_installed as we create them using the init.d script as of now
8 years ago
Dan Schaper
02ea9b9abc
Check file path and permissions in one go.
...
Signed-off-by: Dan Schaper <dan.schaper@pi-hole.net>
8 years ago
Dan Schaper
4cd598ae10
Check support files installed and permissions.
...
Signed-off-by: Dan Schaper <dan.schaper@pi-hole.net>
8 years ago
Dan Schaper
8eeb8ad779
Check binary installed and functional.
...
Signed-off-by: Dan Schaper <dan.schaper@pi-hole.net>
8 years ago
Dan Schaper
70e876ee13
Download tests.
...
Make sure we download a binary and not just get the GitHub page.
Signed-off-by: Dan Schaper <dan.schaper@pi-hole.net>
8 years ago
Dan Schaper
7a269e757e
Debian buildpack image for docker (Need `curl` for testing, using scm version to add `curl` and `git`.)
...
Signed-off-by: Dan Schaper <dan.schaper@pi-hole.net>
8 years ago
Dan Schaper
87edbeaf58
Factor out downloader from detector function.
...
Signed-off-by: Dan Schaper <dan.schaper@pi-hole.net>
8 years ago
Dan Schaper
339f95b00c
Change from `uname -m` to straight `arch`
...
Signed-off-by: Dan Schaper <dan.schaper@pi-hole.net>
8 years ago
Dan Schaper
e480c761cd
Merge remote-tracking branch 'origin/new/FTL-binary' into new/FTL-binary
...
# Conflicts:
# test/test_automated_install.py
8 years ago
Dan Schaper
26c628f8a5
Mock ldd command response.
...
Test aarch64 detection
Arm v6/v7 little endian.
x86_64 native
Test aarch64 detection
Unknown platform detection.
Signed-off-by: Dan Schaper <dan.schaper@pi-hole.net>
8 years ago
Dan Schaper
59d6907d71
Test aarch64 detection
...
Signed-off-by: Dan Schaper <dan.schaper@pi-hole.net>
8 years ago
Dan Schaper
b4450a3918
Mock ldd command response.
...
Test aarch64 detection
Signed-off-by: Dan Schaper <dan.schaper@pi-hole.net>
8 years ago
Dan Schaper
7032be6049
Template for FTL engine type tests.
...
Signed-off-by: Dan Schaper <dan.schaper@pi-hole.net>
8 years ago
Dan Schaper
439999cb62
Last rule check.
8 years ago
Dan Schaper
409f76aa34
Error check.
8 years ago
Dan Schaper
54e2c6181a
Populate all required variables with a distro check.
8 years ago
Dan Schaper
2a5587f236
Test for failure.
8 years ago
Dan Schaper
2d18b2d784
Start test templates.
8 years ago
Dan Schaper
d5587e32d0
Populated directory test
8 years ago
Dan Schaper
28eb348707
Individual Page tests
8 years ago
Dan Schaper
91bcc18e6a
Make full path to directory for pihole web page.
8 years ago
Dan Schaper
5b43f13935
Fresh install web page directory tests
8 years ago
Dan Schaper
0bbe0aed83
Last of the IPTables tests, new test rig is operating.
8 years ago
Dan Schaper
b16f797317
`firewall-cmd --state` returns 0 on 'running' non 0 on 'not running',
...
so check retval and not text returned.
FirewallD conversion to multicall
IPTables test
8 years ago
Dan Schaper
4bb71ae046
IPtables tests.
...
mock commands for iptables check.
Test setting IPTables ruleset.
Test setting IPTables ruleset.
Test for already configured IPTables rules.
Test for addition of iptables rules.
Can only mock so deep in the commands.
8 years ago
Dan Schaper
679b098aa7
No firewall enabled test.
8 years ago
Dan Schaper
e0e88fdb52
Start IPTables test, get baseline for commands in the container. See
...
what we have to mock to start testing.
8 years ago
Dan Schaper
8529c1287f
Full test suite for firewallD configuration.
8 years ago
Dan Schaper
9c7f7756b4
Revert second test.
8 years ago
Dan Schaper
f1cfb16bf9
Test firewallD enabled and disabled.
8 years ago
Dan Schaper
95796e1978
Only expect text output, not the leader `:::`
8 years ago
Dan Schaper
968b981ecb
Try mocking whiptail
8 years ago
Dan Schaper
3aeb378b56
Fix moved incorrect blocks.
8 years ago
Dan Schaper
28bafe7427
Rename test for firewallD, running state.
8 years ago
Dan Schaper
1317b67657
Attempt at modifying firewall rules for testing.
8 years ago
Dan Schaper
a48518d234
Update test rig for new firewalld
...
Signed-off-by: Dan Schaper <dan.schaper@pi-hole.net>
8 years ago
Dan Schaper
3ca21d8c8a
Merge pull request #931 from pi-hole/update_tests
...
Add piholeDebug to CI Travis 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
...
* Comments to clarify some of the existing tests
* mock_command to allow recording of calls and mocking return calls in bash
* new configureFirewall test (only the first one of it's many paths)
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
...
Should be useful for showing others why other changes were made in the next commit.
8 years ago
diginc
a03caea549
setupVar tests passing for debian & centos
8 years ago