Skip to content

Commit

Permalink
Merge pull request #1298 from kpunwatk/MTA_4024
Browse files Browse the repository at this point in the history
[RFR][TA] Automate cool store bug_MTA_4024
  • Loading branch information
ibragins authored Dec 30, 2024
2 parents d6ba101 + 81827dd commit 3966b4e
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ describe(["@tier2"], "Affected files validation", () => {
// Interceptors
cy.intercept("POST", "/hub/application*").as("postApplication");
cy.intercept("GET", "/hub/application*").as("getApplication");

Application.open(true);
});

it("Bug MTA-2006: Affected files validation with Source + dependencies analysis on daytrader app", function () {
Expand Down Expand Up @@ -161,6 +163,29 @@ describe(["@tier2"], "Affected files validation", () => {
);
});

// Automates Bug https://issues.redhat.com/browse/MTA-4024
it("Affected files validation with source+deps analysis on coolStore app", function () {
const application = new Analysis(
getRandomApplicationData("affected_files_on_coolStoreApp", {
sourceData: this.appData["cool-store-app"],
}),
getRandomAnalysisData(this.analysisData["affected_files_on_coolStore_deps"])
);
application.create();
applicationsList.push(application);
cy.wait("@getApplication");
cy.wait(2 * SEC);
application.analyze();
application.verifyAnalysisStatus("Completed");
application.verifyEffort(this.analysisData["affected_files_on_coolStore_deps"]["effort"]);
application.validateIssues(this.analysisData["affected_files_on_coolStore_deps"]["issues"]);
this.analysisData["affected_files_on_coolStore_deps"]["issues"].forEach(
(currentIssue: AppIssue) => {
application.validateAffected(currentIssue);
}
);
});

after("Perform test data clean up", function () {
deleteByList(applicationsList);
});
Expand Down
22 changes: 22 additions & 0 deletions cypress/fixtures/analysis.json
Original file line number Diff line number Diff line change
Expand Up @@ -1249,6 +1249,28 @@
]
},

"affected_files_on_coolStore_deps": {
"source": "Source code + dependencies",
"target": ["Containerization", "Jakarta EE 9"],
"appName": "cool-store-app",
"effort": 114,
"issues": [
{
"name": "Move to Jakarta EE Maven Artifacts - replace groupId javax.activation",
"category": "potential",
"sources": ["None"],
"targets": ["eap"],
"effort": 1,
"totalEffort": 1,
"incidents": 1,
"affectedFiles": 1,
"ruleSet": "eap7/weblogic/tests/data",
"rule": "maven-javax-to-jakarta-00002",
"labels": ["JakartaEE", "konveyor.io/source"]
}
]
},

"jws6_source+dep_analysis_on_tackletestapp": {
"source": "Source code + dependencies",
"target": ["JBoss Web Server 6"],
Expand Down
4 changes: 4 additions & 0 deletions cypress/fixtures/application.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,5 +79,9 @@
"python-demo-app": {
"repoType": "Git",
"sourceRepo": "https://github.com/Shopify/sample-django-app"
},
"cool-store-app": {
"repoType": "Git",
"sourceRepo": "https://github.com/konveyor-ecosystem/coolstore"
}
}

0 comments on commit 3966b4e

Please sign in to comment.