-
Notifications
You must be signed in to change notification settings - Fork 157
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
[tests-only][full-ci]Setup keycloak group e2e tests #11887
base: master
Are you sure you want to change the base?
Conversation
bf2374c
to
df439d0
Compare
6b00a5d
to
5cdf814
Compare
Quality Gate passedIssues Measures |
@@ -160,3 +160,13 @@ export const assignRole = async (admin: User, id: string, role: string): Promise | |||
}) | |||
checkResponseStatus(response, 'Failed while assigning role to the user') | |||
} | |||
|
|||
export const getGroup = async ({ admin }: { admin: User }) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
export const getGroup = async ({ admin }: { admin: User }) => { | |
export const getGroups = async (admin: User) => { |
return ( | ||
await request({ | ||
method: 'GET', | ||
path: join('graph', 'v1.0', 'groups'), | ||
user: admin | ||
}) | ||
).json() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return array of groups. not a full response
/* | ||
store group created from keycloak on store | ||
*/ | ||
const storeGroup = async (user: User, usersEnvironment) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const storeGroup = async (user: User, usersEnvironment) => { | |
const storeKeycloakGroups = async (user: User, usersEnvironment) => { |
federatedUserStore | ||
} from '../store' | ||
import { config } from '../../config' | ||
import { dummyKeycloakGroupStore } from '../store/keycloak' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not?
federatedUserStore | |
} from '../store' | |
import { config } from '../../config' | |
import { dummyKeycloakGroupStore } from '../store/keycloak' | |
federatedUserStore, | |
dummyKeycloakGroupStore | |
} from '../store' | |
import { config } from '../../config' |
@@ -41,6 +41,8 @@ import { | |||
} from '../../support/api/keycloak' | |||
import { closeSSEConnections } from '../../support/environment/sse' | |||
import { setAccessAndRefreshToken } from '../../support/api/token' | |||
import { dummyKeycloakGroupStore } from '../../support/store/keycloak' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it can be imported in the above import statement
import { dummyKeycloakGroupStore } from '../../support/store/keycloak' |
When "Admin" deletes the following groups using the batch actions | ||
| group | | ||
| security | | ||
| finance | | ||
Then "Admin" should not see the following groups | ||
| group | | ||
| security | | ||
| finance | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do we need these ocis group steps? one should be enough if you insist
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to test keycloak integration doesn't affect oCIS side group
Description
This PR covers :
Note
Related Issue
Motivation and Context
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Open tasks: