Skip to content

Commit

Permalink
[WIP] Automate bug tackle-testapp-public using 4 targets for analysis
Browse files Browse the repository at this point in the history
Signed-off-by: Karishma Punwatkar <[email protected]>

	modified:   cypress/e2e/tests/migration/applicationinventory/analysis/source_analysis_without_creds.test.ts
	modified:   cypress/fixtures/analysis.json
	modified:   cypress/fixtures/application.json

	modified:   cypress/e2e/tests/migration/applicationinventory/analysis/source_analysis_without_creds.test.ts
	modified:   cypress/fixtures/analysis.json
	modified:   cypress/fixtures/application.json

	modified:   cypress/e2e/tests/migration/applicationinventory/analysis/source_analysis_without_creds.test.ts

	modified:   cypress/e2e/tests/migration/applicationinventory/analysis/source_analysis.test.ts
	modified:   cypress/e2e/tests/migration/applicationinventory/analysis/source_analysis_without_creds.test.ts
	modified:   cypress/fixtures/analysis.json
	modified:   cypress/fixtures/application.json

	modified:   cypress/e2e/tests/migration/applicationinventory/analysis/source_analysis.test.ts
  • Loading branch information
kpunwatk committed Aug 14, 2024
1 parent 1c013bc commit b9e904a
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,24 @@ describe(["@tier1"], "Source Analysis", () => {
application.verifyAnalysisStatus(AnalysisStatuses.completed);
});

// Automates bug MTA-3422
it("4 targets source analysis on tackle app public", function () {
const application = new Analysis(
getRandomApplicationData("tackle-public-4-targets", {
sourceData: this.appData["tackle-testapp-public"],
}),
getRandomAnalysisData(this.analysisData["tackle-testapp-public-4-targets"])
);
cy.wait(2 * SEC);
Application.open();
application.create();
applicationsList.push(application);
cy.wait(5 * SEC);
application.analyze();
application.verifyAnalysisStatus("Completed");
application.verifyEffort(this.analysisData["tackle-testapp-public-4-targets"]["effort"]);
});

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 @@ -1197,5 +1197,11 @@
"target": [],
"appName": "fileNotValidXML custom rules",
"customRule": ["settings.xml"]
},
"tackle-testapp-public-4-targets": {
"appName": "tackle-testapp-public",
"source": "Source code",
"target": ["Application server migration to", "OpenJDK", "Containerization", "Linux"],
"effort": 20
}
}
4 changes: 4 additions & 0 deletions cypress/fixtures/application.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,5 +71,9 @@
"java-example-app": {
"repoType": "Git",
"sourceRepo": "https://github.com/ibraginsky/book-server"
},
"tackle-testapp-public": {
"repoType": "Git",
"sourceRepo": "https://github.com/konveyor/tackle-testapp-public"
}
}

0 comments on commit b9e904a

Please sign in to comment.