Skip to content

Commit

Permalink
[WIP] Automate bug reported by customer for camel3 to4 migration
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/upload_binary_analysis.test.ts
	modified:   cypress/fixtures/analysis.json
	new file:   cypress/fixtures/camel-cbr-migrated.zip
  • Loading branch information
kpunwatk committed Feb 27, 2024
1 parent 290fde3 commit 300d561
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,19 @@ describe(["@tier1"], "Upload Binary Analysis", () => {
application.verifyAnalysisStatus(AnalysisStatuses.completed);
});

it("Analysis for camel-cbr-migrated app ", function () {
const application = new Analysis(
getRandomApplicationData("uploadBinary"),
getRandomAnalysisData(this.analysisData["analysis_with_camel_cbr_migrated"])
);
application.create();
applicationsList.push(application);
cy.wait("@getApplication");
cy.wait(2000);
application.analyze();
application.verifyAnalysisStatus(AnalysisStatuses.completed);
});

afterEach("Persist session", function () {
Application.open(true);
});
Expand Down
8 changes: 8 additions & 0 deletions cypress/fixtures/analysis.json
Original file line number Diff line number Diff line change
Expand Up @@ -361,5 +361,13 @@
"appName": "deps",
"openSourceLibraries": true,
"effort": 596
},

"analysis_with_camel_cbr_migrated": {
"source": "Upload a local binary",
"target": ["camel:4"],
"binary": ["camel-cbr-migrated.zip"],
"appName": "camel-cbr-migrated.zip",
"effort": 21
}
}
Binary file added cypress/fixtures/camel-cbr-migrated.zip
Binary file not shown.

0 comments on commit 300d561

Please sign in to comment.