INNER CODE UNIT · Go
TestIsDynamicConfigChanged
istio-ecosystem/admiral · admiral/pkg/clusters/admiralDatabaseClient_test.go:447
func TestIsDynamicConfigChanged(t *testing.T) {
type args struct {
config DynamicConfigData
}
config := DynamicConfigData{}
config1 := DynamicConfigData{EnableDynamicConfig: common.Admiral}
config2 := config1
config2.NLBEnabledIdentityList = []string{"identity1", "identity2"}
tests := []struct {
name string
args args
want bool
}{
{"When empty config send then it should return false", args{config}, false},