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:
Ian Howell
2020-03-23 14:41:08 -05:00
parent a4001d255f
commit 5efc26d9f0
29 changed files with 127 additions and 171 deletions

View File

@@ -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)