Skip to content

Fapi advanced#927

Open
mastastny wants to merge 6 commits into
3scale-qe:mainfrom
mastastny:fapi_advanced
Open

Fapi advanced#927
mastastny wants to merge 6 commits into
3scale-qe:mainfrom
mastastny:fapi_advanced

Conversation

@mastastny

Copy link
Copy Markdown
Collaborator

No description provided.

Comment thread testsuite/rhsso/__init__.py Outdated
@mastastny
mastastny marked this pull request as ready for review June 5, 2025 12:50

@mdujava mdujava 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.

Few comments from development needs to be removed.
Also typing 2 functions relates to bumping the keycloak library that can be done in separate PR #936, so that commit can be left out from this PR

Comment thread testsuite/rhsso/objects.py Outdated
Comment thread testsuite/rhsso/__init__.py Outdated
Comment thread testsuite/rhsso/objects.py Outdated
@mastastny
mastastny marked this pull request as draft June 18, 2025 12:42
mdujava
mdujava previously approved these changes Jun 19, 2025
@mastastny
mastastny marked this pull request as ready for review June 26, 2025 08:48
Comment thread testsuite/tests/conftest.py Outdated
@dhlavac dhlavac added this to the v2.16 milestone Aug 5, 2025
@dhlavac

dhlavac commented Mar 2, 2026

Copy link
Copy Markdown
Member

@mastastny any update there ?

cathal-bailey
cathal-bailey previously approved these changes Apr 15, 2026
@mastastny

Copy link
Copy Markdown
Collaborator Author

@mastastny any update there ?

@dhlavac waiting for review

cathal-bailey
cathal-bailey previously approved these changes May 13, 2026
Add update_client() to Realm to merge config into an existing Keycloak client (Zync already creates it via OIDC sync, so create_client() would 409). Fix fapi_sso_client to depend on application to avoid a race with Zync, and use blame() for fapi_sso_client_id to prevent ID collisions between runs.
Replace custom FapiClient with FapiMtlsAuth — a standard request auth object that retrieves a certificate-bound token per request. Use application.api_client(cert=...) for mTLS calls, consistent with the rest of the testsuite. Add fapi_client_invalid fixture to encapsulate the negative test case.
@mdujava mdujava added the to_backport Commits to be backported to stable branches label Jul 21, 2026
Comment on lines +10 to +11
def _fallback(value, default):
return default if value is None else value

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.

not sure if it should be in utils, and not here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

to_backport Commits to be backported to stable branches

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants