Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RHIDP-826 RBAC testing for scaffolding
Browse files Browse the repository at this point in the history
Signed-off-by: Gustavo Lira <[email protected]>
gustavolira committed Jan 20, 2025
1 parent d78cc20 commit da6f76f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion e2e-tests/playwright/e2e/plugins/rbac/rbac.spec.ts
Original file line number Diff line number Diff line change
@@ -14,10 +14,11 @@ import { RhdhAuthApiHack } from "../../../support/api/rhdh-auth-api-hack";
import RhdhRbacApi from "../../../support/api/rbac-api";
import { RbacConstants } from "../../../data/rbac-constants";
import { Policy } from "../../../support/api/rbac-api-structures";
import {CatalogImport} from "../../../support/pages/catalog-import";

/*
Note that:
The policies generated from a policy.csv or ConfigMap file cannot be edited or deleted using the Developer Hub Web UI.
The policies generated from a policy.csv or ConfigMap file cannot be edited or deleted using the Developer Hub Web UI.
https://docs.redhat.com/en/documentation/red_hat_developer_hub/1.3/html/authorization/managing-authorizations-by-using-the-web-ui#proc-rbac-ui-edit-role_title-authorization
*/
test.describe.serial("Test RBAC", () => {
@@ -454,6 +455,11 @@ test.describe.serial("Test RBAC", () => {
test("Test catalog-entity create is allowed", async () => {
await uiHelper.openSidebar("Create...");
expect(await uiHelper.isLinkVisible("Register Existing Component"));
const catalogImport = new CatalogImport(page);
await catalogImport.registerExistingComponent(
'https://github.com/RoadieHQ/sample-service/blob/main/demo_template.yaml',
true,
);
});

test("Test bad PUT and PUT catalog-entity update policy", async () => {

0 comments on commit da6f76f

Please sign in to comment.