gds-api-adapters 38.1.0 → 39.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (55) hide show
  1. checksums.yaml +4 -4
  2. data/lib/gds_api/test_helpers/need_api.rb +0 -15
  3. data/lib/gds_api/test_helpers/organisations.rb +5 -0
  4. data/lib/gds_api/version.rb +1 -1
  5. metadata +3 -103
  6. data/test/asset_manager_test.rb +0 -94
  7. data/test/business_support_api_test.rb +0 -45
  8. data/test/content_api_test.rb +0 -712
  9. data/test/content_store_test.rb +0 -55
  10. data/test/email_alert_api_test.rb +0 -189
  11. data/test/fixtures/finder_api/cma-case-schema.json +0 -103
  12. data/test/fixtures/hello.txt +0 -1
  13. data/test/fixtures/new_policies_for_dwp.json +0 -298
  14. data/test/fixtures/no_services_and_info_data_found_fixture.json +0 -14
  15. data/test/fixtures/old_policies_for_dwp.json +0 -413
  16. data/test/fixtures/services_and_info_fixture.json +0 -73
  17. data/test/fixtures/sub_sector_organisations.json +0 -57
  18. data/test/fixtures/world_organisations_australia.json +0 -490
  19. data/test/gds_api_base_test.rb +0 -110
  20. data/test/gov_uk_delivery_test.rb +0 -67
  21. data/test/govuk_headers_test.rb +0 -30
  22. data/test/helpers_test.rb +0 -23
  23. data/test/imminence_api_test.rb +0 -196
  24. data/test/json_client_test.rb +0 -879
  25. data/test/licence_application_api_test.rb +0 -196
  26. data/test/list_response_test.rb +0 -189
  27. data/test/local_links_manager_api_test.rb +0 -236
  28. data/test/mapit_test.rb +0 -117
  29. data/test/maslow_test.rb +0 -12
  30. data/test/middleware/govuk_header_sniffer_test.rb +0 -18
  31. data/test/need_api_test.rb +0 -345
  32. data/test/organisations_api_test.rb +0 -58
  33. data/test/panopticon_registerer_test.rb +0 -118
  34. data/test/panopticon_test.rb +0 -190
  35. data/test/pp_data_in_test.rb +0 -52
  36. data/test/pp_data_out_test.rb +0 -24
  37. data/test/publishing_api/special_route_publisher_test.rb +0 -104
  38. data/test/publishing_api_test.rb +0 -186
  39. data/test/publishing_api_v2/get_expanded_links_test.rb +0 -85
  40. data/test/publishing_api_v2/get_links_test.rb +0 -89
  41. data/test/publishing_api_v2/lookup_test.rb +0 -70
  42. data/test/publishing_api_v2_test.rb +0 -1649
  43. data/test/response_test.rb +0 -245
  44. data/test/router_test.rb +0 -456
  45. data/test/rummager_helpers_test.rb +0 -20
  46. data/test/rummager_test.rb +0 -150
  47. data/test/support_api_test.rb +0 -189
  48. data/test/support_test.rb +0 -95
  49. data/test/test_helper.rb +0 -55
  50. data/test/test_helpers/email_alert_api_test.rb +0 -24
  51. data/test/test_helpers/pact_helper.rb +0 -13
  52. data/test/test_helpers/panopticon_test.rb +0 -44
  53. data/test/test_helpers/publishing_api_test.rb +0 -129
  54. data/test/test_helpers/publishing_api_v2_test.rb +0 -170
  55. data/test/worldwide_api_test.rb +0 -82
@@ -1,14 +0,0 @@
1
- {
2
- "results": [],
3
- "total": 712,
4
- "start": 0,
5
- "facets": {
6
- "specialist_sectors": {
7
- "options": [],
8
- "documents_with_no_value": 712,
9
- "total_options": 0,
10
- "missing_options": 0
11
- }
12
- },
13
- "suggested_queries": []
14
- }
@@ -1,413 +0,0 @@
1
- {
2
- "results": [
3
- {
4
- "topics": [
5
- {
6
- "slug": "employment",
7
- "link": "/government/topics/employment",
8
- "title": "Employment"
9
- },
10
- {
11
- "slug": "welfare",
12
- "link": "/government/topics/welfare",
13
- "title": "Welfare"
14
- }
15
- ],
16
- "title": "Employment",
17
- "description": "How the government is getting Britain working and helping people break the cycle of benefit dependency.",
18
- "link": "/government/policies/helping-people-to-find-and-stay-in-work",
19
- "format": "policy",
20
- "display_type": "Policy",
21
- "organisations": [
22
- {
23
- "slug": "department-for-work-pensions",
24
- "link": "/government/organisations/department-for-work-pensions",
25
- "title": "Department for Work and Pensions",
26
- "acronym": "DWP",
27
- "organisation_type": "Ministerial department",
28
- "organisation_state": "live"
29
- },
30
- {
31
- "slug": "hm-treasury",
32
- "link": "/government/organisations/hm-treasury",
33
- "title": "HM Treasury",
34
- "acronym": "HMT",
35
- "organisation_type": "Ministerial department",
36
- "organisation_state": "live"
37
- }
38
- ],
39
- "public_timestamp": "2015-03-26T15:06:42.000+00:00",
40
- "index": "government",
41
- "es_score": null,
42
- "_id": "/government/policies/helping-people-to-find-and-stay-in-work",
43
- "document_type": "edition"
44
- },
45
- {
46
- "topics": [
47
- {
48
- "slug": "energy",
49
- "link": "/government/topics/energy",
50
- "title": "Energy"
51
- },
52
- {
53
- "slug": "climate-change",
54
- "link": "/government/topics/climate-change",
55
- "title": "Climate change"
56
- }
57
- ],
58
- "title": "Household energy",
59
- "description": "How we're helping households to save on their energy bills and supporting people in fuel poverty.",
60
- "link": "/government/policies/helping-households-to-cut-their-energy-bills",
61
- "format": "policy",
62
- "display_type": "Policy",
63
- "organisations": [
64
- {
65
- "slug": "department-for-communities-and-local-government",
66
- "link": "/government/organisations/department-for-communities-and-local-government",
67
- "title": "Department for Communities and Local Government",
68
- "acronym": "DCLG",
69
- "organisation_type": "Ministerial department",
70
- "organisation_state": "live"
71
- },
72
- {
73
- "slug": "department-for-work-pensions",
74
- "link": "/government/organisations/department-for-work-pensions",
75
- "title": "Department for Work and Pensions",
76
- "acronym": "DWP",
77
- "organisation_type": "Ministerial department",
78
- "organisation_state": "live"
79
- },
80
- {
81
- "slug": "department-of-energy-climate-change",
82
- "link": "/government/organisations/department-of-energy-climate-change",
83
- "title": "Department of Energy & Climate Change",
84
- "acronym": "DECC",
85
- "organisation_type": "Ministerial department",
86
- "organisation_state": "live"
87
- },
88
- {
89
- "slug": "ofgem",
90
- "link": "/government/organisations/ofgem",
91
- "title": "Ofgem",
92
- "organisation_state": "exempt"
93
- }
94
- ],
95
- "public_timestamp": "2015-03-26T11:40:02.000+00:00",
96
- "index": "government",
97
- "es_score": null,
98
- "_id": "/government/policies/helping-households-to-cut-their-energy-bills",
99
- "document_type": "edition"
100
- },
101
- {
102
- "topics": [
103
- {
104
- "slug": "welfare",
105
- "link": "/government/topics/welfare",
106
- "title": "Welfare"
107
- },
108
- {
109
- "slug": "community-and-society",
110
- "link": "/government/topics/community-and-society",
111
- "title": "Community and society"
112
- }
113
- ],
114
- "title": "Poverty and social justice",
115
- "description": "How the government is working to help people overcome complex problems that lead to poverty, to help them change the course of their lives",
116
- "link": "/government/policies/helping-to-reduce-poverty-and-improve-social-justice",
117
- "format": "policy",
118
- "display_type": "Policy",
119
- "organisations": [
120
- {
121
- "slug": "department-for-education",
122
- "link": "/government/organisations/department-for-education",
123
- "title": "Department for Education",
124
- "acronym": "DfE",
125
- "organisation_type": "Ministerial department",
126
- "organisation_state": "live"
127
- },
128
- {
129
- "slug": "department-for-work-pensions",
130
- "link": "/government/organisations/department-for-work-pensions",
131
- "title": "Department for Work and Pensions",
132
- "acronym": "DWP",
133
- "organisation_type": "Ministerial department",
134
- "organisation_state": "live"
135
- }
136
- ],
137
- "public_timestamp": "2014-10-22T16:15:41.000+01:00",
138
- "index": "government",
139
- "es_score": null,
140
- "_id": "/government/policies/helping-to-reduce-poverty-and-improve-social-justice",
141
- "document_type": "edition"
142
- },
143
- {
144
- "topics": [
145
- {
146
- "slug": "employment",
147
- "link": "/government/topics/employment",
148
- "title": "Employment"
149
- },
150
- {
151
- "slug": "welfare",
152
- "link": "/government/topics/welfare",
153
- "title": "Welfare"
154
- }
155
- ],
156
- "title": "Welfare reform",
157
- "description": "Making the welfare system fairer, more affordable and better able to reduce poverty, worklessness and welfare dependency.",
158
- "link": "/government/policies/simplifying-the-welfare-system-and-making-sure-work-pays",
159
- "format": "policy",
160
- "display_type": "Policy",
161
- "organisations": [
162
- {
163
- "slug": "department-for-work-pensions",
164
- "link": "/government/organisations/department-for-work-pensions",
165
- "title": "Department for Work and Pensions",
166
- "acronym": "DWP",
167
- "organisation_type": "Ministerial department",
168
- "organisation_state": "live"
169
- }
170
- ],
171
- "public_timestamp": "2014-10-22T11:30:00.000+01:00",
172
- "index": "government",
173
- "es_score": null,
174
- "_id": "/government/policies/simplifying-the-welfare-system-and-making-sure-work-pays",
175
- "document_type": "edition"
176
- },
177
- {
178
- "topics": [
179
- {
180
- "slug": "business-and-enterprise",
181
- "link": "/government/topics/business-and-enterprise",
182
- "title": "Business and enterprise"
183
- },
184
- {
185
- "slug": "europe",
186
- "link": "/government/topics/europe",
187
- "title": "Europe"
188
- },
189
- {
190
- "slug": "uk-economy",
191
- "link": "/government/topics/uk-economy",
192
- "title": "UK economy"
193
- }
194
- ],
195
- "title": "European funds",
196
- "description": "Negotiating the European Union (EU) Common Strategic Framework for 2014 to 2020.",
197
- "link": "/government/policies/making-european-funding-work-better-for-the-uk-economy",
198
- "format": "policy",
199
- "display_type": "Policy",
200
- "organisations": [
201
- {
202
- "slug": "department-for-business-innovation-skills",
203
- "link": "/government/organisations/department-for-business-innovation-skills",
204
- "title": "Department for Business, Innovation & Skills",
205
- "acronym": "BIS",
206
- "organisation_type": "Ministerial department",
207
- "organisation_state": "live"
208
- },
209
- {
210
- "slug": "department-for-communities-and-local-government",
211
- "link": "/government/organisations/department-for-communities-and-local-government",
212
- "title": "Department for Communities and Local Government",
213
- "acronym": "DCLG",
214
- "organisation_type": "Ministerial department",
215
- "organisation_state": "live"
216
- },
217
- {
218
- "slug": "department-for-environment-food-rural-affairs",
219
- "link": "/government/organisations/department-for-environment-food-rural-affairs",
220
- "title": "Department for Environment, Food & Rural Affairs",
221
- "acronym": "Defra",
222
- "organisation_type": "Ministerial department",
223
- "organisation_state": "live"
224
- },
225
- {
226
- "slug": "department-for-work-pensions",
227
- "link": "/government/organisations/department-for-work-pensions",
228
- "title": "Department for Work and Pensions",
229
- "acronym": "DWP",
230
- "organisation_type": "Ministerial department",
231
- "organisation_state": "live"
232
- },
233
- {
234
- "slug": "hm-treasury",
235
- "link": "/government/organisations/hm-treasury",
236
- "title": "HM Treasury",
237
- "acronym": "HMT",
238
- "organisation_type": "Ministerial department",
239
- "organisation_state": "live"
240
- }
241
- ],
242
- "public_timestamp": "2014-07-23T14:21:36.000+01:00",
243
- "index": "government",
244
- "es_score": null,
245
- "_id": "/government/policies/making-european-funding-work-better-for-the-uk-economy",
246
- "document_type": "edition"
247
- },
248
- {
249
- "topics": [
250
- {
251
- "slug": "pensions-and-ageing-society",
252
- "link": "/government/topics/pensions-and-ageing-society",
253
- "title": "Pensions and ageing society"
254
- }
255
- ],
256
- "title": "Older people",
257
- "description": "What the government is doing to help improve life for older people in an ageing society.",
258
- "link": "/government/policies/improving-opportunities-for-older-people",
259
- "format": "policy",
260
- "display_type": "Policy",
261
- "organisations": [
262
- {
263
- "slug": "department-for-work-pensions",
264
- "link": "/government/organisations/department-for-work-pensions",
265
- "title": "Department for Work and Pensions",
266
- "acronym": "DWP",
267
- "organisation_type": "Ministerial department",
268
- "organisation_state": "live"
269
- }
270
- ],
271
- "public_timestamp": "2014-06-13T09:30:06.000+01:00",
272
- "index": "government",
273
- "es_score": null,
274
- "_id": "/government/policies/improving-opportunities-for-older-people",
275
- "document_type": "edition"
276
- },
277
- {
278
- "topics": [
279
- {
280
- "slug": "business-and-enterprise",
281
- "link": "/government/topics/business-and-enterprise",
282
- "title": "Business and enterprise"
283
- },
284
- {
285
- "slug": "regulation-reform",
286
- "link": "/government/topics/regulation-reform",
287
- "title": "Regulation reform"
288
- }
289
- ],
290
- "title": "Health and safety reform",
291
- "description": "How the government is improving the health and safety system, making sure it is taken seriously and reducing the burden on business.",
292
- "link": "/government/policies/improving-the-health-and-safety-system",
293
- "format": "policy",
294
- "display_type": "Policy",
295
- "organisations": [
296
- {
297
- "slug": "department-for-work-pensions",
298
- "link": "/government/organisations/department-for-work-pensions",
299
- "title": "Department for Work and Pensions",
300
- "acronym": "DWP",
301
- "organisation_type": "Ministerial department",
302
- "organisation_state": "live"
303
- }
304
- ],
305
- "public_timestamp": "2014-01-02T14:31:58.000+00:00",
306
- "index": "government",
307
- "es_score": null,
308
- "_id": "/government/policies/improving-the-health-and-safety-system",
309
- "document_type": "edition"
310
- },
311
- {
312
- "topics": [
313
- {
314
- "slug": "pensions-and-ageing-society",
315
- "link": "/government/topics/pensions-and-ageing-society",
316
- "title": "Pensions and ageing society"
317
- }
318
- ],
319
- "title": "State Pension age",
320
- "description": "How the government is making sure the State Pension is affordable in the long term and fair between generations.",
321
- "link": "/government/policies/reviewing-the-state-pension-age",
322
- "format": "policy",
323
- "display_type": "Policy",
324
- "organisations": [
325
- {
326
- "slug": "department-for-work-pensions",
327
- "link": "/government/organisations/department-for-work-pensions",
328
- "title": "Department for Work and Pensions",
329
- "acronym": "DWP",
330
- "organisation_type": "Ministerial department",
331
- "organisation_state": "live"
332
- }
333
- ],
334
- "public_timestamp": "2013-12-05T14:19:47.000+00:00",
335
- "index": "government",
336
- "es_score": null,
337
- "_id": "/government/policies/reviewing-the-state-pension-age",
338
- "document_type": "edition"
339
- },
340
- {
341
- "topics": [
342
- {
343
- "slug": "pensions-and-ageing-society",
344
- "link": "/government/topics/pensions-and-ageing-society",
345
- "title": "Pensions and ageing society"
346
- }
347
- ],
348
- "title": "State Pension simplification",
349
- "description": "How the government is making the State Pension simpler and fairer so it’s a good starting point for planning and saving for retirement.",
350
- "link": "/government/policies/making-the-state-pension-simpler-and-fairer",
351
- "format": "policy",
352
- "display_type": "Policy",
353
- "organisations": [
354
- {
355
- "slug": "department-for-work-pensions",
356
- "link": "/government/organisations/department-for-work-pensions",
357
- "title": "Department for Work and Pensions",
358
- "acronym": "DWP",
359
- "organisation_type": "Ministerial department",
360
- "organisation_state": "live"
361
- }
362
- ],
363
- "public_timestamp": "2013-08-08T09:30:52.000+01:00",
364
- "index": "government",
365
- "es_score": null,
366
- "_id": "/government/policies/making-the-state-pension-simpler-and-fairer",
367
- "document_type": "edition"
368
- },
369
- {
370
- "topics": [
371
- {
372
- "slug": "children-and-young-people",
373
- "link": "/government/topics/children-and-young-people",
374
- "title": "Children and young people"
375
- },
376
- {
377
- "slug": "welfare",
378
- "link": "/government/topics/welfare",
379
- "title": "Welfare"
380
- },
381
- {
382
- "slug": "community-and-society",
383
- "link": "/government/topics/community-and-society",
384
- "title": "Community and society"
385
- }
386
- ],
387
- "title": "Child maintenance reform",
388
- "description": "Increasing the number of children who benefit from effective maintenance arrangements and improving collaboration between separated parents.",
389
- "link": "/government/policies/improving-the-child-maintenance-system",
390
- "format": "policy",
391
- "display_type": "Policy",
392
- "organisations": [
393
- {
394
- "slug": "department-for-work-pensions",
395
- "link": "/government/organisations/department-for-work-pensions",
396
- "title": "Department for Work and Pensions",
397
- "acronym": "DWP",
398
- "organisation_type": "Ministerial department",
399
- "organisation_state": "live"
400
- }
401
- ],
402
- "public_timestamp": "2013-08-08T09:28:12.000+01:00",
403
- "index": "government",
404
- "es_score": null,
405
- "_id": "/government/policies/improving-the-child-maintenance-system",
406
- "document_type": "edition"
407
- }
408
- ],
409
- "total": 11,
410
- "start": 0,
411
- "facets": {},
412
- "suggested_queries": []
413
- }
@@ -1,73 +0,0 @@
1
- {
2
- "results": [ ],
3
- "total": 3138,
4
- "start": 0,
5
- "facets": {
6
- "specialist_sectors": {
7
- "options": [
8
- {
9
- "value": {
10
- "link": "/environmental-management/environmental-permits",
11
- "title": "Environmental permits",
12
- "slug": "environmental-management/environmental-permits",
13
- "example_info": {
14
- "total": 47,
15
- "examples": [
16
- {
17
- "title": "Check if you need an environmental permit",
18
- "link": "/environmental-permit-check-if-you-need-one"
19
- },
20
- {
21
- "title": "Environmental permit: how to apply",
22
- "link": "/environmental-permit-how-to-apply"
23
- },
24
- {
25
- "title": "Standard rules: environmental permitting",
26
- "link": "/government/collections/standard-rules-environmental-permitting"
27
- },
28
- {
29
- "title": "Environmental permitting (EP) charges scheme: April 2014 to March 2015",
30
- "link": "/government/publications/environmental-permitting-ep-charges-scheme-april-2014-to-march-2015"
31
- }
32
- ]
33
- }
34
- },
35
- "documents": 47
36
- },
37
- {
38
- "value": {
39
- "link": "/environmental-management/waste",
40
- "title": "Waste",
41
- "slug": "environmental-management/waste",
42
- "example_info": {
43
- "total": 49,
44
- "examples": [
45
- {
46
- "title": "Register as a waste carrier, broker or dealer (England)",
47
- "link": "/waste-carrier-or-broker-registration"
48
- },
49
- {
50
- "title": "Hazardous waste producer registration (England and Wales)",
51
- "link": "/hazardous-waste-producer-registration"
52
- },
53
- {
54
- "title": "Check if you need an environmental permit",
55
- "link": "/environmental-permit-check-if-you-need-one"
56
- },
57
- {
58
- "title": "Classify different types of waste",
59
- "link": "/how-to-classify-different-types-of-waste"
60
- }
61
- ]
62
- }
63
- },
64
- "documents": 47
65
- }
66
- ],
67
- "documents_with_no_value": 2900,
68
- "total_options": 17,
69
- "missing_options": 0
70
- }
71
- },
72
- "suggested_queries": [ ]
73
- }