Skip to content

Commit

Permalink
Fix failing ResourceIT list createOrReplace()
Browse files Browse the repository at this point in the history
  • Loading branch information
rohanKanojia committed Aug 7, 2020
1 parent fa4e44d commit 3bbddf1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public void get() {
@Test
public void list() {
Pod listPod1 = new PodBuilder()
.withNewMetadata().withName("pod3").endMetadata()
.withNewMetadata().withName("resource-pod-list-pod3").endMetadata()
.withNewSpec()
.addNewContainer().withName("nginx").withImage("nginx").endContainer()
.endSpec()
Expand All @@ -100,7 +100,7 @@ public void list() {
.inNamespace(session.getNamespace())
.createOrReplace();

Assert.assertNotNull(client.pods().inNamespace(session.getNamespace()).withName("pod3"));
Assert.assertNotNull(client.pods().inNamespace(session.getNamespace()).withName("resource-pod-list-pod3"));

boolean bDeleted = client.resourceList(new PodListBuilder().withItems(listPod1).build())
.inNamespace(session.getNamespace())
Expand Down

0 comments on commit 3bbddf1

Please sign in to comment.