Skip to content

Commit

Permalink
Fixed location of BATS installation within Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Xaoc000 committed Apr 26, 2019
1 parent 2f8e1ca commit acb3452
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .travis.yml
Expand Up @@ -7,5 +7,4 @@ services:
before_install:

# Figure out what version of docker-compose we're running
- docker-compose --version
- bash install.sh
- docker-compose --version
2 changes: 1 addition & 1 deletion bats_install.sh
Expand Up @@ -2,4 +2,4 @@

git clone https://github.com/sstephenson/bats.git
cd bats
bats_install.sh /usr/local
./install.sh /usr/local
2 changes: 2 additions & 0 deletions test-runner/Dockerfile
Expand Up @@ -10,6 +10,8 @@ RUN apt-get update -qq && apt-get install -y \
python-pycurl \
vim

RUN git clone https://github.com/sstephenson/bats.git && cd bats && ./install.sh /usr/local

# Install the pyresttest and deps (the basis of all our smoke tests)
RUN pip install pyresttest jsonschema future

Expand Down
9 changes: 9 additions & 0 deletions test-runner/tests/integration/integration.bats
@@ -0,0 +1,9 @@
#!/usr/bin/bats

CONTAINER_ID=$(docker ps | grep iofog-agent | awk '{print $1}')

@test "Integration Volume Checking" {
result="$(docker inspect --format='{{.Mounts}}' ${CONTAINER_ID})"
[[ ${result} == ]]
}

0 comments on commit acb3452

Please sign in to comment.