Remove getters/setters of AirshipCTLSettings
This change removes the getters and setters for the following attributes of pkg/environment.AirshipCTLSettings: * airshipConfigPath * kubeConfigPath * config The above attributes have been exported to account for the removal of these methods. Change-Id: I4e7d38bf6771f7521179a2fe2990475b936b5d95
This commit is contained in:
@@ -127,13 +127,12 @@ func TestSetContext(t *testing.T) {
|
||||
|
||||
func (test setContextTest) run(t *testing.T) {
|
||||
// Get the Environment
|
||||
settings := &environment.AirshipCTLSettings{}
|
||||
settings.SetConfig(test.givenConfig)
|
||||
settings := &environment.AirshipCTLSettings{Config: test.givenConfig}
|
||||
|
||||
test.cmdTest.Cmd = cmd.NewCmdConfigSetContext(settings)
|
||||
testutil.RunTest(t, test.cmdTest)
|
||||
|
||||
afterRunConf := settings.Config()
|
||||
afterRunConf := settings.Config
|
||||
|
||||
// Find the Context Created or Modified
|
||||
afterRunContext, err := afterRunConf.GetContext(test.contextName)
|
||||
|
||||
Reference in New Issue
Block a user