Skip to content

Commit

Permalink
[RFR][JF] FIx upload binary test case
Browse files Browse the repository at this point in the history
Signed-off-by: Karishma Punwatkar <kpunwatk@redhat.com>

	modified:   cypress/e2e/tests/migration/applicationinventory/analysis/upload_binary_analysis.test.ts
	modified:   cypress/fixtures/analysis.json
  • Loading branch information
kpunwatk committed Jan 23, 2025
1 parent 09a7bcd commit a420798
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 31 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ describe(["@tier1"], "Upload Binary Analysis", () => {
});

cy.intercept("GET", "/hub/application*").as("getApplication");

Application.open(true);
});

Expand Down
35 changes: 4 additions & 31 deletions cypress/fixtures/analysis.json
Original file line number Diff line number Diff line change
Expand Up @@ -997,7 +997,7 @@
"target": ["Jakarta EE 9"],
"binary": ["acmeair-webapp-1.0-SNAPSHOT.war"],
"appName": "acmeair-webapp-1.0-SNAPSHOT.war",
"effort": 78
"effort": 79
},

"uploadbinary_analysis_with_customrule": {
Expand Down Expand Up @@ -1106,50 +1106,23 @@
"binary": ["jee-example-app-1.0.0.ear"],
"appsName": "jee-example-app-1.0.0.ear",
"target": ["Quarkus"],
"effort": 85,
"incidents": [
{
"mandatory": 27,
"optional": 0,
"potential": 38,
"information": 11,
"total": 102
}
]
"effort": 112
},

"analysis_and_incident_validation_camunda_app": {
"source": "Upload a local binary",
"binary": ["camunda-bpm-spring-boot-starter-example-war-2.0.0.war"],
"appName": "camunda-bpm-spring-boot-starter-example-war-2.0.0.war",
"target": ["Quarkus"],
"effort": 20,
"incidents": [
{
"mandatory": 86,
"optional": 9,
"potential": 26,
"information": 110,
"total": 144
}
]
"effort": 20
},

"analysis_and_incident_validation_kafka-app": {
"source": "Upload a local binary",
"binary": ["kafka-clients-sb-sample.jar"],
"appName": "kafka-clients-sb-sample.jar",
"target": ["Quarkus"],
"effort": 6,
"incidents": [
{
"mandatory": 20,
"optional": 0,
"potential": 31,
"information": 54,
"total": 103
}
]
"effort": 6
},

"analysis_for_openSourceLibraries": {
Expand Down

0 comments on commit a420798

Please sign in to comment.