Skip to content

Commit

Permalink
[RFR] Upload binary analysis with scope "adding a list of packages to…
Browse files Browse the repository at this point in the history
… be analyzed"

Signed-off-by: Karishma Punwatkar <[email protected]>

	modified:   cypress/e2e/tests/migration/applicationinventory/analysis/upload_binary_analysis.test.ts
	modified:   cypress/fixtures/analysis.json
  • Loading branch information
kpunwatk committed Apr 8, 2024
1 parent 286d540 commit 19997d6
Show file tree
Hide file tree
Showing 2 changed files with 25 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(["@tier2", "@dc"], "upload_binary_with_exculde_packages_scope", function () {
const application = new Analysis(
getRandomApplicationData("uploadBinary"),
getRandomAnalysisData(this.analysisData["upload_binary_with_exculde_packages"])
);
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
12 changes: 12 additions & 0 deletions cypress/fixtures/analysis.json
Original file line number Diff line number Diff line change
Expand Up @@ -403,5 +403,17 @@
"target": ["Containerization"],
"binary": ["administracionEfectivo.ear"],
"customRule": ["test.windup.xml"]
},

"upload_binary_with_exculde_packages": {
"appName": "administracionEfectivo-app custom rules",
"source": "Upload a local binary",
"target": ["Containerization"],
"binary": ["administracionEfectivo.ear"],
"manuallyAnalyzePackages": "io.konveyor.demo.ordermanagement",
"excludedPackagesList": [
" io.konveyor.demo.ordermanagement",
" io.konveyor.demo.ordermanagement.model "
]
}
}

0 comments on commit 19997d6

Please sign in to comment.