Skip to content

Commit

Permalink
Add label test
Browse files Browse the repository at this point in the history
  • Loading branch information
Elie CHARRA committed Jun 23, 2017
1 parent 63e636a commit 81d4db0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/goss.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,12 @@ http:
timeout: 5000
body:
- Welcome to nginx!
command:
docker inspect nginx:
# required attributes
exit-status: 0
# optional attributes
stdout:
- "\"test_label\": \"foo1234\""
stderr: []
timeout: 10000 # in milliseconds
2 changes: 2 additions & 0 deletions tests/units/nginx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ systemd_units:
- name: nginx
template_name: templates/test-systemd
image: nginx:1.11
labels:
- test_label=foo1234
host_copy:
- src: units/data/test.conf
dest:
Expand Down

0 comments on commit 81d4db0

Please sign in to comment.