Skip to content

Commit

Permalink
Updated analysis.json to reflect real state of issues (#1279)
Browse files Browse the repository at this point in the history
Signed-off-by: Igor Braginsky <[email protected]>
  • Loading branch information
ibragins authored Dec 4, 2024
1 parent 9c5e3da commit d9e06c0
Show file tree
Hide file tree
Showing 3 changed files with 166 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ describe(["@tier3"], "Filtering, sorting and pagination in Issues", function ()
});

allIssuesSortByList.forEach((column) => {
it("All issues - Sort issues by ${column}", function () {
it(`All issues - Sort issues by ${column}`, function () {
Issues.openList();
validateSortBy(column);
});
Expand All @@ -265,7 +265,11 @@ describe(["@tier3"], "Filtering, sorting and pagination in Issues", function ()
});

affectedApplicationSortByList.forEach((column) => {
it(`Affected applications - sort by ${column}`, function () {
let title =
column === "Effort"
? `Bug MTA-4323: Affected applications - sort by ${column}`
: `Affected applications - sort by ${column}`;
it(title, function () {
Issues.openAffectedApplications(
this.analysisData["source_analysis_on_bookserverapp"]["issues"][0]["name"]
);
Expand Down
153 changes: 153 additions & 0 deletions cypress/fixtures/analysis.json
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,32 @@
"ruleSet": "quarkus/springboot",
"rule": "springboot-di-to-quarkus-00000",
"labels": ["None"]
},
{
"name": "Version of Spring Boot not compatible with Jakarta EE 9+",
"category": "mandatory",
"sources": ["None"],
"targets": ["jakarta-ee", "jakarta-ee9+", "jws", "jws6+"],
"effort": 3,
"totalEffort": 1,
"incidents": 1,
"affectedFiles": 1,
"ruleSet": "jakarta-ee9",
"rule": "spring-components-00001",
"labels": ["konveyor.io/source"]
},
{
"name": "Version of Spring not compatible with Jakarta EE 9+",
"category": "mandatory",
"sources": ["None"],
"targets": ["jakarta-ee", "jakarta-ee9+", "jws", "jws6+"],
"effort": 3,
"totalEffort": 1,
"incidents": 1,
"affectedFiles": 1,
"ruleSet": "quarkus/springboot",
"rule": "spring-components-00002",
"labels": ["konveyor.io/source"]
}
],
"dependencies": [
Expand Down Expand Up @@ -436,6 +462,49 @@
"rule": "jms-to-reactive-quarkus-00010",
"labels": []
},

{
"name": "@Produces cannot annotate an EntityManager",
"category": "potential",
"sources": ["jakarta-ee", "java-ee"],
"targets": ["quarkus"],
"effort": 1,
"totalEffort": 1,
"incidents": 1,
"affectedFiles": 1,
"ruleSet": "quarkus/springboot",
"rule": "persistence-to-quarkus-00011",
"labels": []
},

{
"name": "@Stateful annotation must be replaced",
"category": "mandatory",
"sources": ["jakarta-ee", "java-ee"],
"targets": ["quarkus"],
"effort": 3,
"totalEffort": 3,
"incidents": 1,
"affectedFiles": 1,
"ruleSet": "quarkus/springboot",
"rule": "persistence-to-quarkus-00011",
"labels": []
},

{
"name": "@Stateless annotation must be replaced",
"category": "potential",
"sources": ["jakarta-ee", "java-ee"],
"targets": ["quarkus"],
"effort": 1,
"totalEffort": 1,
"incidents": 1,
"affectedFiles": 1,
"ruleSet": "quarkus/springboot",
"rule": "persistence-to-quarkus-00011",
"labels": []
},

{
"name": "`beans.xml` descriptor content is ignored",
"category": "potential",
Expand Down Expand Up @@ -540,6 +609,34 @@
"rule": "jms-to-reactive-quarkus-00020",
"labels": []
},
{
"name": "File system - Java IO",
"category": "mandatory",
"sources": ["None"],
"targets": ["cloud-readiness"],
"effort": 1,
"totalEffort": 6,
"incidents": 6,
"affectedFiles": 1,
"ruleSet": "cloud-readiness",
"rule": "local-storage-00001",
"labels": ["konveyor.io/source", "storage"]
},

{
"name": "File system - java.net.URL/URI",
"category": "mandatory",
"sources": ["None"],
"targets": ["cloud-readiness"],
"effort": 1,
"totalEffort": 1,
"incidents": 1,
"affectedFiles": 1,
"ruleSet": "cloud-readiness",
"rule": "local-storage-00002",
"labels": ["konveyor.io/source", "storage"]
},

{
"name": "Implicit name determination for sequences and tables associated with identifier generation has changed",
"category": "potential",
Expand All @@ -553,6 +650,47 @@
"rule": "hibernate-00005",
"labels": ["hibernate", "konveyor.io/source"]
},

{
"name": "Java API for XML-based RPC (JAX-RPC)",
"category": "optional",
"sources": ["java", "rpc"],
"targets": ["cloud-readiness"],
"effort": 5,
"totalEffort": 5,
"incidents": 1,
"affectedFiles": 1,
"ruleSet": "cloud-readiness",
"rule": "java-rpc-00000",
"labels": ["rpc"]
},
{
"name": "Java Mail API",
"category": "optional",
"sources": ["java", "java-ee"],
"targets": ["cloud-readiness"],
"effort": 3,
"totalEffort": 3,
"incidents": 1,
"affectedFiles": 1,
"ruleSet": "cloud-readiness",
"rule": "mail-00000",
"labels": ["mail"]
},
{
"name": "Java Remote Method Invocation (RMI) service",
"category": "mandatory",
"sources": ["java", "rmi"],
"targets": ["cloud-readiness"],
"effort": 1,
"totalEffort": 1,
"incidents": 1,
"affectedFiles": 1,
"ruleSet": "cloud-readiness",
"rule": "java-rmi-00000",
"labels": ["cloud-readiness", "rmi"]
},

{
"name": "javax groupId has been replaced by jakarta.platform",
"category": "mandatory",
Expand Down Expand Up @@ -657,6 +795,21 @@
"rule": "persistence-to-quarkus-00000",
"labels": []
},

{
"name": "Producer annotation no longer required",
"category": "potential",
"sources": ["java-ee"],
"targets": ["quarkus"],
"effort": 1,
"totalEffort": 1,
"incidents": 1,
"affectedFiles": 1,
"ruleSet": "quarkus/springboot",
"rule": "cdi-to-quarkus-00040",
"labels": []
},

{
"name": "Remote EJBs are not supported in Quarkus",
"category": "mandatory",
Expand Down
9 changes: 7 additions & 2 deletions cypress/utils/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,14 @@ export function inputText(fieldId: string, text: any, log = false): void {
if (!log) {
cy.log(`Type ${text} in ${fieldId}`);
}
cy.get(fieldId, { log }).click({ log }).focused({ log }).clear({ log });
cy.get(fieldId, { log, timeout: 30 * SEC })
.click({ log })
.focused({ log })
.clear({ log });
cy.wait(200, { log });
cy.get(fieldId, { log }).clear({ log }).type(text, { log });
cy.get(fieldId, { log, timeout: 30 * SEC })
.clear({ log })
.type(text, { log });
}

export function clearInput(fieldID: string): void {
Expand Down

0 comments on commit d9e06c0

Please sign in to comment.