Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix dummy tests for packit CI #35

Merged
merged 1 commit into from
Sep 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 14 additions & 5 deletions src/test/java/io/streams/e2e/dummy/DummyST.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
import io.streams.operators.olm.catalog.StrimziOlmCatalogInstaller;
import io.strimzi.api.kafka.model.kafka.KafkaResources;
import io.strimzi.api.kafka.model.nodepool.ProcessRoles;
import io.strimzi.api.kafka.model.topic.KafkaTopic;
import io.strimzi.api.kafka.model.user.KafkaUser;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.condition.EnabledIf;
Expand Down Expand Up @@ -70,15 +72,23 @@ void installStrimziFromManifestsTest() throws IOException {
KafkaTemplate.defaultKafka(StrimziManifestInstaller.OPERATOR_NS, kafkaName).build()
);

KafkaTopic topic = KafkaTopicTemplate.defaultKafkaTopic(
StrimziManifestInstaller.OPERATOR_NS, kafkaTopicName, kafkaName).build();
KafkaUser user = KafkaUserTemplate.defaultKafkaUser(
StrimziManifestInstaller.OPERATOR_NS, kafkaUserName, kafkaName).build();

// Now rest of the operands
KubeResourceManager.getInstance().createResourceWithWait(
KafkaTopicTemplate.defaultKafkaTopic(StrimziManifestInstaller.OPERATOR_NS, kafkaTopicName, kafkaName).build(),
KafkaUserTemplate.defaultKafkaUser(StrimziManifestInstaller.OPERATOR_NS, kafkaUserName, kafkaName).build(),
topic,
user,
KafkaBridgeTemplate.defaultKafkaBridge(StrimziManifestInstaller.OPERATOR_NS, kafkaBridgeName,
KafkaResources.tlsBootstrapAddress(kafkaName)).build(),
KafkaConnectTemplate.defaultKafkaConnectWithConnector(StrimziManifestInstaller.OPERATOR_NS,
kafkaConnectName, kafkaName, KafkaResources.tlsBootstrapAddress(kafkaName)).build()
);

// Try deleting some resources
KubeResourceManager.getInstance().deleteResource(topic, user);
}

@Test
Expand Down Expand Up @@ -114,9 +124,8 @@ void installDebeziumFromManifestsTest() throws IOException {

@Test
void installFlinkAndCertManagerFromManifestsTest() throws IOException {
CompletableFuture.allOf(
CertManagerManifestInstaller.install(),
FlinkManifestInstaller.install()).join();
CompletableFuture.allOf(CertManagerManifestInstaller.install()).join();
CompletableFuture.allOf(FlinkManifestInstaller.install()).join();

assertTrue(KubeResourceManager.getKubeClient().getClient().apps()
.deployments().inNamespace(CertManagerManifestInstaller.OPERATOR_NS)
Expand Down