Skip to content

Commit

Permalink
rearrange test for diagnostic - check if containers are running befor…
Browse files Browse the repository at this point in the history
…e hit endpoint
  • Loading branch information
EmmaLRussell committed Mar 26, 2024
1 parent c39d084 commit 306d9fc
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions test/test_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,14 @@ def test_start_beebop():
obj.status()
obj.start()

assert docker_util.network_exists("beebop_nw")
assert docker_util.volume_exists("beebop_storage")
assert docker_util.container_exists("beebop-api")
assert docker_util.container_exists("beebop-redis")
assert docker_util.container_exists("beebop-server")
assert docker_util.container_exists("beebop-proxy")
assert len(docker_util.containers_matching("beebop-worker-", False)) == 2

# ignore SSL
session = requests.Session()
session.verify = False
Expand All @@ -24,14 +32,6 @@ def test_start_beebop():
assert res.status_code == 200
assert json.loads(res.content)["message"] == "Welcome to beebop!"

assert docker_util.network_exists("beebop_nw")
assert docker_util.volume_exists("beebop_storage")
assert docker_util.container_exists("beebop-api")
assert docker_util.container_exists("beebop-redis")
assert docker_util.container_exists("beebop-server")
assert docker_util.container_exists("beebop-proxy")
assert len(docker_util.containers_matching("beebop-worker-", False)) == 2

obj.destroy()

assert not docker_util.network_exists("beebop_nw")
Expand Down

0 comments on commit 306d9fc

Please sign in to comment.