Skip to content

Commit cebec71

Browse files
ASPR-1896 - removed listings for UK Internal Market Scheme Checker (#513)
* removed listings for UK Internal Market Scheme Checker * fixed test count
1 parent cecfdea commit cebec71

File tree

4 files changed

+4
-22
lines changed

4 files changed

+4
-22
lines changed

resources/categories.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,5 @@
7979
"Excise Movement Control System testing guide": ["CUSTOMS"],
8080
"Excise Movement Control System technical interface specification": ["CUSTOMS"],
8181
"Post and Parcels Service Guide": ["CUSTOMS"],
82-
"Trader Goods Profile Service Guide": ["CUSTOMS"],
83-
"UK Internal Market Scheme Authorisation Checker Service Guide": ["CUSTOMS"],
84-
"UK Internal Market Scheme Authorisation Checker Roadmap": ["CUSTOMS"]
82+
"Trader Goods Profile Service Guide": ["CUSTOMS"]
8583
}

resources/roadmap.json

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,5 @@
2525
"categories": [
2626
"INCOME_TAX_MTD"
2727
]
28-
},
29-
{
30-
"identifier": "uk-internal-market-authorisation-checker-roadmap",
31-
"name": "UK Internal Market Scheme Authorisation Checker Roadmap",
32-
"description": "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,",
33-
"context": "/roadmaps/ukim-auth-checker-api-roadmap/",
34-
"categories": [
35-
"CUSTOMS"
36-
]
3728
}
3829
]

resources/service_guides.json

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -154,12 +154,5 @@
154154
"description": "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,",
155155
"context": "/guides/trader-goods-profile-service-guide",
156156
"categories": ["CUSTOMS"]
157-
},
158-
{
159-
"identifier": "ukim-auth-checker-api-service-guide",
160-
"name": "UK Internal Market Scheme Authorisation Checker Service Guide",
161-
"description": "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,",
162-
"context": "/guides/ukim-auth-checker-api-service-guide",
163-
"categories": ["CUSTOMS"]
164157
}
165158
]

test/uk/gov/hmrc/apidocumentation/v2/controller/FilteredDocumentationIndexControllerSpec.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@ class FilteredDocumentationIndexControllerSpec extends CommonControllerBaseSpec
9595
fetchAllXmlApisReturnsVatApi()
9696

9797
val result = underTest.apiListIndexPage(List(DocumentationTypeFilter.ROADMAPANDSERVICEGUIDE), List.empty)(request)
98-
// There are currently 23 Service Guides and 4 roadmaps so should be 27 results
99-
verifyPageRendered(pageTitle("API Documentation"), sideNavLinkRendered = false, breadcrumbs = List(apiDocsV2Breadcrumb), bodyContains = Seq("27 results "))(result)
98+
// There are currently 22 Service Guides and 3 roadmaps so should be 25 results
99+
verifyPageRendered(pageTitle("API Documentation"), sideNavLinkRendered = false, breadcrumbs = List(apiDocsV2Breadcrumb), bodyContains = Seq("25 results "))(result)
100100
}
101101

102102
"render the filtered API list when doc type filter is road map and service guides and customs category filter" in new Setup {
@@ -105,7 +105,7 @@ class FilteredDocumentationIndexControllerSpec extends CommonControllerBaseSpec
105105
fetchAllXmlApisReturnsVatApi()
106106

107107
val result = underTest.apiListIndexPage(List(DocumentationTypeFilter.ROADMAPANDSERVICEGUIDE), List(ApiCategory.INCOME_TAX_MTD))(request)
108-
// There are currently 23 Service Guides and 4 roadmaps but only 1 roadmap and 1 service guide are in teh INCOME_TAX_MTD category
108+
// There are currently 22 Service Guides and 3 roadmaps but only 1 roadmap and 1 service guide are in teh INCOME_TAX_MTD category
109109
verifyPageRendered(
110110
pageTitle("API Documentation"),
111111
sideNavLinkRendered = false,

0 commit comments

Comments
 (0)