Skip to content

feat: implement integration tests for keycloak token validation#50

Merged
empwilli merged 12 commits intoomnect:mainfrom
empwilli:feat/unit-tests
Jul 28, 2025
Merged

feat: implement integration tests for keycloak token validation#50
empwilli merged 12 commits intoomnect:mainfrom
empwilli:feat/unit-tests

Conversation

@empwilli
Copy link
Contributor

No description provided.

ronny-standtke and others added 6 commits June 17, 2025 14:13
The API had a hard dependency on the ODS and Keycloak. We tried to loosen these
bounds by introducing dyn types, so that these dependencies could be tested more
easily. However, there is no need to introduce this degree of flexibility.
Instead, "normal" traits are sufficient (as the type of ODS provider/SSO
provider won't change during the lifetime of the omnect-ui). This simplifies the
code and avoids some of the cruft necessary to get mockall to work with the dyn
traits. Additionally, this extracts the ODS and SSO provider creation, so that
the creation of the API follows more closely dependency injection principles,
thus simplifying testing even further.
@empwilli empwilli requested review from JanZachmann and ronny-standtke and removed request for JanZachmann July 16, 2025 09:29
@empwilli empwilli changed the title test: add unit tests for token validation feat: implement integration tests for keycloak token validation Jul 16, 2025
@empwilli empwilli requested a review from JanZachmann July 21, 2025 14:37
@empwilli
Copy link
Contributor Author

I've disabled unused code/imports warnings for mock builds in certificates.rs and omnect_device_service_client.rs. Please recheck.

@empwilli empwilli requested a review from JanZachmann July 22, 2025 08:14
@empwilli empwilli merged commit cee467e into omnect:main Jul 28, 2025
2 checks passed
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.

3 participants