mirror of
https://github.com/pi-hole/pi-hole.git
synced 2025-04-21 23:00:18 +00:00
specify DNS server for cURL
Signed-off-by: pvogt09 <50047961+pvogt09@users.noreply.github.com>
This commit is contained in:
parent
e665998160
commit
e3a5744a0b
1 changed files with 6 additions and 6 deletions
|
@ -559,13 +559,13 @@ def test_installPihole_fresh_install_readableBlockpage(Pihole, test_webpage):
|
||||||
print(b.stdout)
|
print(b.stdout)
|
||||||
b = Pihole.run('chmod a+x $(which pihole-FTL)');
|
b = Pihole.run('chmod a+x $(which pihole-FTL)');
|
||||||
print(b.stdout)
|
print(b.stdout)
|
||||||
b = Pihole.run('su --shell /bin/bash --command "pihole-FTL version" -p root');
|
b = Pihole.run('pihole-FTL version');
|
||||||
print(b.stdout)
|
print(b.stdout)
|
||||||
b = Pihole.run('su --shell /bin/bash --command "pihole-FTL tag" -p root');
|
b = Pihole.run('pihole-FTL tag');
|
||||||
print(b.stdout)
|
print(b.stdout)
|
||||||
b = Pihole.run('su --shell /bin/bash --command "pihole-FTL branch" -p root');
|
b = Pihole.run('pihole-FTL branch');
|
||||||
print(b.stdout)
|
print(b.stdout)
|
||||||
b = Pihole.run('su --shell /bin/bash --command "pihole-FTL test" -p root');
|
b = Pihole.run('pihole-FTL test');
|
||||||
print(b.stdout)
|
print(b.stdout)
|
||||||
b = Pihole.run('ldd $(which pihole-FTL)');
|
b = Pihole.run('ldd $(which pihole-FTL)');
|
||||||
print(b.stdout)
|
print(b.stdout)
|
||||||
|
@ -678,10 +678,10 @@ def test_installPihole_fresh_install_readableBlockpage(Pihole, test_webpage):
|
||||||
r"Permission denied in"),
|
r"Permission denied in"),
|
||||||
re.I)
|
re.I)
|
||||||
status = (
|
status = (
|
||||||
'curl -s --head "{}" | ' +
|
'curl --dns-servers 127.0.0.1 -s --head "{}" | ' +
|
||||||
'head -n 1 | ' +
|
'head -n 1 | ' +
|
||||||
'grep "HTTP/1.[01] [23].." > /dev/null')
|
'grep "HTTP/1.[01] [23].." > /dev/null')
|
||||||
pagecontent = 'curl --verbose -L "{}"'
|
pagecontent = 'curl --dns-servers 127.0.0.1 --verbose -L "{}"'
|
||||||
for page in piholeWebpage:
|
for page in piholeWebpage:
|
||||||
# check HTTP status of blockpage
|
# check HTTP status of blockpage
|
||||||
actual_rc = Pihole.run(status.format(page))
|
actual_rc = Pihole.run(status.format(page))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue