diff --git a/irs-api/src/main/resources/application-local.yml b/irs-api/src/main/resources/application-local.yml index edf68dcfce..ecf0b3c1cd 100644 --- a/irs-api/src/main/resources/application-local.yml +++ b/irs-api/src/main/resources/application-local.yml @@ -21,13 +21,15 @@ irs: ttl: failed: PT1H completed: PT1H + security: + api: + keys: + admin: 01234567890123456789 + regular: 09876543210987654321 spring: security: oauth2: - resourceserver: - jwt: - jwk-set-uri: https://localhost client: provider: common: diff --git a/irs-api/src/test/java/org/eclipse/tractusx/irs/ConnectorEndpointServiceTest.java b/irs-api/src/test/java/org/eclipse/tractusx/irs/ConnectorEndpointServiceTest.java index ce1d478bd1..048790dbb6 100644 --- a/irs-api/src/test/java/org/eclipse/tractusx/irs/ConnectorEndpointServiceTest.java +++ b/irs-api/src/test/java/org/eclipse/tractusx/irs/ConnectorEndpointServiceTest.java @@ -38,7 +38,7 @@ @SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT, properties = { "digitalTwinRegistry.type=central" }) -@ActiveProfiles(profiles = "test") +@ActiveProfiles(profiles = { "test", "local" }) @Import(TestConfig.class) @ExtendWith({ MockitoExtension.class, SpringExtension.class diff --git a/irs-api/src/test/java/org/eclipse/tractusx/irs/DiscoveryFinderClientTest.java b/irs-api/src/test/java/org/eclipse/tractusx/irs/DiscoveryFinderClientTest.java index d2a64c674a..245e7c8c23 100644 --- a/irs-api/src/test/java/org/eclipse/tractusx/irs/DiscoveryFinderClientTest.java +++ b/irs-api/src/test/java/org/eclipse/tractusx/irs/DiscoveryFinderClientTest.java @@ -52,7 +52,7 @@ @SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.MOCK, properties = "irs-edc-client.discoveryFinderClient.cacheTTL=PT0.1S") -@ActiveProfiles(profiles = "test") +@ActiveProfiles(profiles = { "test", "local" }) @Import({ TestConfig.class }) class DiscoveryFinderClientTest { diff --git a/irs-api/src/test/java/org/eclipse/tractusx/irs/semanticshub/SemanticHubCacheInitializerTests.java b/irs-api/src/test/java/org/eclipse/tractusx/irs/semanticshub/SemanticHubCacheInitializerTests.java index a340d91474..23c25e2635 100644 --- a/irs-api/src/test/java/org/eclipse/tractusx/irs/semanticshub/SemanticHubCacheInitializerTests.java +++ b/irs-api/src/test/java/org/eclipse/tractusx/irs/semanticshub/SemanticHubCacheInitializerTests.java @@ -39,7 +39,7 @@ @SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT) @Import(TestConfig.class) -@ActiveProfiles(profiles = { "test" }) +@ActiveProfiles(profiles = { "test", "local" }) class SemanticHubCacheInitializerTests { @Autowired diff --git a/irs-api/src/test/java/org/eclipse/tractusx/irs/services/IrsItemGraphQueryServiceSpringBootTest.java b/irs-api/src/test/java/org/eclipse/tractusx/irs/services/IrsItemGraphQueryServiceSpringBootTest.java index c486c57a80..ce4358be40 100644 --- a/irs-api/src/test/java/org/eclipse/tractusx/irs/services/IrsItemGraphQueryServiceSpringBootTest.java +++ b/irs-api/src/test/java/org/eclipse/tractusx/irs/services/IrsItemGraphQueryServiceSpringBootTest.java @@ -80,9 +80,7 @@ @SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT, properties = { "digitalTwinRegistry.type=central" }) -@ActiveProfiles(profiles = { "test", - "stubtest" -}) +@ActiveProfiles(profiles = { "test", "stubtest", "local" }) @Import(TestConfig.class) class IrsItemGraphQueryServiceSpringBootTest {