Skip to content

Commit

Permalink
[RFR] Update tier level (#785)
Browse files Browse the repository at this point in the history
* Update tier level

Signed-off-by: Nandini Chandra <[email protected]>

* Move source analysis without creds to different file

Signed-off-by: Nandini Chandra <[email protected]>

* Move source analysis without creds to different file

Signed-off-by: Nandini Chandra <[email protected]>

* Move source analysis without creds to different file

Signed-off-by: Nandini Chandra <[email protected]>

* Remove bookserver test

Signed-off-by: Nandini Chandra <[email protected]>

---------

Signed-off-by: Nandini Chandra <[email protected]>
  • Loading branch information
nachandr authored Nov 1, 2023
1 parent f32048b commit 414e5b0
Show file tree
Hide file tree
Showing 4 changed files with 68 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,24 +79,6 @@ describe(["@tier1"], "Source Analysis", () => {
resetURL();
});

it("Source Analysis on bookserver app and success alert validation", function () {
// For source code analysis application must have source code URL git or svn
cy.log(this.analysisData[0]);
const application = new Analysis(
getRandomApplicationData("bookserverApp", {
sourceData: this.appData["bookserver-app"],
}),
getRandomAnalysisData(this.analysisData["source_analysis_on_bookserverapp"])
);
application.create();
applicationsList.push(application);
cy.wait("@getApplication");
cy.wait(2000);
application.analyze();
checkSuccessAlert(infoAlertMessage, `Submitted for analysis`);
application.verifyAnalysisStatus("Completed");
});

it("Source + dependencies analysis on tackletest app", function () {
// Source code analysis require both source and maven credentials
const application = new Analysis(
Expand Down Expand Up @@ -222,7 +204,7 @@ describe(["@tier1"], "Source Analysis", () => {
application.verifyAnalysisStatus("Completed");
});

it(["@tier0"], "Automated tagging using Source Analysis on tackle testapp", function () {
it("Automated tagging using Source Analysis on tackle testapp", function () {
// Automates Polarion MTA-208
const application = new Analysis(
getRandomApplicationData("tackleTestApp_Source_autoTagging", {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
/*
Copyright © 2021 the Konveyor Contributors (https://konveyor.io/)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
/// <reference types="cypress" />

import {
login,
getRandomApplicationData,
getRandomAnalysisData,
deleteByList,
checkSuccessAlert,
} from "../../../../../utils/utils";
import { Analysis } from "../../../../models/migration/applicationinventory/analysis";
import { infoAlertMessage } from "../../../../views/common.view";
let applicationsList: Array<Analysis> = [];

describe("Source Analysis without credentials", () => {
before("Load data", function () {
login();
cy.fixture("application").then(function (appData) {
this.appData = appData;
});
cy.fixture("analysis").then(function (analysisData) {
this.analysisData = analysisData;
});

// Interceptors
cy.intercept("POST", "/hub/application*").as("postApplication");
cy.intercept("GET", "/hub/application*").as("getApplication");
});

it(["@tier0"], "Source Analysis on bookserver app and success alert validation", function () {
// For source code analysis application must have source code URL git or svn
cy.log(this.analysisData[0]);
const application = new Analysis(
getRandomApplicationData("bookserverApp", {
sourceData: this.appData["bookserver-app"],
}),
getRandomAnalysisData(this.analysisData["source_analysis_on_bookserverapp"])
);
application.create();
applicationsList.push(application);
cy.wait("@getApplication");
cy.wait(2000);
application.analyze();
checkSuccessAlert(infoAlertMessage, `Submitted for analysis`);
application.verifyAnalysisStatus("Completed");
});

after("Perform test data clean up", function () {
deleteByList(applicationsList);
});
});
2 changes: 1 addition & 1 deletion cypress/e2e/tests/migration/migration-waves/crud.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ now.setDate(now.getDate() + 1);
const end = new Date(now.getTime());
end.setFullYear(end.getFullYear() + 1);

describe(["@tier1"], "Migration Waves CRUD operations", () => {
describe(["@tier0"], "Migration Waves CRUD operations", () => {
before("Create test data", () => {
login();
stakeHolders = createMultipleStakeholders(2);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ let projectName = "";
* @see export_to_jira_datacenter.test.ts for Jira Datacenter tests
* This suite is almost identical to jira_datacenter but putting both tests in the same suite would make the code harder to read
*/
describe(["@tier0", "@interop"], "Export Migration Wave to Jira Cloud", function () {
describe(["@tier1", "@interop"], "Export Migration Wave to Jira Cloud", function () {
before("Create test data", function () {
login();

Expand Down

0 comments on commit 414e5b0

Please sign in to comment.