mirror of
https://github.com/ahmetb/kubectx.git
synced 2025-09-10 21:08:59 +00:00
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:
committed by
Ahmet Alp Balkan
parent
df557e4fa7
commit
402cc2c4b9
12
test/mock-kubectl
Executable file
12
test/mock-kubectl
Executable 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
|
Reference in New Issue
Block a user