Skip to content

Commit

Permalink
Add Ubuntu Noble to integration-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dklimpel committed May 10, 2024
1 parent ab2f627 commit 281f704
Show file tree
Hide file tree
Showing 9 changed files with 384 additions and 6 deletions.
12 changes: 9 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ VENV := $(shell echo $${VIRTUAL_ENV-.venv})
PYTHON := $(VENV)/bin/python
DOCS_DEPS := $(VENV)/.docs.dependencies

.PHONY: all build install test release bench fmt lint vet test-int-all gen centos7 wheezy trusty alpine3 arch test-int32 centos7-32 wheezy-32 trusty-32 alpine3-32 arch-32
.PHONY: all build install test release bench fmt lint vet test-int-all gen centos7 wheezy trusty noble alpine3 arch test-int32 centos7-32 wheezy-32 trusty-32 alpine3-32 arch-32

all: test-short-all test-int-all dgoss-sha256

Expand Down Expand Up @@ -96,8 +96,8 @@ test-darwin-all: test-short-all test-int-darwin-all
test-linux-all: test-short-all test-int-64 test-int-32
test-windows-all: test-short-all test-int-windows-all

test-int-64: centos7 wheezy trusty alpine3 arch test-int-serve-linux-amd64
test-int-32: centos7-32 wheezy-32 trusty-32 alpine3-32 arch-32
test-int-64: centos7 wheezy trusty noble alpine3 arch test-int-serve-linux-amd64
test-int-32: centos7-32 wheezy-32 trusty-32 noble-32 alpine3-32 arch-32
test-int-darwin-all: test-int-validate-darwin-amd64 test-int-serve-darwin-amd64
test-int-windows-all: test-int-validate-windows-amd64 test-int-serve-windows-amd64
test-int-all: test-int-32 test-int-64
Expand All @@ -111,6 +111,9 @@ wheezy-32: build
trusty-32: build
$(info INFO: Starting build $@)
cd integration-tests/ && ./test.sh trusty 386
noble-32: build
$(info INFO: Starting build $@)
cd integration-tests/ && ./test.sh noble 386
alpine3-32: build
$(info INFO: Starting build $@)
cd integration-tests/ && ./test.sh alpine3 386
Expand All @@ -126,6 +129,9 @@ wheezy: build
trusty: build
$(info INFO: Starting build $@)
cd integration-tests/ && ./test.sh trusty amd64
noble: build
$(info INFO: Starting build $@)
cd integration-tests/ && ./test.sh noble amd64
alpine3: build
$(info INFO: Starting build $@)
cd integration-tests/ && ./test.sh alpine3 amd64
Expand Down
10 changes: 10 additions & 0 deletions integration-tests/Dockerfile_noble
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM ubuntu:noble
MAINTAINER Ahmed

RUN apt-get update && \
apt-get install --no-install-recommends -y apache2=2.4.58-1ubuntu8.1 ca-certificates tinyproxy vim-tiny systemd systemd-sysv && \
apt-get remove -y vim-tiny && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

RUN mkfifo /pipe
2 changes: 1 addition & 1 deletion integration-tests/goss/goss-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ service:
{{else}}
apache2:
{{end}}
{{ if .Env.OS | regexMatch "trusty" }}
{{ if .Env.OS | regexMatch "trusty|noble" }}
enabled: false
{{else}}
enabled: true
Expand Down
17 changes: 17 additions & 0 deletions integration-tests/goss/noble/goss-aa-expected.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package:
apache2:
installed: true
versions:
- 2.4.58-1ubuntu8.1
port:
tcp:80:
listening: true
ip:
- 0.0.0.0
service:
apache2:
enabled: true
running: true
process:
apache2:
running: true
127 changes: 127 additions & 0 deletions integration-tests/goss/noble/goss-expected-q.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,127 @@
file:
/etc/passwd:
exists: true
contents: []
/tmp/goss/foobar:
exists: false
contents: []
package:
apache2:
installed: true
foobar:
installed: false
vim-tiny:
installed: false
addr:
tcp://httpbin:22:
reachable: false
timeout: 1000
tcp://httpbin:80:
reachable: true
timeout: 1000
udp://8.8.8.8:53:
reachable: true
timeout: 1000
port:
tcp:80:
listening: true
tcp:9999:
listening: false
tcp6:80:
listening: false
service:
apache2:
enabled: true
running: true
foobar:
enabled: false
running: false
user:
foobar:
exists: false
www-data:
exists: true
group:
foobar:
exists: false
www-data:
exists: true
command:
echo 'hi':
exit-status: 0
stdout: ""
stderr: ""
timeout: 10000
foobar:
exit-status: 127
stdout: ""
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:54.243.154.1:
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
process:
apache2:
running: true
foobar:
running: false
kernel-param:
kernel.ostype:
value: Linux
mount:
/dev:
exists: true
timeout: 1000
http:
http://google.com:
status: 301
allow-insecure: false
no-follow-redirects: true
timeout: 5000
body: []
https://www.apple.com:
status: 200
allow-insecure: false
no-follow-redirects: false
timeout: 5000
body: []
proxy: http://127.0.0.1:8888
https://www.google.com:
status: 200
allow-insecure: false
no-follow-redirects: false
timeout: 5000
body: []
177 changes: 177 additions & 0 deletions integration-tests/goss/noble/goss-expected.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,177 @@
file:
/etc/passwd:
exists: true
mode: "0644"
owner: root
group: root
filetype: file
contents: []
/tmp/goss/foobar:
exists: false
contents: []
package:
apache2:
installed: true
versions:
- 2.4.58-1ubuntu8.1
foobar:
installed: false
vim-tiny:
installed: false
addr:
tcp://httpbin:22:
reachable: false
timeout: 1000
tcp://httpbin:80:
reachable: true
timeout: 1000
udp://8.8.8.8:53:
reachable: true
timeout: 1000
port:
tcp:80:
listening: true
ip:
- 0.0.0.0
tcp:9999:
listening: false
ip: []
tcp6:80:
listening: false
ip: []
service:
apache2:
enabled: true
running: true
foobar:
enabled: false
running: false
user:
foobar:
exists: false
www-data:
exists: true
uid: 33
gid: 33
groups:
- www-data
home: /var/www
shell: /usr/sbin/nologin
group:
foobar:
exists: false
www-data:
exists: true
gid: 33
command:
echo 'hi':
exit-status: 0
stdout:
- hi
stderr: ""
timeout: 10000
foobar:
exit-status: 127
stdout: ""
stderr:
- 'sh: 1: 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:54.243.154.1:
resolvable: true
addrs:
- ec2-54-243-154-1.compute-1.amazonaws.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:
- 127.0.0.1
- ::1
timeout: 1000
process:
apache2:
running: true
foobar:
running: false
kernel-param:
kernel.ostype:
value: Linux
mount:
/dev:
exists: true
opts:
- rw
- nosuid
vfs-opts:
- rw
source: tmpfs
filesystem: tmpfs
timeout: 1000
http:
http://google.com:
status: 301
allow-insecure: false
no-follow-redirects: true
timeout: 5000
body: []
https://www.apple.com:
status: 200
allow-insecure: false
no-follow-redirects: false
timeout: 5000
body: []
proxy: http://127.0.0.1:8888
https://www.google.com:
status: 200
allow-insecure: false
no-follow-redirects: false
timeout: 5000
body: []
Loading

0 comments on commit 281f704

Please sign in to comment.