Skip to content

Commit

Permalink
fixup! Adding a details map to admin events to store additional conte…
Browse files Browse the repository at this point in the history
…xtual data when the event is fired
  • Loading branch information
pedroigor committed Nov 4, 2024
1 parent bacee10 commit c7ac1e9
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,12 +124,12 @@ public void testEventDetails() {
RealmRepresentation realmRep = testRealmResource().toRepresentation();
realmRep.setOrganizationsEnabled(true);
testRealmResource().update(realmRep);
OrganizationRepresentation organization = new OrganizationRepresentation();
organization.setName("test-org");
organization.setAlias(organization.getName());
organization.addDomain(new OrganizationDomainRepresentation(organization.getName()));
testRealmResource().organizations().create(organization).close();
OrganizationRepresentation orgRep = testRealmResource().organizations().getAll().get(0);
OrganizationRepresentation orgRep = new OrganizationRepresentation();
orgRep.setName("test-org");
orgRep.setAlias(orgRep.getName());
orgRep.addDomain(new OrganizationDomainRepresentation(orgRep.getName()));
testRealmResource().organizations().create(orgRep).close();
orgRep = testRealmResource().organizations().getAll().get(0);
testRealmResource().organizations().get(orgRep.getId()).members().addMember(userId).close();
List<AdminEventRepresentation> events = events();
assertThat(events().size(), is(equalTo(4)));
Expand Down

0 comments on commit c7ac1e9

Please sign in to comment.