DL6ER
a24e187486
Add individual reply counters as well as their sum to the API + ensure we subtract from the previous reply counter when setting a new status
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2022-03-26 13:22:51 +01:00
Christian König
1e880d3c80
penny-pitchy
...
Signed-off-by: Christian König <ckoenig@posteo.de >
2022-02-12 13:21:05 +01:00
Christian König
7417a83a10
Rename upstream blocklist to blocked
...
Signed-off-by: Christian König <ckoenig@posteo.de >
2022-02-12 10:08:23 +01:00
DL6ER
3f472e971b
Merge branch 'development' into update/dnsmasq
2022-02-05 09:53:45 +01:00
Johnny S. Lee via Dnsmasq-discuss
e6c4c29417
Fix FTBFS on BSD platforms.
...
Bug introduced in fc664d114d6e11ced4912b746f18d543f662066b
Signed-off-by: DL6ER <dl6er@dl6er.de >
2022-02-04 17:28:30 +01:00
Adam Warner
86f7f2a2dd
Merge pull request #1293 from pi-hole/new/force_ip46
...
Deprecate REPLY_ADDR4/6 in favor of more fine-grained setting
2022-02-03 18:16:22 +00:00
DL6ER
5a8a063848
Merge branch 'development' into update/dnsmasq
2022-02-03 16:25:21 +01:00
DL6ER
ed73b76241
Merge pull request #1285 from pi-hole/new/database_reply_replytime_dnssec
...
Keep Query Log details across FTL restart
2022-02-02 06:10:34 +01:00
yubiuser
7afefbf7b1
Update test/test_suite.bats
2022-02-01 21:46:32 +01:00
DL6ER
23776e6c08
Add tests for LOCAL_IPV4/6 and BLOCK_IPV4/6
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2022-02-01 14:17:35 +01:00
DL6ER
a20d833bab
Tests: Add maxloagage test
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2022-02-01 09:47:46 +01:00
DL6ER
279a300f2d
Merge pull request #1289 from pi-hole/tweak/build-scripts
...
Tidy Up CI scripts - untangle from variables named after CircleCI
2022-01-23 17:11:09 +01:00
Adam Warner
c0cf8de918
Rename CI variables to remove CIRCLE references, as we no longer use Circle CI. Also remove circle config.
...
Tweak build script to accept a `test` argument, and also to accept the existing arguments at any position
Signed-off-by: Adam Warner <me@adamwarner.co.uk >
2022-01-23 15:04:20 +00:00
DL6ER
b7904f1147
Test: Add CLI regex-test extension tests
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2022-01-22 13:48:12 +01:00
DL6ER
ae5247a453
Merge pull request #1284 from pi-hole/tweak/upstream_pie_others
...
Add others section to upstream servers pie chart
2022-01-21 04:47:43 +01:00
DL6ER
14db6b47a4
Add others section to upstream servers pie chart
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2022-01-21 04:39:49 +01:00
DL6ER
4994e59282
Add new reply, reply_time, and dnssec columns to the query_storage table and queries view
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2022-01-19 19:38:44 +01:00
DL6ER
fd2a633d20
Use FTLs embedded SQLite3 engine for the tests instead of relying whatever the system may be providing
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2022-01-18 15:37:42 +01:00
DL6ER
ad4712be75
Merge branch 'development' into update/dnsmasq
2022-01-16 22:05:18 +01:00
DL6ER
380eaab4ed
Tests: Adjust expected dnsmasq warnings
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2022-01-12 21:11:17 +01:00
DL6ER
8cdc8ed48a
Merge branch 'development' into new/optimize-queries
2022-01-05 20:50:27 +01:00
DL6ER
43f79ae011
Test: API reports DNS server port
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2021-12-28 11:22:25 +01:00
DL6ER
4516ee22b0
Do not use AUTOINCREMENT as it will add gaps between the IDs even if nothing is actually INSERTed as we chose the OR IGNORE path.
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2021-12-16 22:30:30 +01:00
DL6ER
f350ce5729
Create and use link table for additional_info column
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2021-12-16 22:10:17 +01:00
DL6ER
d134a4943a
Use the SQLITE_PREPARE_PERSISTENT flag is a hint to the query planner that the prepared statement will be retained for a long time and probably reused many times. Without this flag, SQLite3 assumes that the prepared statement will be used just once or at most a few times and then destroyed relatively soon. The current implementation acts on this hint by avoiding the use of [lookaside memory] so as not to deplete the limited store of lookaside memory. Also, update the tests for the expected database schema after renaming the table and adding the new view.
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2021-12-16 12:28:19 +01:00
DL6ER
9c16f71ef7
Merge pull request #1246 from pi-hole/test/dnsmasq_warnings
...
Test for dnsmasq warning messages in source code
2021-12-02 09:31:53 +01:00
DL6ER
ff16446392
Review suggestion + we should not warn about load on the CI as this is out of our control
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2021-11-29 18:55:01 +01:00
DL6ER
6d7bbcb91c
Add options CHECK_LOAD, CHECK_SHMEM, and CHECK_DISK to control checking levels and disabling warnings.
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2021-11-29 15:53:41 +01:00
DL6ER
2599cf19ff
Test for warnings defined in dnsmasq's source code
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2021-11-24 22:06:50 +01:00
DL6ER
37d3706382
Improve virtual interface analysis
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2021-11-05 17:36:09 +01:00
Christian König
3ef0f24baa
Add a test to check if Pi-hole version is printed in interactive mode
...
Signed-off-by: Christian König <ckoenig@posteo.de >
2021-10-24 21:49:15 +02:00
Petr Menšík
5715fe5bce
Allow use of system bats
...
Checkout latest version of bats only if BATS is not set already. Allow
using custom path, system bats instance for example.
Signed-off-by: Petr Menšík <pemensik@redhat.com >
2021-10-20 14:36:35 +02:00
Petr Menšík
26be7b621f
Pass test even with dig supporting SVCB and HTTPS RRs
...
BIND 9.16.21 displays SVCB in text form. Compare always unknown style,
even if that record is known.
Signed-off-by: Petr Menšík <pemensik@redhat.com >
2021-10-20 12:26:31 +02:00
Petr Menšík
233777758e
Use Fedora's pdns path and local forwarders
...
pdns-recursor config path is different from both Debian and Alpine.
Detect also Fedora specific path.
Signed-off-by: Petr Menšík <pemensik@redhat.com >
2021-10-20 12:26:31 +02:00
yubiuser
65c9fc0147
Simplify vw_adlist
...
Signed-off-by: yubiuser <ckoenig@posteo.de >
2021-10-13 22:24:03 +01:00
Adam Warner
f7f349b9e0
Split workflow up into distinct jobs, each depending on the previous part
...
1 - Define some outputs to be used by the other jobs
2 - Build and Test x86_64/32 binaries - if not pull request, attach binaries to workflow run as artifacts
3 - Build arm/aarch64 binaries - if not pull request, attach binaries to workflow run as artifacts
4 - If not a pull request, download binaries from artifact store, and upload binaries via SSH. If it is a release, then attach binaries to release
Move from scp-action action to just running the plain sftp command
pdns-doc is now included in the build container so no need to add it in the test setup.
Co-authored-by: DL6ER <DL6ER@users.noreply.github.com >
Signed-off-by: Adam Warner <me@adamwarner.co.uk >
2021-10-10 21:21:19 +01:00
DL6ER
e625d197d9
Inline local DNS tests
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2021-10-10 16:17:13 +02:00
DL6ER
b618e1db48
Send the HTTPS/SVCB queries to the authorative server without detour over the recursor because the latter returns SEVFAIL (connection between authorative server and recursor is not encrypted)
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2021-10-10 13:36:02 +02:00
DL6ER
c3bf7d216d
Special handling for Alpine added, almost everything is different. Alpine is not even able to start pdns unless you create some extra directories for it.
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2021-10-10 13:06:12 +02:00
DL6ER
8be285c375
Speed up regex option tests by predefining them instead of injecting during runtime
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2021-10-10 12:10:13 +02:00
DL6ER
73b0d6dc2a
Adjust tests to reflect changed DNS config
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2021-10-10 12:08:52 +02:00
DL6ER
4d7dafccd8
Add DNSSEC test cases
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2021-10-10 12:08:52 +02:00
DL6ER
02154d2023
Add powerDNS to the CI testing suite to serve zone ftl. locally
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2021-10-10 12:08:41 +02:00
DL6ER
5cc1679657
alpine gcc stopped adding -static-pie as special parameter with alpine:3.13+
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2021-10-09 19:01:23 +02:00
DL6ER
c87945ecf2
Tests: Pi-hole PTR generation check
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2021-10-04 12:14:13 +02:00
DL6ER
7ddbae58f4
Tests: Test shallow and deep CNAMEs for correct blocking
...
Signed-off-by: DL6ER <dl6er@dl6er.de >
2021-10-03 14:09:26 +02:00
Adam Warner
211dff6846
Fix a test that was already fixed, but then unfixed by a dodgy merge commit
...
Signed-off-by: Adam Warner <me@adamwarner.co.uk >
2021-09-29 19:23:52 +01:00
Adam Warner
a0355fe59f
Tweak expected result for line 8 in "Get all queries shows expected content"
...
Signed-off-by: Adam Warner <me@adamwarner.co.uk >
2021-09-29 19:02:42 +01:00
DL6ER
5ab7bf7797
Merge pull request #1162 from yubiuser/db_permissions
...
Change database permission to 664
2021-09-26 09:01:52 +02:00
yubiuser
5248461b7b
Change test suite to reflect changed file permissions
...
Signed-off-by: yubiuser <ckoenig@posteo.de >
2021-09-26 08:53:02 +02:00