diff --git a/app/uk/gov/hmrc/apisubscriptionfields/controller/DocumentationController.scala b/app/uk/gov/hmrc/apisubscriptionfields/controller/DocumentationController.scala index 9cf7f0c..74b9302 100644 --- a/app/uk/gov/hmrc/apisubscriptionfields/controller/DocumentationController.scala +++ b/app/uk/gov/hmrc/apisubscriptionfields/controller/DocumentationController.scala @@ -31,12 +31,12 @@ class DocumentationController @Inject()(httpErrorHandler: HttpErrorHandler, appC def definition = Action { if(appContext.publishApiDefinition) { Ok(txt.definition(appContext.apiContext, APIAccess.build(appContext.access))).withHeaders(CONTENT_TYPE -> JSON) - } else NotFound + } else NoContent } def raml(version: String, file: String) = Action { if(appContext.publishApiDefinition) { Ok(txt.application(appContext.apiContext)) - } else NotFound + } else NoContent } } diff --git a/build.sbt b/build.sbt index d1a30d9..77c9343 100644 --- a/build.sbt +++ b/build.sbt @@ -26,7 +26,7 @@ import uk.gov.hmrc.versioning.SbtGitVersioning import scala.language.postfixOps val compile = Seq( - "uk.gov.hmrc" %% "bootstrap-play-25" % "4.11.0", + "uk.gov.hmrc" %% "bootstrap-play-25" % "4.12.0", "uk.gov.hmrc" %% "simple-reactivemongo" % "7.19.0-play-25" ) @@ -35,8 +35,8 @@ val overrides = Seq( ) def test(scope: String = "test,acceptance") = Seq( - "uk.gov.hmrc" %% "hmrctest" % "3.8.0-play-25" % scope, - "uk.gov.hmrc" %% "reactivemongo-test" % "4.13.0-play-25" % scope, + "uk.gov.hmrc" %% "hmrctest" % "3.9.0-play-25" % scope, + "uk.gov.hmrc" %% "reactivemongo-test" % "4.14.0-play-25" % scope, "org.scalamock" %% "scalamock-scalatest-support" % "3.6.0" % scope, "org.scalatest" %% "scalatest" % "3.0.4" % scope, "org.scalatestplus.play" %% "scalatestplus-play" % "2.0.1" % scope, diff --git a/project/plugins.sbt b/project/plugins.sbt index e9a0ddb..14ba8c5 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -5,7 +5,7 @@ resolvers += "Typesafe Releases" at "http://repo.typesafe.com/typesafe/releases/ addSbtPlugin("uk.gov.hmrc" % "sbt-auto-build" % "1.16.0") addSbtPlugin("uk.gov.hmrc" % "sbt-git-versioning" % "1.19.0") -addSbtPlugin("uk.gov.hmrc" % "sbt-distributables" % "1.5.0") +addSbtPlugin("uk.gov.hmrc" % "sbt-distributables" % "1.6.0") addSbtPlugin("uk.gov.hmrc" % "sbt-artifactory" % "0.19.0") addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.5.19") addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.5.1") diff --git a/test/it/uk/gov/hmrc/apisubscriptionfields/integration/PlatformIntegrationSpec.scala b/test/it/uk/gov/hmrc/apisubscriptionfields/integration/PlatformIntegrationSpec.scala index 6163a75..d3ee3ac 100644 --- a/test/it/uk/gov/hmrc/apisubscriptionfields/integration/PlatformIntegrationSpec.scala +++ b/test/it/uk/gov/hmrc/apisubscriptionfields/integration/PlatformIntegrationSpec.scala @@ -80,12 +80,12 @@ class PublishApiDefinitionDisabledSpec extends PlatformIntegrationSpec { "return a 404 from the definition endpoint" in new Setup { val result = await(documentationController.definition()(request)) - status(result) shouldBe 404 + status(result) shouldBe 204 } "return a 404 from the RAML endpoint" in new Setup { val result = await(documentationController.raml("1.0", "application.raml")(request)) - status(result) shouldBe 404 + status(result) shouldBe 204 } } }