Skip to content
This repository was archived by the owner on Nov 23, 2026. It is now read-only.

[tests-only] [full-ci] Restructure e2e tests data storage for keycloak - #10895

Merged
nabim777 merged 13 commits into
masterfrom
keyclock-e2e-storage
Jun 19, 2024
Merged

nabim777 merged 13 commits into
masterfrom
keyclock-e2e-storage

Conversation

@nabim777

@nabim777 nabim777 commented May 13, 2024 •

Copy link
Copy Markdown
Member

Description

There is a requirement of ocis user attributes like UUID whenever the user has some activity using API. So currently, in order to get the UUID, there is everytime login through UI and get the UUID. To prevent this long process time consuming of getting the user's UUID, the UUID is stored.
The user attributes of keycloak is now map and stored in new variable keycloakCreatedUser

While doing this PR, it was found that the access token used was invalid so deletion of any users from Web-Ocis is not happened after clean up. The access token becomes invalid due to Keyclock's backchannel logout feature, which makes the token invalid when the user logs out. So, the next PR will cover that.
More describe in here: link

Related Issue

Motivation and Context

How Has This Been Tested?

test environment:

  • CI
  • locally

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests
  • Documentation
  • Maintenance (e.g. dependency updates or tooling)

Open tasks:

  • ...

@nabim777
nabim777 force-pushed the keyclock-e2e-storage branch from 54cf220 to 9a4cfdc Compare June 4, 2024 11:25
@nabim777 nabim777 self-assigned this Jun 4, 2024
@nabim777
nabim777 force-pushed the keyclock-e2e-storage branch from 9a4cfdc to 5f03a5b Compare June 10, 2024 12:44
@nabim777 nabim777 changed the title [tests-only] Refactor on access of token for keyclock [tests-only] [WIP] Restructure data storage for keycloak Jun 11, 2024
@nabim777 nabim777 changed the title [tests-only] [WIP] Restructure data storage for keycloak [tests-only] [WIP] Restructure e2e tests data storage for keycloak Jun 11, 2024
@nabim777
nabim777 force-pushed the keyclock-e2e-storage branch 9 times, most recently from 7c50581 to e4fba60 Compare June 13, 2024 08:37
@nabim777
nabim777 marked this pull request as ready for review June 13, 2024 08:43
@nabim777
nabim777 marked this pull request as draft June 13, 2024 08:44
@nabim777
nabim777 requested a review from amrita-shrestha June 13, 2024 09:35
@nabim777
nabim777 marked this pull request as ready for review June 13, 2024 09:35
@nabim777
nabim777 requested a review from saw-jan June 13, 2024 09:37
@nabim777 nabim777 changed the title [tests-only] [WIP] Restructure e2e tests data storage for keycloak [tests-only] [full-ci] Restructure e2e tests data storage for keycloak Jun 13, 2024
@nabim777
nabim777 requested a review from PrajwolAmatya June 13, 2024 09:40
@nabim777

nabim777 commented Jun 13, 2024 •

Copy link
Copy Markdown
Member Author

While doing this PR, it was found that the access token used was invalid so deletion of any users from Web-Ocis is not happened after clean up. The access token becomes invalid due to Keyclock's backchannel logout feature, which makes the token invalid when the user logs out. So, the next PR will cover that.
More describe in here: link

@nabim777
nabim777 force-pushed the keyclock-e2e-storage branch from 0009e97 to 196841d Compare June 13, 2024 09:56
@nabim777
nabim777 requested review from a user, S-Panta, SagarGi, Salipa-Gurung and grgprarup June 13, 2024 09:58
Comment thread tests/e2e/support/api/keycloak/user.ts Resolved
@nabim777
nabim777 force-pushed the keyclock-e2e-storage branch from f1098c2 to de57e0b Compare June 18, 2024 04:03
@nabim777
nabim777 force-pushed the keyclock-e2e-storage branch from 1216781 to 34e272e Compare June 19, 2024 06:31
@nabim777
nabim777 requested a review from saw-jan June 19, 2024 06:40

@saw-jan saw-jan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM 👍

Comment thread tests/e2e/support/api/keycloak/user.ts Resolved
@nabim777
nabim777 force-pushed the keyclock-e2e-storage branch from 34e272e to 9d8dc08 Compare June 19, 2024 08:59
@nabim777
nabim777 requested a review from PrajwolAmatya June 19, 2024 09:01
@nabim777
nabim777 force-pushed the keyclock-e2e-storage branch from 9d8dc08 to 6d6c84e Compare June 19, 2024 09:24
@sonarqubecloud

Copy link
Copy Markdown

@nabim777
nabim777 merged commit 71f04b1 into master Jun 19, 2024
@nabim777
nabim777 deleted the keyclock-e2e-storage branch June 19, 2024 09:56
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants