Skip to content

Commit

Permalink
Change tier for tests
Browse files Browse the repository at this point in the history
Signed-off-by: Nandini Chandra <[email protected]>
  • Loading branch information
nachandr committed Aug 22, 2023
1 parent 0a3de60 commit b05a798
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,15 @@ import {
getRandomApplicationData,
getRandomAnalysisData,
deleteByList,
checkSuccessAlert,
selectCheckBox,
} from "../../../../../utils/utils";
import { Analysis } from "../../../../models/migration/applicationinventory/analysis";
import { infoAlertMessage } from "../../../../views/common.view";
import { Assessment } from "../../../../models/migration/applicationinventory/assessment";
import { AnalysisStatuses } from "../../../../types/constants";

const analyses: Analysis[] = [];
const NUMBER_OF_APPS = 25;

describe(["@load"], "Bulk Analysis", () => {
describe(["@tier4"], "Bulk Analysis", () => {
before("Login", function () {
login();
cy.fixture("application").then((appData) => {
Expand Down
8 changes: 4 additions & 4 deletions cypress/e2e/tests/rbac/disable_keycloak.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import { Assessment } from "../../models/migration/applicationinventory/assessme
let application = new Assessment(getRandomApplicationData());
let stakeholder = new Stakeholders(data.getEmail(), data.getFullName());

describe(["@tier1"], "Perform certain operations after disabling Keycloak", function () {
describe(["@tier4"], "Perform certain operations after disabling Keycloak", function () {
// Automates Polarion MTA-293
before("Disable Keycloak", function () {
login();
Expand All @@ -40,17 +40,17 @@ describe(["@tier1"], "Perform certain operations after disabling Keycloak", func
});
});

it("Auth disabled, Perform application assessment", function () {
it.skip("Bug MTA-1152: Auth disabled, Perform application assessment", function () {
application.perform_assessment("low", [stakeholder.name]);
cy.wait(1000);
application.verifyStatus("assessment", "Completed");
});

it("Auth disabled, Verify presence of Review application button", function () {
it.skip("Bug MTA-1152: Auth disabled, Verify presence of Review application button", function () {
Application.validateReviewButton(this.rbacRules);
});

after("Re-enable Keycloak", function () {
after("Bug MTA-1152: Re-enable Keycloak", function () {
patchTackleCR("keycloak", true);
login();

Expand Down
1 change: 1 addition & 0 deletions cypress/utils/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1695,6 +1695,7 @@ export function getNamespace(): string {
}
}

export function patchTackleCR(option: string, isEnabled = true): void {
let value = "";
if (isEnabled) {
value = "true";
Expand Down

0 comments on commit b05a798

Please sign in to comment.