Closed xgp closed 6 months ago
We should have the following admin events:
adminEvent.operation(OperationType.CREATE).resourcePath(session.getContext().getUri(), child.getId());
adminEvent.operation(OperationType.CREATE).resourcePath(session.getContext().getUri(), user.getId()).representation(rep).success();
There seem to be some problems with our resourcePath
method usage that are causing a duplication of resource id in the path. Also need to bring inline with expectations from Keycloak event types (e.g. no representation when it's a DELETE). Need to review and add unit tests.
Possible to load a test EventListener
implementation into a Realm you create in the integration test.
EventListener
to see if the expected event and content were emitted.If you make the test EventListener
in the src/test/java
, you will need to add target/test-classes
to testcontainers to load the extension, in order to make it available to be activated by the Realm. https://github.com/p2-inc/keycloak-orgs/blob/main/src/test/java/io/phasetwo/service/AbstractOrganizationTest.java#L81
Completed in https://github.com/p2-inc/keycloak-orgs/pull/181 🥇 @rtufisi
Events are not consistently emitted for org methods. This is a placeholder for: