diff --git a/docs/docker-compose.yml b/docs/docker-compose.yml index 3c10890fa..52f9d00e6 100644 --- a/docs/docker-compose.yml +++ b/docs/docker-compose.yml @@ -4,4 +4,13 @@ services: ports: - 4000:4000 volumes: - - .:/site \ No newline at end of file + - .:/site + + postgres: + image: postgres:14-alpine + ports: + - 5432:5432 + environment: + - POSTGRES_PASSWORD=admin + - POSTGRES_USER=admin + - POSTGRES_DB=db \ No newline at end of file diff --git a/ldi-core/request-executor/src/test/java/be/vlaanderen/informatievlaanderen/ldes/ldi/requestexecutor/RequestExecutorIT.java b/ldi-core/request-executor/src/test/java/be/vlaanderen/informatievlaanderen/ldes/ldi/requestexecutor/RequestExecutorIntegrationTest.java similarity index 52% rename from ldi-core/request-executor/src/test/java/be/vlaanderen/informatievlaanderen/ldes/ldi/requestexecutor/RequestExecutorIT.java rename to ldi-core/request-executor/src/test/java/be/vlaanderen/informatievlaanderen/ldes/ldi/requestexecutor/RequestExecutorIntegrationTest.java index 3c3f95a1c..58cc644ad 100644 --- a/ldi-core/request-executor/src/test/java/be/vlaanderen/informatievlaanderen/ldes/ldi/requestexecutor/RequestExecutorIT.java +++ b/ldi-core/request-executor/src/test/java/be/vlaanderen/informatievlaanderen/ldes/ldi/requestexecutor/RequestExecutorIntegrationTest.java @@ -1,13 +1,12 @@ package be.vlaanderen.informatievlaanderen.ldes.ldi.requestexecutor; -import org.junit.platform.suite.api.ConfigurationParameter; import org.junit.platform.suite.api.IncludeEngines; import org.junit.platform.suite.api.SelectClasspathResource; import org.junit.platform.suite.api.Suite; @Suite +@SuppressWarnings("java:S2187") @IncludeEngines("cucumber") @SelectClasspathResource("features") -@ConfigurationParameter(key = "be.vlaanderen.informatievlaanderen.ldes.ldi.requestexecutor.executor", value = "be.vlaanderen.informatievlaanderen.ldes.ldi.requestexecutor.executor") -public class RequestExecutorIT { +public class RequestExecutorIntegrationTest { } diff --git a/ldi-core/request-executor/src/test/resources/cucumber.properties b/ldi-core/request-executor/src/test/resources/cucumber.properties deleted file mode 100644 index e69de29bb..000000000 diff --git a/ldi-core/request-executor/src/test/resources/mappings/200-post-token.json b/ldi-core/request-executor/src/test/resources/mappings/200-post-token.json index 6f4b4c3e2..36822f6fb 100644 --- a/ldi-core/request-executor/src/test/resources/mappings/200-post-token.json +++ b/ldi-core/request-executor/src/test/resources/mappings/200-post-token.json @@ -2,11 +2,11 @@ "request": { "method": "POST", "url": "/token", - "headers": { - "Authorization": { - "contains": "Basic Y2xpZW50SWQ6Y2xpZW50U2VjcmV0" + "bodyPatterns": [ + { + "contains": "client_id=clientId&client_secret=clientSecret&scope=default&grant_type=client_credentials" } - } + ] }, "response": { "status": 200,