-
Notifications
You must be signed in to change notification settings - Fork 472
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace centos7 with rockylinux9 in integration-tests (#906)
* add rockylinux9 test image * use own .PHONY directive to avoid merge conflicts * replace centos7 with rockylinux9 in integration tests --------- Co-authored-by: Ahmed Elsabbahy <[email protected]>
- Loading branch information
1 parent
ff26784
commit 05f03a3
Showing
11 changed files
with
402 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
FROM rockylinux:9 | ||
|
||
ENV container docker | ||
|
||
RUN dnf install -y systemd httpd diffutils 'dnf-command(config-manager)' && \ | ||
dnf config-manager --set-enabled crb && \ | ||
dnf install -y epel-release && \ | ||
dnf install -y tinyproxy && \ | ||
dnf remove -y 'dnf-command(config-manager)' epel-release | ||
|
||
RUN (cd /lib/systemd/system/sysinit.target.wants/; for i in *; do [ $i == systemd-tmpfiles-setup.service ] || rm -f $i; done); \ | ||
rm -f /lib/systemd/system/multi-user.target.wants/*;\ | ||
rm -f /etc/systemd/system/*.wants/*;\ | ||
rm -f /lib/systemd/system/local-fs.target.wants/*; \ | ||
rm -f /lib/systemd/system/sockets.target.wants/*udev*; \ | ||
rm -f /lib/systemd/system/sockets.target.wants/*initctl*; \ | ||
rm -f /lib/systemd/system/basic.target.wants/*;\ | ||
rm -f /lib/systemd/system/anaconda.target.wants/*; | ||
|
||
CMD ["/usr/sbin/init"] | ||
|
||
RUN systemctl enable httpd | ||
RUN systemctl enable tinyproxy | ||
RUN chmod 700 ~root | ||
RUN mkfifo /pipe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package: | ||
httpd: | ||
installed: true | ||
versions: | ||
- 2.4.57-8.el9 | ||
port: | ||
tcp:80: | ||
listening: true | ||
ip: | ||
- 0.0.0.0 | ||
service: | ||
httpd: | ||
enabled: true | ||
running: true | ||
process: | ||
httpd: | ||
running: true |
127 changes: 127 additions & 0 deletions
127
integration-tests/goss/rockylinux9/goss-expected-q.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | ||
foobar: | ||
installed: false | ||
httpd: | ||
installed: true | ||
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: | ||
foobar: | ||
enabled: false | ||
running: false | ||
httpd: | ||
enabled: true | ||
running: true | ||
user: | ||
apache: | ||
exists: true | ||
foobar: | ||
exists: false | ||
group: | ||
apache: | ||
exists: true | ||
foobar: | ||
exists: false | ||
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: | ||
foobar: | ||
running: false | ||
httpd: | ||
running: true | ||
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: [] |
Oops, something went wrong.