add cli tests for kubens (#117)

* split bats test invocation by executable

* add more cli tests for kubens

* clean up kubens tests

* small cleanup to kubens tests
This commit is contained in:
Kumbirai Tanekha
2019-01-03 18:06:13 +00:00
committed by Ahmet Alp Balkan
parent df557e4fa7
commit 402cc2c4b9
5 changed files with 125 additions and 13 deletions

12
test/mock-kubectl Executable file
View File

@@ -0,0 +1,12 @@
#!/usr/bin/env bash
[[ -n $DEBUG ]] && set -x
set -eou pipefail
if [[ $@ == *'get namespaces'* ]]; then
echo "ns1"
echo "ns2"
else
kubectl $@
fi