From 0a9182ef44bbdef381a6b8d887de526d72b908de Mon Sep 17 00:00:00 2001 From: jarlehansen Date: Thu, 25 Oct 2018 20:42:14 +0200 Subject: [PATCH] updated --- README.md | 9 ++++++++- .../no/fint/provider/events/testmode/TestModeSpec.groovy | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b9c43c2..c1231d4 100644 --- a/README.md +++ b/README.md @@ -21,4 +21,11 @@ To log the event payload add the configuration to `application.properties` or as ``` logging.level.no.fint.provider.events.status.StatusController: DEBUG logging.level.no.fint.provider.events.response.ResponseController: DEBUG -``` \ No newline at end of file +``` + +## Integration test + +To enable integration test set the following system property: +``` +integration-test=true +``` diff --git a/src/test/groovy/no/fint/provider/events/testmode/TestModeSpec.groovy b/src/test/groovy/no/fint/provider/events/testmode/TestModeSpec.groovy index 479433e..7d30c6d 100644 --- a/src/test/groovy/no/fint/provider/events/testmode/TestModeSpec.groovy +++ b/src/test/groovy/no/fint/provider/events/testmode/TestModeSpec.groovy @@ -14,7 +14,7 @@ import java.util.concurrent.TimeUnit @SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.DEFINED_PORT, classes = Application) @ActiveProfiles('local') -@Requires({ env.INTEGRATION }) +@Requires({ Boolean.valueOf(sys['integration-test']) }) class TestModeSpec extends Specification { @LocalServerPort