Fix test IdentityProviderTest#testSamlImportWithAnyEncryptionMethod

Closes #28577
Closes #28576
Closes #28575

Signed-off-by: rmartinc <rmartinc@redhat.com>
This commit is contained in:
rmartinc 2024-04-11 14:55:48 +02:00 committed by Marek Posolda
parent eb77220cca
commit d31f128ca2

View file

@ -451,14 +451,13 @@ public class IdentityProviderTest extends AbstractAdminTest {
.updateWith(r -> r.setSslRequired(SslRequired.ALL.name()))
.update()
) {
assertAdminEvents.poll(); // realm update
IdentityProviderRepresentation representation = createRep(UUID.randomUUID().toString(), "oidc");
representation.getConfig().put("clientId", "clientId");
representation.getConfig().put("clientSecret", "some secret value");
try (Response response = realm.identityProviders().create(representation)) {
assertEquals(Response.Status.CREATED.getStatusCode(), response.getStatus());
}
create(representation);
IdentityProviderResource resource = this.realm.identityProviders().get(representation.getAlias());
representation = resource.toRepresentation();