Skip to content

Commit

Permalink
Add k8s kind
Browse files Browse the repository at this point in the history
  • Loading branch information
cmendesce committed Jan 1, 2024
1 parent 00cb962 commit 066f782
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@

import java.util.Map;

import static java.util.concurrent.TimeUnit.MINUTES;
import static org.awaitility.Awaitility.await;
import static org.junit.jupiter.api.Assertions.assertNotNull;

public class ScenarioRunnerE2ETest {
Expand All @@ -38,6 +40,8 @@ public void creationTest() {
var scenario = new Scenario(spec);
scenario.setMetadata(new ObjectMetaBuilder().withName("scenario-test").build());
operator.create(scenario);
assertNotNull(operator.get(Scenario.class, "scenario-test"));
await().atMost(5, MINUTES).untilAsserted(() -> {
assertNotNull(operator.get(Scenario.class, "scenario-test"));
});
}
}

0 comments on commit 066f782

Please sign in to comment.