diff --git a/cypress/e2e/tests/migration/applicationinventory/analysis/source_analysis.test.ts b/cypress/e2e/tests/migration/applicationinventory/analysis/source_analysis.test.ts index 2e3fc51d1..9c58e2f16 100644 --- a/cypress/e2e/tests/migration/applicationinventory/analysis/source_analysis.test.ts +++ b/cypress/e2e/tests/migration/applicationinventory/analysis/source_analysis.test.ts @@ -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)); diff --git a/cypress/fixtures/analysis.json b/cypress/fixtures/analysis.json index 71c9df722..5125786b8 100644 --- a/cypress/fixtures/analysis.json +++ b/cypress/fixtures/analysis.json @@ -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"] } }