-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cypress check stalls execution (#993)
* Change Cypress reload function to check the stall execution issue on CI-CD * Updated Kong file for latest kong-plugin-jwt-keycloak plugins * Update response message for invalid credential after updating new keycloak * Split Test Plan into separate spec files * Split cids access approve request scenarios into separate spec file * Update gwa response message
- Loading branch information
Showing
52 changed files
with
454 additions
and
437 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
59 changes: 59 additions & 0 deletions
59
e2e/cypress/tests/02-client-credential-flow/06-client-scope-in-keycloak.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
import HomePage from '../../pageObjects/home' | ||
import LoginPage from '../../pageObjects/login' | ||
import ConsumersPage from '../../pageObjects/consumers' | ||
import KeycloakUserGroupPage from '../../pageObjects/keycloakUserGroup' | ||
import keycloakGroupPage from '../../pageObjects/keycloakGroup' | ||
import AuthorizationProfile from '../../pageObjects/authProfile' | ||
import keycloakClientScopesPage from '../../pageObjects/keycloakClientScopes' | ||
|
||
describe('Verify the selected client scoped is displayed in assigned default list', () => { | ||
const clientScopes = new keycloakClientScopesPage() | ||
const groups = new keycloakGroupPage() | ||
var nameSpace: string | ||
const home = new HomePage() | ||
const authProfile = new AuthorizationProfile() | ||
|
||
before(() => { | ||
cy.visit(Cypress.env('KEYCLOAK_URL')) | ||
cy.reload(true) | ||
}) | ||
|
||
beforeEach(() => { | ||
cy.preserveCookies() | ||
cy.fixture('developer').as('developer') | ||
cy.fixture('apiowner').as('apiowner') | ||
cy.fixture('state/regen').as('regen') | ||
cy.fixture('admin').as('admin') | ||
}) | ||
|
||
it('Authenticates Admin owner', () => { | ||
cy.get('@admin').then(({ user }: any) => { | ||
cy.contains('Administration Console').click({ force: true }) | ||
cy.keycloakLogin(user.credentials.username, user.credentials.password) | ||
}) | ||
}) | ||
|
||
it('Navigate to Clients page', () => { | ||
cy.contains('Clients').click() | ||
}) | ||
|
||
it('Select the consumer ID', () => { | ||
cy.readFile('cypress/fixtures/state/store.json').then((store_res) => { | ||
let cc = JSON.parse(store_res.clientidsecret) | ||
cy.contains(cc.clientId).click() | ||
}) | ||
}) | ||
|
||
it('Navigate to client scope tab', () => { | ||
clientScopes.selectTab('Client Scopes') | ||
}) | ||
|
||
it('Verify that "System.Write" scope is in assigned default scope', () => { | ||
clientScopes.verifyAssignedScope('System.Write', true) | ||
}) | ||
|
||
after(() => { | ||
cy.keycloakLogout() | ||
}) | ||
|
||
}) |
Oops, something went wrong.