Commit Graph

295 Commits (master)

Author SHA1 Message Date
Adam Warner 5421aad03e
Store versions as key/value pairs rather than space delimeted values
2 years ago
Adam Warner 5816f495f4
Fix test_installPiholeWeb_fresh_install_no_errors and test_installPihole_fresh_install_readableBlockpage
2 years ago
Adam Warner 71bc237639
Merge pull request #4828 from pi-hole/centos7-can-do-one
2 years ago
Adam Warner 9028898ba7
Move code from `check_epel_repo_required` into the rpm branch of the if check on package_manager_detect(), adjust tests to accommodate
2 years ago
Adam Warner fc2a564cc0
remove tests no longer needed
2 years ago
Adam Warner b613758419
rename select_rpm_php and simplify it to remove code no longer needed (discussed internally removing the unsupported dialog here to match behaviour on non rpm distros)
2 years ago
Adam Warner 9c03915cb0
Remove special Centos7 hand holds. Move the unsupported dialog out to a further if block so that a user may still continue to install on centos7 (provided they have the pre-requisites installed)
2 years ago
Adam Warner e29aa4e205
First things first...
2 years ago
Christian König ab6b37bdcf
Fix stickler and codefactor complaints
2 years ago
Christian König c8c4eb59b7
Add getFTLPID() tests
2 years ago
Christian König 2651abbe6c
Add tests
2 years ago
Christian König 7b77d991df
Move FTL port and PID functions to utils.sh
2 years ago
Adam Warner 21af75a2d2
Ubuntu 21 tests are failing entirely. apt-update does not work on an impish vm, either
2 years ago
Christian König 9f918972d2 Adjust tests
2 years ago
Christian König 518cbd10e0
Rename also in docker files
2 years ago
Dan Schaper 0b10c50a0b
Merge branch 'development' into tweak/dialog
2 years ago
Dan Schaper 6efb3a3372
Fix for epel mirror timeouts
2 years ago
Dan Schaper 2845c72bde Add testing dependencies for CentOS7 and dialog
2 years ago
Dan Schaper a650641da4 Change tests to mock dialog
2 years ago
Dan Schaper 80bef5f6b6
Direct pull for epel-release
2 years ago
Adam Warner 0be987239e
Adds spellcheck action to the smoke-tests (also moves editorconfig-checker to smoketests away from it's own action)
2 years ago
Christian König f740e0fefb
Ubt22 is jammy not impish
2 years ago
Christian König 8c498acd4c
Re-add Ubuntu21 tests
2 years ago
Christian König f9d1893f96
Update test to reflect currently supported OS
2 years ago
Christian König 2c07d27ad7 Forgot two places
2 years ago
Christian König 0fa94e0946
Remove unused test which was commented since 5 years by PR 1244
2 years ago
Adam Warner 73aa43611f
Merge pull request #4700 from spmfox/4697-centos8-container-ftl-arch
2 years ago
Dan Schaper c19788dd18
Mock `which sh` to reutrn `/bin/sh`.
2 years ago
Adam Warner 8de814ab34
Split the tests, too. Enhance the descriptions
2 years ago
spmfox 2601162243 Changed ldd binary check from /bin/ls to /usr/bin/bash
2 years ago
Adam Warner db116971ce
I tried to do too many things in one function, vastly overcomplicating what should have been _this_ all along
2 years ago
yubiuser d3e94cbceb
Merge pull request #4653 from pi-hole/refactor-utils-redux
2 years ago
Adam Warner 4d31d5ee11
Address review comments
2 years ago
Adam Warner 7fa8cdd03e
Address:
2 years ago
Dan Schaper 4230be0c80
Hirsute buildpack EOL upstream. Adding impish.
2 years ago
Adam Warner 48138d32b6
Adjust addOrEditKeyValPair to optionally take two or three arguments (adjust test to suit)
2 years ago
Christian König 42424b515b Add getFTLAPIPort function
2 years ago
Christian König d7d8e9730b Remove pihole-FTL.conf.5 from automated tests
2 years ago
Adam Warner 444526ad58
Switch from centos8 to centos8:stream base image for centos 8 tests
2 years ago
Adam Warner 77e5121d43
Split new function out into a separte utility script and add a test for it. Can be used in future to organise re/commonly-used code
2 years ago
MichaIng 14a379d448
Fix generated /etc/os-release file in OS check test
2 years ago
Adam Warner cdd4d9ea9e
Update the tests (#4427)
2 years ago
pvogt09 cedd1a2591
unit test for umask problems in #3177 and #2730 (#3191)
3 years ago
Blayne Campbell 8713135b01
update tests: remove fedora 32, add fedora 34 (#4403)
3 years ago
Adam Warner 5b03160295
Install script comment tweaks (#4361)
3 years ago
Christian König 466520366d Fogot to save...
3 years ago
Christian König 9dbcbdbe66 Adjust tests
3 years ago
yubiuser 1c286c7bc4
Select proper PHP version on RPM based OS after INSTALLER_DEPS have been installed (#4325)
3 years ago
Adam Warner d68a2ffaf3
Install only minimal requiered package before performing os_check
3 years ago
Adam Warner 1358209a9a
rename distro_check to package_manager_detect, as it is more in keeping with what the function actually does
3 years ago
Adam Warner 38d4b2a883
add OS_CHECK_DOMAIN_NAME override to all the dockerfiles
3 years ago
Adam Warner e2e7d0a6aa
add tests for ubuntu 21
3 years ago
Daniel fdca19e66d Support and test Debian Bullsye (11)
3 years ago
Adam Warner 4ac4bc5c18
Merge branch 'development' into fix/gravity_no_locallist
3 years ago
Adam Warner 87f2ae82cd
Stickler gonna stickle...
3 years ago
Adam Warner 469b715442
Add three new tests (one for each dependecy array) to check packages are available in supported OS package repos
3 years ago
DL6ER 60513f93a3
Don't set IPV{4,6}_ADDRESS in conftest.py
3 years ago
DL6ER aa88be335e
Acknowledge that IPV{4,6}_ADDRESS may not exist
3 years ago
DL6ER 74948ae5c1
The correct port separator is '#' not ':' in dnsmasq style. This should not have been changed in #4083 in the first place.
3 years ago
bcambl d5f13018a7 Merge branch 'release/v5.3' into fedora_33_support
3 years ago
jbzdarkid 8090071eff Update regex to disallow leading zeros
3 years ago
Joseph Blackman 89c80947df Improve regexes for ipv4 matching
3 years ago
bcambl b62495d89e update tests to fedora 33
3 years ago
Adam Warner d1539335bc
appease stickler-ci
3 years ago
Adam Warner 3e73782f0e
Remove Travis CI config
3 years ago
Adam Warner 2a82e1fec1
Nothing to see here. I just forgot a page.
4 years ago
Adam Warner f7982dfbe1
-remove duplicate OS dockerfiles
4 years ago
pvogt09 b375dd2c81 Update test/ubuntu_20.Dockerfile
4 years ago
pvogt09 4386cc4f22 Revert "add test case for installation of dependencies for installer, core and web"
4 years ago
pvogt09 cb49ce38f5 fix stickler errors
4 years ago
pvogt09 3128d14d1f update images to versions supported by pi-hole 5
4 years ago
pvogt09 bef9cd3bc2 mock whiptail to add universe repo
4 years ago
pvogt09 60a4814ac1 add test case for installation of dependencies for installer, core and web
4 years ago
pvogt09 fec1595183 add docker containers for debian 9 and 10, ubuntu 16 and 18, fedora 28 and 29
4 years ago
Adam Warner c80f0766c5
drop debian/fedora container versions to lowest supported
4 years ago
Adam Warner fb454ebe14
fix stickler complaints
4 years ago
Adam Warner ee556088b5
Fake OS details in /etc/os-release and confirm install fails
4 years ago
bcambl 660c17814d
E128 continuation line under-indented for visual indent
4 years ago
bcambl a7c58e7112
E302 expected 2 blank lines, found 1
4 years ago
bcambl 05b6717187
test PHP optin/optout separately for CentOS 7 & 8
4 years ago
bcambl 2c461460db
test with both centos7 and centos8 images
4 years ago
Adam Warner 5aab68ab41
Update test/test_automated_install.py
4 years ago
Adam Warner c9edcfa335
add test to check "os_check" works
4 years ago
Adam Warner 33e5735053
Change base images for test containers to latest supported version
4 years ago
Adam Warner de02bcc8a0
Merge pull request #3787 from pi-hole/verdantfire
4 years ago
DL6ER 01c9bbd3ca
Improve processor detection to use the new dedicated ARMv4T, ARMv5TE and ARMv8-A binaries we provide for FTL.
4 years ago
verdantfire b88efd2527
fixed small grammatical error
4 years ago
Adam Warner 9e96ff37de
Fix merge conflicts
4 years ago
Adam Warner a37dba2c81
remove configureFirewall function, the call to it, and related tests
4 years ago
pvogt09 25c5661c1b fix stickler errors
4 years ago
pvogt09 a993b8b34d fixes #3217 by checking for existing pihole group
4 years ago
XhmikosR 7b8611ced0
Assorted typo fixes. (#3126)
4 years ago
jnozsc 4a711340ef
use py3 instead py2 (#3153)
4 years ago
Adam Warner 12817c09bb
(Squashed commits)
5 years ago
bcambl cf2b021502 linting: E302 expected 2 blank lines, found 1
5 years ago
bcambl cd9b1fcb8c update tests for SELinux changes
5 years ago
Adam Warner 9a6deb5a1a
Fix tests
5 years ago
Mcat12 1d5755a4c2
Add tests for valid_ip
5 years ago
bcambl 218476fab0 ensure installation dependencies for FTL tests which rely on /etc/init.d
5 years ago
bcambl c48b03584f update Fedora Dockerfile to 30
5 years ago
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