Skip to content

Commit

Permalink
Revert "Disable dnstest (goss-org#440)"
Browse files Browse the repository at this point in the history
This reverts commit 9c0d41f.
  • Loading branch information
aelsabbahy authored and BenjaminHerbert committed May 28, 2020
1 parent cc0f0a4 commit 85206b7
Show file tree
Hide file tree
Showing 16 changed files with 425 additions and 22 deletions.
2 changes: 1 addition & 1 deletion integration-tests/Dockerfile_alpine3.md5
Original file line number Diff line number Diff line change
@@ -1 +1 @@
e2f31142f9eff4b949ecf65aea93bfb1 Dockerfile_alpine3
9cc0707454b2455422e5e8b6a6c74edb Dockerfile_alpine3
2 changes: 1 addition & 1 deletion integration-tests/Dockerfile_arch.md5
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7743af2cd089e92858eca1715db25949 Dockerfile_arch
f73a8fa9e9c0940ce2bfc09c13c3aaf5 Dockerfile_arch
2 changes: 1 addition & 1 deletion integration-tests/Dockerfile_centos7.md5
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4797d326767d26e936b553055a4e2f24 Dockerfile_centos7
4df4f4463945687a115a13b11649dfb0 Dockerfile_centos7
2 changes: 1 addition & 1 deletion integration-tests/Dockerfile_precise.md5
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5de599504ae6f300201f2be6f9607500 Dockerfile_precise
61ff5e338511ab02b4149e2a63ff311d Dockerfile_precise
2 changes: 1 addition & 1 deletion integration-tests/Dockerfile_wheezy.md5
Original file line number Diff line number Diff line change
@@ -1 +1 @@
04b0e1f5616bb710145e9efd3d27d5b0 Dockerfile_wheezy
fe21d74d27c0dc3a013bedadb05e75d5 Dockerfile_wheezy
32 changes: 32 additions & 0 deletions integration-tests/goss/alpine3/goss-expected-q.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,38 @@ command:
stderr: []
timeout: 10000
dns:
CAA:dnstest.io:
resolvable: true
timeout: 1000
server: 8.8.8.8
CNAME:c.dnstest.io:
resolvable: true
timeout: 1000
server: 8.8.8.8
MX:dnstest.io:
resolvable: true
timeout: 1000
server: 8.8.8.8
NS:dnstest.io:
resolvable: true
timeout: 1000
server: 8.8.8.8
PTR:8.8.8.8:
resolvable: true
timeout: 1000
server: 8.8.8.8
SRV:_https._tcp.dnstest.io:
resolvable: true
timeout: 1000
server: 8.8.8.8
TXT:txt._test.dnstest.io:
resolvable: true
timeout: 1000
server: 8.8.8.8
ip6.dnstest.io:
resolvable: true
timeout: 1000
server: 8.8.8.8
localhost:
resolvable: true
timeout: 1000
Expand Down
53 changes: 53 additions & 0 deletions integration-tests/goss/alpine3/goss-expected.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,59 @@ command:
- 'sh: foobar: not found'
timeout: 10000
dns:
CAA:dnstest.io:
resolvable: true
addrs:
- 0 issue comodoca.com
- 0 issue letsencrypt.org
- 0 issuewild ;
timeout: 1000
server: 8.8.8.8
CNAME:c.dnstest.io:
resolvable: true
addrs:
- a.dnstest.io.
timeout: 1000
server: 8.8.8.8
MX:dnstest.io:
resolvable: true
addrs:
- 10 b.dnstest.io.
- 5 a.dnstest.io.
timeout: 1000
server: 8.8.8.8
NS:dnstest.io:
resolvable: true
addrs:
- ns1.dnstest.io.
- ns2.dnstest.io.
timeout: 1000
server: 8.8.8.8
PTR:8.8.8.8:
resolvable: true
addrs:
- google-public-dns-a.google.com.
timeout: 1000
server: 8.8.8.8
SRV:_https._tcp.dnstest.io:
resolvable: true
addrs:
- 0 5 443 a.dnstest.io.
- 10 10 443 b.dnstest.io.
timeout: 1000
server: 8.8.8.8
TXT:txt._test.dnstest.io:
resolvable: true
addrs:
- Hello DNS
timeout: 1000
server: 8.8.8.8
ip6.dnstest.io:
resolvable: true
addrs:
- 2404:6800:4001:807::200e
timeout: 1000
server: 8.8.8.8
localhost:
resolvable: true
addrs:
Expand Down
32 changes: 32 additions & 0 deletions integration-tests/goss/centos7/goss-expected-q.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,38 @@ command:
stderr: []
timeout: 10000
dns:
CAA:dnstest.io:
resolvable: true
timeout: 1000
server: 8.8.8.8
CNAME:c.dnstest.io:
resolvable: true
timeout: 1000
server: 8.8.8.8
MX:dnstest.io:
resolvable: true
timeout: 1000
server: 8.8.8.8
NS:dnstest.io:
resolvable: true
timeout: 1000
server: 8.8.8.8
PTR:8.8.8.8:
resolvable: true
timeout: 1000
server: 8.8.8.8
SRV:_https._tcp.dnstest.io:
resolvable: true
timeout: 1000
server: 8.8.8.8
TXT:txt._test.dnstest.io:
resolvable: true
timeout: 1000
server: 8.8.8.8
ip6.dnstest.io:
resolvable: true
timeout: 1000
server: 8.8.8.8
localhost:
resolvable: true
timeout: 1000
Expand Down
53 changes: 53 additions & 0 deletions integration-tests/goss/centos7/goss-expected.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,59 @@ command:
- 'sh: foobar: command not found'
timeout: 10000
dns:
CAA:dnstest.io:
resolvable: true
addrs:
- 0 issue comodoca.com
- 0 issue letsencrypt.org
- 0 issuewild ;
timeout: 1000
server: 8.8.8.8
CNAME:c.dnstest.io:
resolvable: true
addrs:
- a.dnstest.io.
timeout: 1000
server: 8.8.8.8
MX:dnstest.io:
resolvable: true
addrs:
- 10 b.dnstest.io.
- 5 a.dnstest.io.
timeout: 1000
server: 8.8.8.8
NS:dnstest.io:
resolvable: true
addrs:
- ns1.dnstest.io.
- ns2.dnstest.io.
timeout: 1000
server: 8.8.8.8
PTR:8.8.8.8:
resolvable: true
addrs:
- google-public-dns-a.google.com.
timeout: 1000
server: 8.8.8.8
SRV:_https._tcp.dnstest.io:
resolvable: true
addrs:
- 0 5 443 a.dnstest.io.
- 10 10 443 b.dnstest.io.
timeout: 1000
server: 8.8.8.8
TXT:txt._test.dnstest.io:
resolvable: true
addrs:
- Hello DNS
timeout: 1000
server: 8.8.8.8
ip6.dnstest.io:
resolvable: true
addrs:
- 2404:6800:4001:807::200e
timeout: 1000
server: 8.8.8.8
localhost:
resolvable: true
addrs:
Expand Down
30 changes: 15 additions & 15 deletions integration-tests/goss/generate_goss.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,21 +34,21 @@ goss a "${args[@]}" group $user foobar

goss a "${args[@]}" command "echo 'hi'" foobar

#goss a "${args[@]}" dns --timeout 1s --server 8.8.8.8 CNAME:c.dnstest.io
#
#goss a "${args[@]}" dns --timeout 1s --server 8.8.8.8 MX:dnstest.io
#
#goss a "${args[@]}" dns --timeout 1s --server 8.8.8.8 NS:dnstest.io
#
#goss a "${args[@]}" dns --timeout 1s --server 8.8.8.8 PTR:8.8.8.8
#
#goss a "${args[@]}" dns --timeout 1s --server 8.8.8.8 SRV:_https._tcp.dnstest.io
#
#goss a "${args[@]}" dns --timeout 1s --server 8.8.8.8 TXT:txt._test.dnstest.io
#
#goss a "${args[@]}" dns --timeout 1s --server 8.8.8.8 CAA:dnstest.io
#
#goss a "${args[@]}" dns --timeout 1s --server 8.8.8.8 ip6.dnstest.io
goss a "${args[@]}" dns --timeout 1s --server 8.8.8.8 CNAME:c.dnstest.io

goss a "${args[@]}" dns --timeout 1s --server 8.8.8.8 MX:dnstest.io

goss a "${args[@]}" dns --timeout 1s --server 8.8.8.8 NS:dnstest.io

goss a "${args[@]}" dns --timeout 1s --server 8.8.8.8 PTR:8.8.8.8

goss a "${args[@]}" dns --timeout 1s --server 8.8.8.8 SRV:_https._tcp.dnstest.io

goss a "${args[@]}" dns --timeout 1s --server 8.8.8.8 TXT:txt._test.dnstest.io

goss a "${args[@]}" dns --timeout 1s --server 8.8.8.8 CAA:dnstest.io

goss a "${args[@]}" dns --timeout 1s --server 8.8.8.8 ip6.dnstest.io

goss a "${args[@]}" dns --timeout 1s localhost

Expand Down
63 changes: 63 additions & 0 deletions integration-tests/goss/goss-shared.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,75 @@ group:
foobar:
exists: false
dns:
CAA:dnstest.io:
resolvable: true
addrs:
- 0 issue comodoca.com
- 0 issue letsencrypt.org
- 0 issuewild ;
timeout: 2000
server: 8.8.8.8
CNAME:c.dnstest.io:
resolvable: true
addrs:
- a.dnstest.io.
timeout: 2000
server: 8.8.8.8
c.dnstest.io:
resolvable: true
addrs:
- 192.30.252.153
timeout: 2000
server: 8.8.8.8
MX:dnstest.io:
resolvable: true
addrs:
- 10 b.dnstest.io.
- 5 a.dnstest.io.
timeout: 2000
server: 8.8.8.8
NS:dnstest.io:
resolvable: true
addrs:
- ns1.dnstest.io.
- ns2.dnstest.io.
timeout: 2000
server: 8.8.8.8
PTR:8.8.8.8:
resolvable: true
addrs:
- google-public-dns-a.google.com.
timeout: 2000
server: 8.8.8.8
SRV:_https._tcp.dnstest.io:
resolvable: true
addrs:
- 0 5 443 a.dnstest.io.
- 10 10 443 b.dnstest.io.
timeout: 2000
server: 8.8.8.8
TXT:txt._test.dnstest.io:
resolvable: true
addrs:
- Hello DNS
timeout: 2000
server: 8.8.8.8
ip6.dnstest.io:
resolvable: true
addrs:
- 2404:6800:4001:807::200e
timeout: 2000
server: 8.8.8.8
localhost:
resolvable: true
addrs:
- 127.0.0.1
- "::1"
timeout: 2000
dnstest.io:
resolvable: true
server: 8.8.8.8
timeout: 2000
process:
foobar:
running: false
Expand Down
32 changes: 32 additions & 0 deletions integration-tests/goss/precise/goss-expected-q.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,38 @@ command:
stderr: []
timeout: 10000
dns:
CAA:dnstest.io:
resolvable: true
timeout: 1000
server: 8.8.8.8
CNAME:c.dnstest.io:
resolvable: true
timeout: 1000
server: 8.8.8.8
MX:dnstest.io:
resolvable: true
timeout: 1000
server: 8.8.8.8
NS:dnstest.io:
resolvable: true
timeout: 1000
server: 8.8.8.8
PTR:8.8.8.8:
resolvable: true
timeout: 1000
server: 8.8.8.8
SRV:_https._tcp.dnstest.io:
resolvable: true
timeout: 1000
server: 8.8.8.8
TXT:txt._test.dnstest.io:
resolvable: true
timeout: 1000
server: 8.8.8.8
ip6.dnstest.io:
resolvable: true
timeout: 1000
server: 8.8.8.8
localhost:
resolvable: true
timeout: 1000
Expand Down
Loading

0 comments on commit 85206b7

Please sign in to comment.