Cleanup cleans up TestFactory temp config file
()
| 479 | |
| 480 | // Cleanup cleans up TestFactory temp config file |
| 481 | func (f *TestFactory) Cleanup() { |
| 482 | if f.tempConfigFile == nil { |
| 483 | return |
| 484 | } |
| 485 | |
| 486 | f.tempConfigFile.Close() |
| 487 | os.Remove(f.tempConfigFile.Name()) |
| 488 | } |
| 489 | |
| 490 | // ToRESTConfig is used to get ClientConfigVal from a TestFactory |
| 491 | func (f *TestFactory) ToRESTConfig() (*restclient.Config, error) { |