Skip to content

Commit

Permalink
[RFR] Fix Source analysis
Browse files Browse the repository at this point in the history
Signed-off-by: Karishma Punwatkar <[email protected]>

	modified:   cypress/e2e/models/migration/applicationinventory/application.ts
	modified:   cypress/e2e/models/migration/dynamic-report/issues/issues.ts

	modified:   cypress/e2e/models/migration/dynamic-report/issues/issues.ts

	modified:   cypress/e2e/tests/migration/applicationinventory/analysis/source_analysis.test.ts

	modified:   cypress/fixtures/analysis.json
  • Loading branch information
kpunwatk committed Jan 22, 2025
1 parent 09a7bcd commit 59cfd6b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
4 changes: 3 additions & 1 deletion cypress/e2e/models/migration/dynamic-report/issues/issues.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,9 @@ export class Issues {
);
Issues.validateSection(issue.name, sections.targetTechnologies, span, issue.targets);
Issues.validateSection(issue.name, sections.sourceTechnologies, div, issue.sources);
Issues.validateSection(issue.name, sections.ruleSet, div, issue.ruleSet);
if (issue.ruleSet) {
Issues.validateSection(issue.name, sections.ruleSet, div, issue.ruleSet);
}
Issues.validateSection(issue.name, sections.rule, div, issue.rule);
Issues.validateSection(issue.name, sections.labels, div, issue.labels);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,7 @@ describe(["@tier1"], "Source Analysis", () => {
cy.wait(2 * SEC);
application.analyze();
application.verifyAnalysisStatus("Completed");
Application.open();
// Polarion TC 406
application.verifyEffort(this.analysisData["analysis_on_example-1-app"]["effort"]);
});
Expand All @@ -284,6 +285,7 @@ describe(["@tier1"], "Source Analysis", () => {
application.manageCredentials(source_credential.name, maven_credential.name);
application.analyze();
application.verifyAnalysisStatus("Completed");
Application.open();
application.verifyEffort(
this.analysisData["jws6_source+dep_analysis_on_tackletestapp"]["effort"]
);
Expand Down Expand Up @@ -364,6 +366,7 @@ describe(["@tier1"], "Source Analysis", () => {
cy.wait(5 * SEC);
application.analyze();
application.verifyAnalysisStatus("Completed");
Application.open();
application.verifyEffort(this.analysisData["tackle-testapp-public-4-targets"]["effort"]);
});

Expand Down
2 changes: 1 addition & 1 deletion cypress/fixtures/analysis.json
Original file line number Diff line number Diff line change
Expand Up @@ -1164,7 +1164,7 @@
"source": "Source code",
"target": ["Containerization"],
"appName": "example-1",
"effort": 2
"effort": 0
},
"source_analysis_on_nexus_app": {
"source": "Source code",
Expand Down

0 comments on commit 59cfd6b

Please sign in to comment.