Skip to content
This repository has been archived by the owner on Mar 23, 2019. It is now read-only.

Commit

Permalink
Fix stop testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Houseknecht committed Aug 9, 2017
1 parent 8b62fa2 commit 81b9c7c
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions test/roles/validate-start-stop-restart/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,19 @@
with_items: "{{ distros }}"
register: output
failed_when: output.changed

- name: Get container status
command: "docker inspect test{{ item.name }}_{{ item.name }}_1 --format '{% raw %}{{ .State.Status }}{% endraw %}'"
with_items: "{{ distros }}"
register: container_status
tags:
- stop

- name: Ensure containers stop
assert:
that:
- item.0.stdout == 'exited'
with_together:
- "{{ container_status.results }}"
tags:
- stop

0 comments on commit 81b9c7c

Please sign in to comment.