Refactor kpod tests
Move kpod tests from kpod.bats to kpod_[commandname].bats Also make sure all status checks have a echo $output before them. Signed-off-by: Ryan Cole <rcyoalne@gmail.com> Signed-off-by: Daniel J Walsh <dwalsh@redhat.com> Signed-off-by: umohnani8 <umohnani@redhat.com>
This commit is contained in:
parent
e838611fdd
commit
e16bb3feb3
19 changed files with 350 additions and 295 deletions
13
test/kpod_version.bats
Normal file
13
test/kpod_version.bats
Normal file
|
@ -0,0 +1,13 @@
|
|||
#!/usr/bin/env bats
|
||||
|
||||
load helpers
|
||||
|
||||
function teardown() {
|
||||
cleanup_test
|
||||
}
|
||||
|
||||
@test "kpod version test" {
|
||||
run ${KPOD_BINARY} version
|
||||
echo "$output"
|
||||
[ "$status" -eq 0 ]
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue