Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/shared idp cypress #673

Merged
merged 57 commits into from
Jan 3, 2023
Merged

Feature/shared idp cypress #673

merged 57 commits into from
Jan 3, 2023

Conversation

nirajCITZ
Copy link
Contributor

Added Cypress Test for Shared IDP, product config and login-refresh

ikethecoder and others added 23 commits December 5, 2022 13:49
Pull in latest dev changes to shared-idp
…to feature/shared-idp-cypress

# Conflicts:
#	local/db/keystone-init.sql
…hared-idp-cypress

# Conflicts:
#	.github/workflows/ci-build-deploy.yaml
#	src/lists/CredentialIssuer.js
#	src/lists/extensions/Namespace.ts
#	src/nextapp/components/auth-action/auth-action.tsx
#	src/nextapp/components/authorization-profile-form/client-management.tsx
#	src/nextapp/components/authorization-profile-form/shared-idp.tsx
#	src/nextapp/components/login-buttons/login-buttons.tsx

verifyAuthorizationProfileIssuerURL(issuerURL:string)
{
debugger
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stray debugger

@@ -70,12 +75,13 @@ class Products {
}

editProductEnvironment(productName: string, envName: string) {
debugger
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stray debugger

config: string | undefined

getTestIdEnvName(env: string): string {
debugger
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stray debugger

@@ -88,6 +94,7 @@ class Products {
authType === 'Oauth2 Authorization Code Flow' ||
authType === 'Oauth2 Client Credentials Flow'
) {
debugger
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stray debugger

.as('checkbox')
.invoke('is', ':checked')
.then(checked => {
debugger
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stray debugger

@@ -391,6 +399,27 @@ Cypress.Commands.add('compareJSONObjects', (actualResponse: any, expectedRespons
}
})

Cypress.Commands.add('updatePluginFile',(filename: string, serviceName: string, pluginFileName: string) => {
debugger
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stray debugger

cy.log('< Saving State')
cy.log(key, value)
let newState
const keyValue = key.toLowerCase()
debugger
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stray debugger

prod.environment.config.authIssuer = authProfile.name
prod.environment.config.authIssuerEnv = authProfile.environmentConfig.environment
pd.editProductEnvironmentConfig(prod.environment.config)
debugger
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stray debugger

cy.get('@apiowner').then(({ namespace }: any) => {
cy.publishApi('service-plugin.yml', nameSpace).then(() => {
cy.get('@publishAPIResponse').then((res: any) => {
debugger
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stray debugger

cy.contains('Client ID').should('be.visible')
cy.contains('Client Secret').should('be.visible')
cy.contains('Token Endpoint').should('be.visible')
debugger
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Debuggers

@nirajCITZ nirajCITZ merged commit 8ea362b into dev Jan 3, 2023
ikethecoder added a commit that referenced this pull request Jan 3, 2023
Feature/shared idp cypress (#673)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants