Skip to content

Commit

Permalink
basic.bats: pass pod id argument to crictl create
Browse files Browse the repository at this point in the history
As that is what it seems to require, not a container name.

Signed-off-by: Serge Hallyn <[email protected]>
  • Loading branch information
hallyn committed Apr 22, 2019
1 parent b634fd8 commit 75c9c58
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/basic.bats
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ function teardown() {
crictl runp test/basic-pod-config.json
crictl pull busybox
crictl images
crictl create clowncore test/basic-container-config.json test/basic-pod-config.json
[ "$(crictl ps)" | grep clowncore ]
podid=$(crictl pods | grep nginx-sandbox | awk '{ print $1 }')
crictl create $podid test/basic-container-config.json test/basic-pod-config.json
[ "$(crictl ps -a)" | grep busybox ]
}

0 comments on commit 75c9c58

Please sign in to comment.