-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Integrate Allure HTML reporting for testing (#122)
- Loading branch information
Showing
5 changed files
with
106 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,6 +34,8 @@ | |
import io.opendatahub.datasciencepipelinesapplications.v1alpha1.DataSciencePipelinesApplicationBuilder; | ||
import io.opendatahub.datasciencepipelinesapplications.v1alpha1.datasciencepipelinesapplicationspec.ApiServer; | ||
import io.opendatahub.dscinitialization.v1.DSCInitialization; | ||
import io.qameta.allure.Issue; | ||
import io.qameta.allure.TmsLink; | ||
import io.skodjob.annotations.Contact; | ||
import io.skodjob.annotations.Desc; | ||
import io.skodjob.annotations.Step; | ||
|
@@ -93,9 +95,9 @@ void deployDataScienceCluster() { | |
ResourceManager.getInstance().createResourceWithWait(dsc); | ||
} | ||
|
||
/// ODS-2206 - Verify user can create and run a data science pipeline in DS Project | ||
/// ODS-2226 - Verify user can delete components of data science pipeline from DS Pipelines page | ||
/// https://issues.redhat.com/browse/RHODS-5133 | ||
@Issue("RHODS-5133") | ||
@TmsLink("ODS-2206") // Verify user can create and run a data science pipeline in DS Project | ||
@TmsLink("ODS-2226") // Verify user can delete components of data science pipeline from DS Pipelines page | ||
@TestDoc( | ||
description = @Desc("Check that user can create, run and deleted DataSciencePipeline from a DataScience project"), | ||
contact = @Contact(name = "Jiri Danek", email = "[email protected]"), | ||
|
@@ -252,6 +254,7 @@ void testUserCanCreateRunAndDeleteADSPipelineFromDSProject() throws IOException | |
} | ||
} | ||
|
||
@io.qameta.allure.Step | ||
private void checkPipelineRunK8sDeployments(String prjTitle, String workflowName) { | ||
List<List<Pod>> tektonTaskPods = Stream.of( | ||
client.pods().inNamespace(prjTitle).withLabel("tekton.dev/taskRun=" + workflowName + "-data-prep"), | ||
|
@@ -275,6 +278,7 @@ private void checkPipelineRunK8sDeployments(String prjTitle, String workflowName | |
} | ||
} | ||
|
||
@io.qameta.allure.Step | ||
private static void waitForEndpoints(Resource<Endpoints> endpoints) { | ||
TestUtils.waitFor("pipelines svc to come up", TestConstants.GLOBAL_POLL_INTERVAL_SHORT, TestConstants.GLOBAL_TIMEOUT, () -> { | ||
try { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# | ||
# Copyright Skodjob authors. | ||
# License: Apache License 2.0 (see the file LICENSE or http://apache.org/licenses/LICENSE-2.0.html). | ||
# | ||
|
||
allure.results.directory=target/allure-results | ||
|
||
allure.link.issue.pattern = https://issues.redhat.com/browse/{} |