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

e2e with keycloak - #9518

Merged
v-scharf merged 13 commits into
masterfrom
apiKeycloak
Sep 8, 2023
Merged

v-scharf merged 13 commits into
masterfrom
apiKeycloak

Conversation

@v-scharf

@v-scharf v-scharf commented Aug 1, 2023 •

Copy link
Copy Markdown
Contributor

First reason for creating PR: during the release process we run e2e tests on different instances, except only keycloak.
second reason: the idea of running e2e on a k8s cluster, where we have an instance as similar to production as possible, where we track metrics and where k6 tests are already running

initial test conditions:

  • test users (Alice, Brian ...) already created in keycloak
  • test groups (sales, security ...) already created in keycloak
  • users are initialised (first login is done)

admin management is doing via keycloak admin console https://keycloak.owncloud.test/admin/ manually before running e2e tests (k6 test doesn't create users before test too)

what e2e test should have (using keycloak admin console api):

  • add users to group
  • delete users from group
  • change user role

To perform these steps in the same way as when storing the token in web, admin user must:

These things are Implemented

  • user creation via test
  • initialize new user
  • separate auth tokens (ocis and keycloak) for a user
  • refresh token (have to think of better way to refresh in certain interval)
  • user cleanup

@update-docs

update-docs Bot commented Aug 1, 2023

Copy link
Copy Markdown

Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes.

@saw-jan saw-jan removed their assignment Aug 14, 2023
@saw-jan saw-jan self-assigned this Aug 22, 2023
@saw-jan
saw-jan force-pushed the apiKeycloak branch 5 times, most recently from 726511a to 157e74c Compare August 28, 2023 03:49
@v-scharf
v-scharf marked this pull request as ready for review September 8, 2023 08:55
@sonarqubecloud

sonarqubecloud Bot commented Sep 8, 2023

Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@v-scharf
v-scharf merged commit db24959 into master Sep 8, 2023
@delete-merged-branch
delete-merged-branch Bot deleted the apiKeycloak branch September 8, 2023 10:06
ownclouders pushed a commit that referenced this pull request Sep 8, 2023
* e2e with keycloak

* use same token store for keycloak

* fix configs

* fix auth header

* user creation and deletion in keycloak

* revert feature file changes

* initialize keycloak user upon creation

* fix user initialization

* fix user initialization

* refresh token before request

* refresh token before cleanup steps

* make keycloak real, admin creds configurable

* make comments

---------

Co-authored-by: Saw-jan <[email protected]>
AlexAndBear pushed a commit that referenced this pull request Dec 13, 2023
* e2e with keycloak

* use same token store for keycloak

* fix configs

* fix auth header

* user creation and deletion in keycloak

* revert feature file changes

* initialize keycloak user upon creation

* fix user initialization

* fix user initialization

* refresh token before request

* refresh token before cleanup steps

* make keycloak real, admin creds configurable

* make comments

---------

Co-authored-by: Saw-jan <[email protected]>
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.

2 participants