From 960c0828b311c0c07ae52d0ba11297530f80484d Mon Sep 17 00:00:00 2001 From: Fabio Burzigotti Date: Tue, 7 Jan 2025 09:27:31 +0100 Subject: [PATCH] fix-test --- ...taHubOpenShiftOperatorProvisionerTest.java | 25 ++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/testsuite/integration-tests/src/test/java/org/jboss/intersmash/testsuite/provision/openshift/OpenDataHubOpenShiftOperatorProvisionerTest.java b/testsuite/integration-tests/src/test/java/org/jboss/intersmash/testsuite/provision/openshift/OpenDataHubOpenShiftOperatorProvisionerTest.java index 6431c155..ed9b0854 100644 --- a/testsuite/integration-tests/src/test/java/org/jboss/intersmash/testsuite/provision/openshift/OpenDataHubOpenShiftOperatorProvisionerTest.java +++ b/testsuite/integration-tests/src/test/java/org/jboss/intersmash/testsuite/provision/openshift/OpenDataHubOpenShiftOperatorProvisionerTest.java @@ -22,6 +22,9 @@ import io.fabric8.kubernetes.api.model.DeletionPropagation; import io.opendatahub.datasciencecluster.v1.DataScienceCluster; import io.opendatahub.datasciencecluster.v1.DataScienceClusterBuilder; +import io.opendatahub.datasciencecluster.v1.datascienceclusterspec.components.kserve.Nim; +import io.opendatahub.datasciencecluster.v1.datascienceclusterspec.components.kserve.Serving; +import io.opendatahub.datasciencecluster.v1.datascienceclusterspec.components.kserve.serving.ingressgateway.Certificate; import io.opendatahub.dscinitialization.v1.DSCInitialization; import io.opendatahub.dscinitialization.v1.DSCInitializationBuilder; import lombok.extern.slf4j.Slf4j; @@ -44,6 +47,26 @@ public DataScienceCluster getDataScienceCluster() { .withNewMetadata() .withName(APP_NAME) .endMetadata() + .withNewSpec() + .withNewComponents() + .withNewKserve() + .withNewNim() + .withManagementState(Nim.ManagementState.Managed) + .endNim() + .withNewServing() + .withNewIngressGateway() + .withNewCertificate() + .withType(Certificate.Type.OpenshiftDefaultIngress) + .endCertificate() + .endIngressGateway() + .withManagementState(Serving.ManagementState.Managed) + .endServing() + .endKserve() + .withNewModelregistry() + .withRegistriesNamespace("odh-model-registries") + .endModelregistry() + .endComponents() + .endSpec() .build(); } @@ -117,10 +140,10 @@ private void verifyMinimalDataScienceCluster(final DataScienceCluster dataScienc final DSCInitialization dscInitialization) { // create and verify that objects exist operatorProvisioner.dataScienceClusterClient().resource(dataScienceCluster).create(); - operatorProvisioner.dscInitializationClient().resource(dscInitialization).create(); new SimpleWaiter(() -> operatorProvisioner.dataScienceClusterClient().list().getItems().size() == 1) .level(Level.DEBUG) .waitFor(); + operatorProvisioner.dscInitializationClient().resource(dscInitialization).create(); new SimpleWaiter(() -> operatorProvisioner.dscInitializationClient().list().getItems().size() == 1) .level(Level.DEBUG) .waitFor();