Skip to content

Commit

Permalink
Address comments v1
Browse files Browse the repository at this point in the history
Signed-off-by: David Kornel <[email protected]>
  • Loading branch information
kornys committed May 7, 2024
1 parent 4e1e7f5 commit 181c323
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,7 @@ public boolean waitForReadiness(DataScienceCluster resource) {
// https://github.com/red-hat-data-services/rhods-operator/blob/rhoai-2.8/controllers/datasciencecluster/datasciencecluster_controller.go#L257

// Wait for standard Kubernetes condition types (status for the whole DSC)
record ConditionExpectation(String conditionType, String expectedStatus) {
}
record ConditionExpectation(String conditionType, String expectedStatus) { }
List<ConditionExpectation> conditionExpectations = List.of(
new ConditionExpectation("Available", "True"),
new ConditionExpectation("Progressing", "False"),
Expand Down Expand Up @@ -165,8 +164,7 @@ record ConditionExpectation(String conditionType, String expectedStatus) {
dscReady = dscReady && hasCreationSuccessfulEvent;

return dscReady;
}, () -> {
});
}, () -> { });

String namespace = OdhConstants.CONTROLLERS_NAMESPACE;
LOGGER.info("Waiting for pods readiness in {}", namespace);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
import io.opendatahub.datasciencecluster.v1.datascienceclusterspec.components.Ray;
import io.opendatahub.datasciencecluster.v1.datascienceclusterspec.components.Workbenches;
import io.opendatahub.v1alpha.OdhDashboardConfig;
import io.skodjob.testframe.annotations.ResourceManager;
import io.skodjob.testframe.resources.KubeResourceManager;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Tag;
Expand All @@ -39,7 +38,6 @@
import static org.junit.jupiter.api.Assertions.assertTrue;

@Tag(TestSuite.CONTINUOUS)
@ResourceManager(cleanResources = false)
public class DataScienceClusterST extends Abstract {

private static final String DS_CLUSTER_NAME = "default";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import io.odh.test.TestUtils;
import io.odh.test.e2e.Abstract;
import io.odh.test.framework.manager.resources.NotebookResource;
import io.skodjob.testframe.annotations.ResourceManager;
import io.skodjob.testframe.resources.KubeResourceManager;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Tag;
Expand All @@ -28,7 +27,6 @@
import static org.junit.jupiter.api.Assertions.assertNotNull;

@Tag(TestSuite.CONTINUOUS)
@ResourceManager(cleanResources = false)
public class DataScienceProjectST extends Abstract {
static final Logger LOGGER = LoggerFactory.getLogger(DataScienceProjectST.class);

Expand Down

0 comments on commit 181c323

Please sign in to comment.