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
  • Loading branch information
kpunwatk committed Aug 14, 2024
1 parent 1c013bc commit 154118e
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import { Analysis } from "../../../../models/migration/applicationinventory/anal
import { infoAlertMessage } from "../../../../views/common.view";
import { AppIssue } from "../../../../types/types";
import { Application } from "../../../../models/migration/applicationinventory/application";
import { succeeded } from "../../../../types/constants";
import { SEC, succeeded } from "../../../../types/constants";
import { TaskManager } from "../../../../models/migration/task-manager/task-manager";
let applicationsList: Array<Analysis> = [];
let application: Analysis;
Expand Down Expand Up @@ -74,6 +74,23 @@ describe(["@tier1"], "Source Analysis without credentials", () => {
TaskManager.verifyStatus(application.name, succeeded);
});

// 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"])
);
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 () {
cy.wait(2000);
Application.open(true);
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 154118e

Please sign in to comment.