INNER CODE UNIT · Go

TestUpdateSyncAdmiralConfig

istio-ecosystem/admiral · admiral/pkg/clusters/admiralDatabaseClient_test.go:476

func TestUpdateSyncAdmiralConfig(t *testing.T) {
	type args struct {
		configData DynamicConfigData
	}

	configUpdated := DynamicConfigData{EnableDynamicConfig: common.Admiral}
	configUpdated.NLBEnabledClusters = []string{"cluster1", "cluster2"}
	configUpdated.NLBEnabledIdentityList = []string{"identity1", "identity2"}
	configUpdated.CLBEnabledClusters = []string{"cluster1", "cluster2"}

	expectedAdmiralConfig := common.GetAdmiralParams()
	expectedAdmiralConfig.NLBEnabledClusters = []string{"cluster1", "cluster2"}
	expectedAdmiralConfig.CLBEnabledClusters = []string{"cluster1", "cluster2"}
	expectedAdmiralConfig.NLBEnabledIdentityList = []string{"identity1", "identity2"}

	emptyConfig := DynamicConfigData{}
	expectedEmptyConfig := common.GetAdmiralParams()

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…