Skip to content

Commit

Permalink
WIP: test: Create default context in config
Browse files Browse the repository at this point in the history
  • Loading branch information
taratatach committed Nov 21, 2024
1 parent ce38ee4 commit b4347c6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion model/oauth/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ func TestClient(t *testing.T) {
API: config.ClouderyAPI{URL: "http://manager.example.org", Token: ""},
},
}
conf.Contexts[config.DefaultInstanceContext] = map[string]interface{}{}
setup := testutils.NewSetup(t, t.Name())
testInstance := setup.GetTestInstance()

Expand Down
1 change: 1 addition & 0 deletions pkg/config/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -1150,6 +1150,7 @@ func createTestViper() *viper.Viper {
v.SetDefault("log.level", "info")
v.SetDefault("assets_polling_disabled", false)
v.SetDefault("assets_polling_interval", 2*time.Minute)
v.SetDefault("contexts", map[string]interface{}{DefaultInstanceContext: map[string]interface{}{}})
applyDefaults(v)
return v
}
Expand Down

0 comments on commit b4347c6

Please sign in to comment.