Skip to content

Commit 085db82

Browse files
committed
fix tests
1 parent 9ed1783 commit 085db82

File tree

1 file changed

+18
-9
lines changed

1 file changed

+18
-9
lines changed

packages/client/lib/cluster/request-response-policies/dynamic-policy-resolver.spec.ts

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ describe('DynamicPolicyResolverFactory', () => {
2121
std: {
2222
ping: {
2323
request: REQUEST_POLICIES_WITH_DEFAULTS.DEFAULT_KEYLESS,
24-
response: RESPONSE_POLICIES_WITH_DEFAULTS.DEFAULT_KEYLESS
24+
response: RESPONSE_POLICIES_WITH_DEFAULTS.DEFAULT_KEYLESS,
25+
isKeyless: true
2526
}
2627
}
2728
});
@@ -50,7 +51,8 @@ describe('DynamicPolicyResolverFactory', () => {
5051
step: 0,
5152
categories: new Set(),
5253
policies: { request: undefined, response: undefined },
53-
isKeyless: true
54+
isKeyless: true,
55+
subcommands: []
5456
}
5557
];
5658

@@ -76,7 +78,8 @@ describe('DynamicPolicyResolverFactory', () => {
7678
step: 1,
7779
categories: new Set(),
7880
policies: { request: undefined, response: undefined },
79-
isKeyless: false
81+
isKeyless: false,
82+
subcommands: []
8083
}
8184
];
8285

@@ -102,7 +105,8 @@ describe('DynamicPolicyResolverFactory', () => {
102105
step: 0,
103106
categories: new Set(),
104107
policies: { request: 'all_shards', response: 'agg_sum' },
105-
isKeyless: true
108+
isKeyless: true,
109+
subcommands: []
106110
}
107111
];
108112

@@ -128,7 +132,8 @@ describe('DynamicPolicyResolverFactory', () => {
128132
step: 1,
129133
categories: new Set(),
130134
policies: { request: 'all_shards', response: 'special' },
131-
isKeyless: false
135+
isKeyless: false,
136+
subcommands: []
132137
}
133138
];
134139

@@ -154,7 +159,8 @@ describe('DynamicPolicyResolverFactory', () => {
154159
step: 0,
155160
categories: new Set(),
156161
policies: { request: undefined, response: undefined },
157-
isKeyless: true
162+
isKeyless: true,
163+
subcommands: []
158164
}
159165
];
160166

@@ -182,7 +188,8 @@ describe('DynamicPolicyResolverFactory', () => {
182188
step: 0,
183189
categories: new Set(),
184190
policies: { request: undefined, response: undefined },
185-
isKeyless: true
191+
isKeyless: true,
192+
subcommands: []
186193
}
187194
];
188195

@@ -233,7 +240,8 @@ describe('DynamicPolicyResolverFactory', () => {
233240
step: 0,
234241
categories: new Set(),
235242
policies: { request: 'all_nodes', response: undefined },
236-
isKeyless: false
243+
isKeyless: false,
244+
subcommands: []
237245
},
238246
{
239247
name: 'partial-response',
@@ -244,7 +252,8 @@ describe('DynamicPolicyResolverFactory', () => {
244252
step: 0,
245253
categories: new Set(),
246254
policies: { request: undefined, response: 'agg_sum' },
247-
isKeyless: true
255+
isKeyless: true,
256+
subcommands: []
248257
}
249258
];
250259

0 commit comments

Comments
 (0)