Add kubectl config current-context

This commit is contained in:
Tom Benner
2016-01-11 21:54:24 -08:00
parent ce9b117a19
commit 52739bc82b
10 changed files with 431 additions and 2 deletions

View File

@@ -75,6 +75,17 @@ func ExampleView() {
// token: red-token
}
func TestCurrentContext(t *testing.T) {
startingConfig := newRedFederalCowHammerConfig()
test := configCommandTest{
args: []string{"current-context"},
startingConfig: startingConfig,
expectedConfig: startingConfig,
expectedOutputs: []string{startingConfig.CurrentContext},
}
test.run(t)
}
func TestSetCurrentContext(t *testing.T) {
expectedConfig := newRedFederalCowHammerConfig()
startingConfig := newRedFederalCowHammerConfig()