Skip to content

Commit b4199a4

Browse files
committed
Fix ServiceConfigurationTest test cases
1 parent 4383c6e commit b4199a4

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

agent_api/src/test/java/storage/ServiceConfigurationTest.java

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ public void testUpdateConfig() {
3333
List.of(mock(Endpoint.class)),
3434
List.of("user1", "user2"),
3535
List.of("192.168.1.1"),
36+
false,
37+
null,
3638
true,
3739
true
3840
);
@@ -62,6 +64,8 @@ public void testUpdateConfigWithUnsuccessfulResponse() {
6264
null,
6365
null,
6466
false,
67+
null,
68+
false,
6569
false
6670
);
6771

@@ -301,6 +305,8 @@ public void testReceivedAnyStats() {
301305
null,
302306
null,
303307
false,
308+
null,
309+
false,
304310
true
305311
);
306312

@@ -318,6 +324,8 @@ public void testIsIpBypassedWithEmptyBypassedList() {
318324
null,
319325
null,
320326
Collections.emptyList(),
327+
false,
328+
null,
321329
true,
322330
true
323331
));
@@ -334,6 +342,8 @@ public void testIsIpBypassedWithMultipleBypassedEntries() {
334342
null,
335343
null,
336344
List.of("192.168.1.1", "192.168.1.2"),
345+
false,
346+
null,
337347
true,
338348
true
339349
);
@@ -354,6 +364,8 @@ public void testIsUserBlockedWithEmptyBlockedUserList() {
354364
null,
355365
Collections.emptyList(),
356366
null,
367+
false,
368+
null,
357369
true,
358370
true
359371
));
@@ -370,6 +382,8 @@ public void testIsUserBlockedWithMultipleBlockedUsers() {
370382
null,
371383
List.of("user1", "user2"),
372384
null,
385+
false,
386+
null,
373387
true,
374388
true
375389
);
@@ -389,6 +403,8 @@ public void testGetEndpoints() {
389403
List.of(mock(Endpoint.class)),
390404
null,
391405
null,
406+
false,
407+
null,
392408
true,
393409
true
394410
);
@@ -407,6 +423,8 @@ public void testGetEndpointsWithEmptyList() {
407423
Collections.emptyList(),
408424
null,
409425
null,
426+
false,
427+
null,
410428
true,
411429
true
412430
);

0 commit comments

Comments
 (0)