Skip to content

Commit

Permalink
style
Browse files Browse the repository at this point in the history
  • Loading branch information
pan3793 committed Apr 28, 2023
1 parent f055bad commit da8b25b
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -200,14 +200,14 @@ void testResourceListServerSideApply() {
Service svc = new ServiceBuilder().withNewMetadata().withName("svc1").endMetadata().build();
// When
kubernetesClient.resourceList(pod, svc).inNamespace("ns1").fieldManager("x")
.forceConflicts().serverSideApply();
.forceConflicts().serverSideApply();

// Then
verify(mockClient, times(2)).sendAsync(any(), any());
assertRequest(0, "PATCH", "/api/v1/namespaces/ns1/pods/pod1", "fieldManager=x&force=true",
PatchType.SERVER_SIDE_APPLY.getContentType());
PatchType.SERVER_SIDE_APPLY.getContentType());
assertRequest(1, "PATCH", "/api/v1/namespaces/ns1/services/svc1", "fieldManager=x&force=true",
PatchType.SERVER_SIDE_APPLY.getContentType());
PatchType.SERVER_SIDE_APPLY.getContentType());
}

private void assertRequest(String method, String url, String queryParam) {
Expand Down

0 comments on commit da8b25b

Please sign in to comment.