Closed xgp closed 7 months ago
This somewhat complicated by the fact that OrganizationProviderTest
needs a KeycloakSession
directly. I don't have a great idea of how to maintain those tests without KeycloakServer
.
KeycloakServer
.OrganizationResourceTest
.I can help to write tests using Testcontainers
Thanks @ngaxavi
I’ve got a branch with a start on this that I’ll push tonight.
@ngaxavi Branch https://github.com/p2-inc/keycloak-orgs/tree/xgp/testcontainers
@xgp can you give access to this branch https://github.com/p2-inc/keycloak-orgs/tree/xgp/testcontainers so that I push my changes.
@ngaxavi Just fork off that branch and open a new PR.
Fixed by #130
The
KeycloakServer
in testsuite doesn't get released, and makes it hard for other people to run these tests. It's also clear that it has diverged from running a "real" Keycloak server, so we are potentially missing some things in our tests.We should port to use dasniko's keycloak
testcontainers
. We did the port inkeycloak-themes
already, so we should be able to use it as a model https://github.com/p2-inc/keycloak-themes/pull/12