Skip to content

Commit

Permalink
Add --all-tags test to pull
Browse files Browse the repository at this point in the history
Signed-off-by: TomSweeneyRedHat <[email protected]>

Closes: #1346
Approved by: nalind
  • Loading branch information
TomSweeneyRedHat authored and rh-atomic-bot committed Feb 19, 2019
1 parent 146a0fc commit e8d73b2
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/pull.bats
Original file line number Diff line number Diff line change
Expand Up @@ -184,3 +184,16 @@ load helpers
[ "$status" -eq 0 ]
[[ "$output" =~ "ostree-repo:latest" ]]
}


@test "pull-all-tags" {
run buildah pull --signature-policy ${TESTSDIR}/policy.json --all-tags alpine
echo "$output"
[[ "$output" =~ "alpine:latest" ]]
[ "$status" -eq 0 ]

run buildah images -q
echo "$output"
[ "$status" -eq 0 ]
[ $(wc -l <<< "$output") -ge 3 ]
}

0 comments on commit e8d73b2

Please sign in to comment.