Skip to content

Commit

Permalink
Automate Close-loop bug MTA-2972
Browse files Browse the repository at this point in the history
Signed-off-by: Karishma Punwatkar <kpunwatk@redhat.com>

	modified:   cypress/e2e/tests/migration/applicationinventory/analysis/source_analysis.test.ts
	modified:   cypress/fixtures/analysis.json
  • Loading branch information
kpunwatk committed Aug 19, 2024
1 parent 22a761a commit 16552ca
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,25 @@ describe(["@tier1"], "Source Analysis", () => {
application.verifyEffort(this.analysisData["tackle-testapp-public-4-targets"]["effort"]);
});

// Automates customer bug MTA-2973
it(["@tier0"], "Source analysis on tackle app public with custom rule", function () {
const application = new Analysis(
getRandomApplicationData("tackle-public-customRule", {
sourceData: this.appData["tackle-testapp-public"],
}),
getRandomAnalysisData(this.analysisData["tackle-testapp-public-customRule"])
);
cy.wait(2 * SEC);
Application.open();
application.create();
application.manageCredentials(null, maven_credential.name);
applicationsList.push(application);
cy.wait(5 * SEC);
application.analyze();
application.verifyAnalysisStatus("Completed");
application.verifyEffort(this.analysisData["tackle-testapp-public-customRule"]);
});

after("Perform test data clean up", function () {
deleteByList(applicationsList);
writeMavenSettingsFile(data.getRandomWord(5), data.getRandomWord(5));
Expand Down
6 changes: 6 additions & 0 deletions cypress/fixtures/analysis.json
Original file line number Diff line number Diff line change
Expand Up @@ -1211,5 +1211,11 @@
"source": "Source code",
"target": ["Application server migration to", "OpenJDK", "Containerization", "Linux"],
"effort": 20
},
"tackle-testapp-public-customRule": {
"appName": "tackle-testapp-public",
"source": "Source code",
"target": ["Containerization", "Linux", "OracleJDK to OpenJDK "],
"customRule": ["corporate-framework-config.windup.xml"]
}
}

0 comments on commit 16552ca

Please sign in to comment.