Skip to content

Commit

Permalink
bats - update shed-kubectl-exec-sh usage
Browse files Browse the repository at this point in the history
  • Loading branch information
siakhooi committed Apr 18, 2024
1 parent 35ad591 commit a167f29
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/bats-test-scripts/shed-kubectl-exec-sh/k-sh.bats
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@ setup(){
load '../common-setup'
common_setup
}
@test "k-sh" {
run bash -ic 'k-sh'
assert_success
cat_expected "usage" | assert_output -
}
@test "k-sh xxx yyy zzz" {
run bash -ic 'k-sh xxx yyy zzz'
assert_success
cat_expected "usage" | assert_output -
}
@test "k-sh xxx" {
run bash -ic 'k-sh xxx'
assert_failure 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@ setup(){
load '../common-setup'
common_setup
}
@test "shed-kubectl-exec-sh" {
run shed-kubectl-exec-sh
assert_success
cat_expected "usage" | assert_output -
}
@test "shed-kubectl-exec-sh xxx yyy zzz" {
run shed-kubectl-exec-sh xxx yyy zzz
assert_success
cat_expected "usage" | assert_output -
}
@test "shed-kubectl-exec-sh xxx" {
run shed-kubectl-exec-sh xxx
assert_failure 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@ setup(){
load '../common-setup'
common_setup
}
@test "shed kubectl-exec-sh" {
run shed kubectl-exec-sh
assert_success
cat_expected "usage" | assert_output -
}
@test "shed kubectl-exec-sh xxx yyy zzz" {
run shed kubectl-exec-sh xxx yyy zzz
assert_success
cat_expected "usage" | assert_output -
}
@test "shed kubectl-exec-sh xxx" {
run shed kubectl-exec-sh xxx
assert_failure 1
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Usage: shed-kubectl-exec-sh (pod | type/name) [container]

0 comments on commit a167f29

Please sign in to comment.