mirror of
https://github.com/bitnami/charts.git
synced 2026-04-02 15:27:08 +08:00
[bitnami/nginx] Add nginx Helm Chart tests (#10854)
* Added antiflake pipeline Signed-off-by: alukic <alukic@vmware.com> * Diversified the pipeline Signed-off-by: alukic <alukic@vmware.com> * Make a change to trigger TKG Signed-off-by: alukic <alukic@vmware.com> * Replaced FIPS with normal AKS Signed-off-by: alukic <alukic@vmware.com> * Added extra workflow for Grafana Loki Signed-off-by: alukic <alukic@vmware.com> * Changed the pipeline Signed-off-by: alukic <alukic@vmware.com> * Modified the workflow Signed-off-by: alukic <alukic@vmware.com> * Removed Grafana Loki Signed-off-by: alukic <alukic@vmware.com> * Added the first instance of goss tests Signed-off-by: alukic <alukic@vmware.com> * Add VIB triggering changes Signed-off-by: alukic <alukic@vmware.com> * Remove typos Signed-off-by: alukic <alukic@vmware.com> * Fixed issues in Goss test regarding sterr Signed-off-by: alukic <alukic@vmware.com> * Remove test files Signed-off-by: alukic <alukic@vmware.com> * Improve some tests Signed-off-by: alukic <alukic@vmware.com> * Applied CD suggestions Signed-off-by: alukic <alukic@vmware.com> * Fixed curl test Signed-off-by: alukic <alukic@vmware.com> * Improved file test Signed-off-by: alukic <alukic@vmware.com> * Working on improving nginx test Signed-off-by: alukic <alukic@vmware.com> * Removed curl test Signed-off-by: alukic <alukic@vmware.com> * Add to publishing Signed-off-by: alukic <alukic@vmware.com> * Merged with master Signed-off-by: alukic <alukic@vmware.com> * Improve Goss test Signed-off-by: alukic <alukic@vmware.com>
This commit is contained in:
42
.vib/nginx/goss/goss.yaml
Normal file
42
.vib/nginx/goss/goss.yaml
Normal file
@@ -0,0 +1,42 @@
|
||||
http:
|
||||
http://localhost:8080:
|
||||
status: 200
|
||||
timeout: 1000
|
||||
body:
|
||||
- Welcome to nginx
|
||||
- If you see this page, the nginx web server is successfully installed
|
||||
method: GET
|
||||
file:
|
||||
/opt/bitnami/nginx/conf/nginx.conf:
|
||||
exists: true
|
||||
filetype: file
|
||||
mode: "0664"
|
||||
owner: root
|
||||
group: root
|
||||
contains:
|
||||
- /listen\s+8080/
|
||||
/opt/bitnami/nginx/html/index.html:
|
||||
exists: true
|
||||
filetype: file
|
||||
mode: "0644"
|
||||
owner: root
|
||||
group: root
|
||||
command:
|
||||
user-id-test:
|
||||
exec: if [ "$(id -u)" -eq 0 ]; then exit 1; fi
|
||||
exit-status: 0
|
||||
stdout: []
|
||||
stderr: []
|
||||
nginx-config-files:
|
||||
exec: nginx -t
|
||||
exit-status: 0
|
||||
stdout: []
|
||||
stderr:
|
||||
- "nginx.conf syntax is ok"
|
||||
- "nginx.conf test is successful"
|
||||
nginx-reload:
|
||||
exec: nginx -s reload
|
||||
exit-status: 0
|
||||
stdout: []
|
||||
stderr:
|
||||
- "signal process started"
|
||||
@@ -35,9 +35,7 @@
|
||||
"action_id": "trivy",
|
||||
"params": {
|
||||
"threshold": "CRITICAL",
|
||||
"vuln_type": [
|
||||
"OS"
|
||||
]
|
||||
"vuln_type": ["OS"]
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -46,6 +44,17 @@
|
||||
"endpoint": "lb-nginx-http",
|
||||
"app_protocol": "HTTP"
|
||||
}
|
||||
},
|
||||
{
|
||||
"action_id": "goss",
|
||||
"params": {
|
||||
"resources": {
|
||||
"path": "/.vib/nginx/goss"
|
||||
},
|
||||
"remote": {
|
||||
"workload": "deploy-nginx"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
@@ -44,6 +44,17 @@
|
||||
"endpoint": "lb-nginx-http",
|
||||
"app_protocol": "HTTP"
|
||||
}
|
||||
},
|
||||
{
|
||||
"action_id": "goss",
|
||||
"params": {
|
||||
"resources": {
|
||||
"path": "/.vib/nginx/goss"
|
||||
},
|
||||
"remote": {
|
||||
"workload": "deploy-nginx"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user