Compare commits
3 commits
6ef6d7adeb
...
c9f36f7100
| Author | SHA1 | Date | |
|---|---|---|---|
| c9f36f7100 | |||
| 218ee1dd57 | |||
| f204ab7f28 |
3 changed files with 22 additions and 25 deletions
|
|
@ -5,8 +5,8 @@ on:
|
||||||
- main
|
- main
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
ansible-lint:
|
||||||
name: Test
|
name: Verify
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v7
|
- uses: actions/checkout@v7
|
||||||
|
|
@ -14,6 +14,6 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
apt update
|
apt update
|
||||||
apt install -y maven
|
apt install -y maven
|
||||||
- name: Run maven verify test
|
- name: Run maven verify
|
||||||
run: |
|
run: |
|
||||||
mvn -f attribute-endpoints-provider --batch-mode --no-transfer-progress verify test
|
mvn -f attribute-endpoints-provider --batch-mode --no-transfer-progress verify
|
||||||
|
|
@ -1,13 +1,12 @@
|
||||||
package de.ccc.hamburg.keycloak.attribute_endpoints;
|
package de.ccc.hamburg.keycloak.attribute_endpoints;
|
||||||
|
|
||||||
|
import com.google.auto.service.AutoService;
|
||||||
import org.keycloak.Config;
|
import org.keycloak.Config;
|
||||||
import org.keycloak.models.KeycloakSession;
|
import org.keycloak.models.KeycloakSession;
|
||||||
import org.keycloak.models.KeycloakSessionFactory;
|
import org.keycloak.models.KeycloakSessionFactory;
|
||||||
import org.keycloak.services.resource.RealmResourceProvider;
|
import org.keycloak.services.resource.RealmResourceProvider;
|
||||||
import org.keycloak.services.resource.RealmResourceProviderFactory;
|
import org.keycloak.services.resource.RealmResourceProviderFactory;
|
||||||
|
|
||||||
import com.google.auto.service.AutoService;
|
|
||||||
|
|
||||||
@AutoService(RealmResourceProviderFactory.class)
|
@AutoService(RealmResourceProviderFactory.class)
|
||||||
public class AttributeEndpointsResourceProviderFactory implements RealmResourceProviderFactory {
|
public class AttributeEndpointsResourceProviderFactory implements RealmResourceProviderFactory {
|
||||||
static final String PROVIDER_ID = "attribute-endpoints-provider";
|
static final String PROVIDER_ID = "attribute-endpoints-provider";
|
||||||
|
|
|
||||||
|
|
@ -24,9 +24,7 @@ import java.util.Map;
|
||||||
import java.util.function.Supplier;
|
import java.util.function.Supplier;
|
||||||
import java.util.stream.Stream;
|
import java.util.stream.Stream;
|
||||||
|
|
||||||
import static org.junit.Assert.assertEquals;
|
import static org.junit.Assert.*;
|
||||||
import static org.junit.Assert.assertThrows;
|
|
||||||
import static org.junit.Assert.assertTrue;
|
|
||||||
import static org.mockito.ArgumentMatchers.*;
|
import static org.mockito.ArgumentMatchers.*;
|
||||||
import static org.mockito.Mockito.mock;
|
import static org.mockito.Mockito.mock;
|
||||||
import static org.mockito.Mockito.when;
|
import static org.mockito.Mockito.when;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue