io.apicurio.registry.utils.tests.AuthTestProfile Maven / Gradle / Ivy
package io.apicurio.registry.utils.tests;
import io.quarkus.test.junit.QuarkusTestProfile;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class AuthTestProfile implements QuarkusTestProfile {
@Override
public Map getConfigOverrides() {
Map props = new HashMap<>();
props.put("apicurio.rest.deletion.group.enabled", "true");
props.put("apicurio.rest.deletion.artifact.enabled", "true");
props.put("apicurio.rest.deletion.artifact-version.enabled", "true");
props.put("smallrye.jwt.sign.key.location", "privateKey.jwk");
return props;
}
@Override
public List testResources() {
if (!Boolean.parseBoolean(System.getProperty("cluster.tests"))) {
return List.of(new TestResourceEntry(JWKSMockServer.class));
} else {
return Collections.emptyList();
}
}
}