From 5a944a37ed07c82170b7ba113fc850335d54e21f Mon Sep 17 00:00:00 2001 From: Matt Clark <36630558+mattclark-zerogravit@users.noreply.github.com> Date: Fri, 20 Sep 2024 13:29:44 +0100 Subject: [PATCH] APIS-7292: fixed blocked not being mapped in response (#520) --- .../repository/ApplicationRepository.scala | 1 + .../repository/ApplicationRepositorySearchISpec.scala | 2 ++ 2 files changed, 3 insertions(+) diff --git a/app/uk/gov/hmrc/thirdpartyapplication/repository/ApplicationRepository.scala b/app/uk/gov/hmrc/thirdpartyapplication/repository/ApplicationRepository.scala index 1eee0dcca..c7f6431d8 100644 --- a/app/uk/gov/hmrc/thirdpartyapplication/repository/ApplicationRepository.scala +++ b/app/uk/gov/hmrc/thirdpartyapplication/repository/ApplicationRepository.scala @@ -702,6 +702,7 @@ class ApplicationRepository @Inject() (mongo: MongoComponent, val metrics: Metri "refreshTokensAvailableFor", "rateLimitTier", "environment", + "blocked", "allowAutoDelete" ) )) diff --git a/it/test/uk/gov/hmrc/thirdpartyapplication/repository/ApplicationRepositorySearchISpec.scala b/it/test/uk/gov/hmrc/thirdpartyapplication/repository/ApplicationRepositorySearchISpec.scala index 6a3756a81..efa561625 100644 --- a/it/test/uk/gov/hmrc/thirdpartyapplication/repository/ApplicationRepositorySearchISpec.scala +++ b/it/test/uk/gov/hmrc/thirdpartyapplication/repository/ApplicationRepositorySearchISpec.scala @@ -273,6 +273,7 @@ class ApplicationRepositorySearchISpec result.matching.head.total mustBe 1 result.applications.size mustBe 1 result.applications.head.id mustBe ropcApplication.id + result.applications.head.blocked mustBe false } "return applications based on blocked filter" in { @@ -298,6 +299,7 @@ class ApplicationRepositorySearchISpec result.matching.head.total mustBe 1 result.applications.size mustBe 1 result.applications.head.id mustBe blockedApplication.id + result.applications.head.blocked mustBe true } "return applications with no API subscriptions" in {