We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5fbcf9b commit c01dd9aCopy full SHA for c01dd9a
pkg/controllers/applicationfailover/common_test.go
@@ -226,6 +226,15 @@ func Test_parseJSONValue(t *testing.T) {
226
wantErr: assert.NoError,
227
want: "2",
228
},
229
+ {
230
+ name: "get a static value just as jsonPath write",
231
+ args: args{
232
+ rawStatus: []byte(`{"replicas": 2}`),
233
+ jsonPath: "true",
234
+ },
235
+ wantErr: assert.NoError,
236
+ want: "true",
237
238
// Build the following test cases in terms of what the function supports (which we don't use now).
239
// Please refer to Function Support: https://kubernetes.io/docs/reference/kubectl/jsonpath/
240
{
0 commit comments