You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
expectedError: strptr("unable to read tracing configuration from \"test-tracing-config-absent\": open test-tracing-config-absent: no such file or directory"),
100
100
},
101
+
{
102
+
name: "duplicate field error; strict validation",
103
+
createFile: true,
104
+
contents: `
105
+
apiVersion: apiserver.config.k8s.io/v1alpha1
106
+
kind: TracingConfiguration
107
+
endpoint: localhost:4317
108
+
endpoint: localhost:4318
109
+
samplingRatePerMillion: 12345
110
+
`,
111
+
expectedResult: nil,
112
+
expectedError: strptr("unable to decode tracing configuration data: strict decoding error"),
113
+
},
114
+
{
115
+
name: "unknown field error; strict validation",
116
+
createFile: true,
117
+
contents: `
118
+
apiVersion: apiserver.config.k8s.io/v1alpha1
119
+
kind: TracingConfiguration
120
+
foo: bar
121
+
endpoint: localhost:4318
122
+
samplingRatePerMillion: 12345
123
+
`,
124
+
expectedResult: nil,
125
+
expectedError: strptr("unable to decode tracing configuration data: strict decoding error"),
0 commit comments