Skip to content

Commit

Permalink
Migrate ClientDescriptionConverterTest to the new framework
Browse files Browse the repository at this point in the history
Part of keycloak#34494

Signed-off-by: Miquel Simon <[email protected]>
  • Loading branch information
miquelsi committed Nov 26, 2024
1 parent 43b133c commit 0997f3b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,29 +15,34 @@
* the License.
*/

package org.keycloak.testsuite.admin.client;

import org.keycloak.testsuite.AbstractAuthTest;
package org.keycloak.test.admin.client;

import java.io.IOException;
import java.io.InputStream;
import java.nio.charset.StandardCharsets;

import org.apache.commons.io.IOUtils;
import org.junit.Test;
import org.junit.jupiter.api.Test;
import org.keycloak.test.framework.annotations.InjectRealm;
import org.keycloak.test.framework.annotations.KeycloakIntegrationTest;
import org.keycloak.test.framework.realm.ManagedRealm;

/**
*
* @author hmlnarik
*/
public class ClientDescriptionConverterTest extends AbstractAuthTest {
@KeycloakIntegrationTest
public class ClientDescriptionConverterTest {

@InjectRealm
ManagedRealm realm;

// https://issues.jboss.org/browse/KEYCLOAK-4040
@Test
public void testOrganizationDetailsMetadata() throws IOException {
try (InputStream is = ClientDescriptionConverterTest.class.getResourceAsStream("KEYCLOAK-4040-sharefile-metadata.xml")) {
String data = IOUtils.toString(is, StandardCharsets.UTF_8);
testRealmResource().convertClientDescription(data);
realm.admin().convertClientDescription(data);
}
}
}

0 comments on commit 0997f3b

Please sign in to comment.