clearEnv unsets all the environment variables relevant to the csm pluginOption.
()
| 51 | // clearEnv unsets all the environment variables relevant to the csm |
| 52 | // pluginOption. |
| 53 | func clearEnv() { |
| 54 | os.Unsetenv(envconfig.XDSBootstrapFileContentEnv) |
| 55 | os.Unsetenv(envconfig.XDSBootstrapFileNameEnv) |
| 56 | |
| 57 | os.Unsetenv("CSM_CANONICAL_SERVICE_NAME") |
| 58 | os.Unsetenv("CSM_WORKLOAD_NAME") |
| 59 | } |
| 60 | |
| 61 | func (s) TestGetLabels(t *testing.T) { |
| 62 | clearEnv() |
no outgoing calls
no test coverage detected