Skip to content
This repository has been archived by the owner on Feb 1, 2021. It is now read-only.

Commit

Permalink
integration: Add simple API test to demonstrate the helpers.
Browse files Browse the repository at this point in the history
Signed-off-by: Andrea Luzzardi <[email protected]>
  • Loading branch information
aluzzardi committed Mar 6, 2015
1 parent 108f4eb commit 8fb3d30
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions test/integration/api.bats
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/usr/bin/env bats

load helpers

function teardown() {
stop_manager
stop_docker
}

@test "docker info should return the number of nodes" {
start_docker 3
start_manager
run docker_swarm info
[ "$status" -eq 0 ]
[ "${lines[1]}"="Nodes: 3" ]
}

0 comments on commit 8fb3d30

Please sign in to comment.