Skip to content

Commit

Permalink
tests: Fix aerospike test
Browse files Browse the repository at this point in the history
Fix aerospike test for popular docker hub images.

Fixes kata-containers#347

Signed-off-by: Gabriela Cervantes <[email protected]>
  • Loading branch information
GabyCT committed May 28, 2018
1 parent ce4b6d0 commit 2dd54a2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions integration/popular_docker_hub_images/popular_docker_images.bats
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ setup() {
clean_env
}

@test "[volume mkdir] create a directory in an aerospike container" {
tmpdir=$(mktemp -d)
docker run --rm --runtime=$RUNTIME -d -v $tmpdir:/opt/aerospike/data aerospike/aerospike-server timeout 5 /entrypoint.sh asd
[ -n ${tmpdir} ] || false
rm -rf $tmpdir
@test "[insert data] insert data in an aerospike container" {
docker run --runtime=$RUNTIME -d --name aerospike aerospike/aerospike-server
sleep 10
docker run --rm --runtime=$RUNTIME -i aerospike/aerospike-tools aql -h $(docker inspect -f '{{.NetworkSettings.IPAddress}}' aerospike) -c "insert into test.foo (PK, foo) values ('123','any'); select * from test.foo"
docker rm -f aerospike
}

@test "[display text] hello world in an alpine container" {
Expand Down

0 comments on commit 2dd54a2

Please sign in to comment.