Skip to content

Commit

Permalink
[RFR] JF: Fixed RBAC custom rules test (konveyor#1055)
Browse files Browse the repository at this point in the history
* JF: Fixed RBAC custom rules test

Signed-off-by: Igor Braginsky <[email protected]>

* Moved disabling keycloak to a separate dir

Signed-off-by: Igor Braginsky <[email protected]>

* Removing dc tag that I added back by mistake

Signed-off-by: Igor Braginsky <[email protected]>

---------

Signed-off-by: Igor Braginsky <[email protected]>
  • Loading branch information
ibragins authored Apr 3, 2024
1 parent a28e849 commit ea07b13
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions cypress/e2e/tests/rbac/custom-migration-target.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ import { UserArchitect } from "../../models/keycloak/users/userArchitect";
import { UserMigrator } from "../../models/keycloak/users/userMigrator";
import { User } from "../../models/keycloak/users/user";

describe(["tier2"], "1 Bug: Custom Migration Targets RBAC operations", function () {
describe(["tier2"], "Custom Migration Targets RBAC operations", function () {
// Polarion TC 317 & 319
let analysis: Analysis;
let target: CustomMigrationTarget;
Expand Down Expand Up @@ -108,7 +108,7 @@ describe(["tier2"], "1 Bug: Custom Migration Targets RBAC operations", function
architect.logout();
});

it("Bug MTA-1455: Look for created target on an analysis as migrator user", function () {
it("Look for created target on an analysis as migrator user", function () {
migrator.login();
assertTargetIsVisible(analysis, target);
analyzeAndVerify(analysis);
Expand Down Expand Up @@ -143,6 +143,7 @@ describe(["tier2"], "1 Bug: Custom Migration Targets RBAC operations", function
.and("contain", "Custom");

clickByText(button, "Cancel");
existingAnalysis.selectApplication();
};

const analyzeAndVerify = (analysis: Analysis) => {
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/tests/rbac/migrator.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import * as data from "../../../utils/data_utils";
const stakeholdersList: Array<Stakeholders> = [];
const stakeholdersNameList: Array<string> = [];

describe(["@tier2", "@rhsso"], "1 Bug: Migrator RBAC operations", () => {
describe(["@tier2", "@rhsso"], "Migrator RBAC operations", () => {
let userMigrator = new UserMigrator(getRandomUserData());
const application = new Application(getRandomApplicationData());

Expand Down

0 comments on commit ea07b13

Please sign in to comment.