File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
operator-framework/src/test/java/com/github/containersolutions/operator Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,10 @@ public void manyResourcesGetCreatedUpdatedAndDeleted() {
63
63
log .info ("Updating {} resources" , NUMBER_OF_RESOURCES_UPDATED );
64
64
// update some resources
65
65
for (int i = 0 ; i < NUMBER_OF_RESOURCES_UPDATED ; i ++) {
66
- TestCustomResource tcr = integrationTest .createTestCustomResource (String .valueOf (i ));
66
+ TestCustomResource tcr = (TestCustomResource ) integrationTest .getCrOperations ()
67
+ .inNamespace (TEST_NAMESPACE )
68
+ .withName (IntegrationTestSupport .TEST_CUSTOM_RESOURCE_PREFIX + i )
69
+ .get ();
67
70
tcr .getSpec ().setValue (i + UPDATED_SUFFIX );
68
71
integrationTest .getCrOperations ().inNamespace (TEST_NAMESPACE ).createOrReplace (tcr );
69
72
}
You can’t perform that action at this time.
0 commit comments