diff --git a/tests/7.3-apache/goss.yaml b/tests/7.3-apache/goss.yaml new file mode 100644 index 0000000..bf6fba7 --- /dev/null +++ b/tests/7.3-apache/goss.yaml @@ -0,0 +1,37 @@ +file: + /var/log/apache2/access.log: + exists: true + mode: "0777" + size: 11 + owner: root + group: wheel + linked-to: /dev/stdout + filetype: symlink + contains: [] + /var/log/apache2/error.log: + exists: true + mode: "0777" + size: 11 + owner: root + group: wheel + linked-to: /dev/stderr + filetype: symlink + contains: [] +package: + apache2: + installed: true +port: + tcp:80: + listening: false + ip: [] +process: + httpd: + running: true +http: + http://localhost: + status: 200 + allow-insecure: false + no-follow-redirects: false + timeout: 5000 + body: + - It works! diff --git a/tests/7.3-apache/test b/tests/7.3-apache/test new file mode 100755 index 0000000..7d86c40 --- /dev/null +++ b/tests/7.3-apache/test @@ -0,0 +1,8 @@ +#!/bin/bash + +docker build -t phpearth/test:7.3-apache -f ../../docker/7.3-apache.Dockerfile ../../docker || exit 1 + +i=0 +time dgoss run -p 80:80 phpearth/test:7.3-apache || ((i++)) + +exit $i diff --git a/tests/7.3-argon/Dockerfile b/tests/7.3-argon/Dockerfile new file mode 100644 index 0000000..4c7bed3 --- /dev/null +++ b/tests/7.3-argon/Dockerfile @@ -0,0 +1,7 @@ +FROM phpearth/test:7.3-cli + +RUN mkdir -p /usr/src/app + +ADD argon.php /usr/src/app/argon.php + +WORKDIR /usr/src/app diff --git a/tests/7.3-argon/argon.php b/tests/7.3-argon/argon.php new file mode 100644 index 0000000..b68db38 --- /dev/null +++ b/tests/7.3-argon/argon.php @@ -0,0 +1,7 @@ +