We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8853864 commit 1b9e6b9Copy full SHA for 1b9e6b9
cmd/installer/cli/api_test.go
@@ -71,9 +71,7 @@ func Test_serveAPI(t *testing.T) {
71
passwordHash, err := bcrypt.GenerateFromPassword([]byte(password), 10)
72
require.NoError(t, err)
73
74
- // Create a runtime config with temp directory
75
- rc := runtimeconfig.New(nil)
76
- rc.SetDataDir(t.TempDir())
+ rc := setupMockRuntimeConfig(t)
77
78
config := apiOptions{
79
APIConfig: apitypes.APIConfig{
@@ -92,6 +90,9 @@ func Test_serveAPI(t *testing.T) {
92
90
},
93
91
ClusterID: "123",
94
Mode: apitypes.ModeInstall,
+ LinuxConfig: apitypes.LinuxConfig{
+ RuntimeConfig: rc,
95
+ },
96
97
ManagerPort: portInt,
98
WebMode: web.ModeInstall,
0 commit comments