Skip to content

Commit 838ed4c

Browse files
committed
eli-225 fixing postman output - final line needs to be newline
1 parent bc28e02 commit 838ed4c

File tree

3 files changed

+21
-19
lines changed

3 files changed

+21
-19
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ public/
2020
sandbox/tests
2121
sandbox/__pycache__
2222
/specification/tmp/*
23+
/specification/tmp/working/*
2324
/sandbox/specification/*
2425
sandbox/specification/*
2526
/coverage.xml

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,9 @@ convert-postman: # Create Postman collection from OAS spec
138138
mkdir -p $(POSTMAN_DIR)
139139
cp $(SPEC_DIR)/eligibility-signposting-api.yaml $(POSTMAN_DIR)/
140140
docker build -t portman-converter -f $(POSTMAN_DIR)/Dockerfile $(SPEC_DIR)
141-
docker run --rm -v $(SPEC_DIR):/app portman-converter \
141+
docker run --rm -u $(shell id -u):$(shell id -g) -v $(SPEC_DIR):/app portman-converter \
142142
portman -l /app/eligibility-signposting-api.yaml -o /app/postman/collection.json
143+
echo >> $(POSTMAN_DIR)/collection.json
143144
rm $(POSTMAN_DIR)/eligibility-signposting-api.yaml
144145
# ==============================================================================
145146

specification/postman/collection.json

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"_": {
3-
"postman_id": "4fee3c0c-fdf6-4d43-947b-48829d885f6e"
3+
"postman_id": "ba20edf8-d2b0-449e-9fce-c2fca677a75f"
44
},
55
"item": [
66
{
7-
"id": "ef90eba1-8b91-4ce2-97c7-259e22057d1d",
7+
"id": "bda40fa4-a13e-480b-b308-5d8ffea5c219",
88
"name": "Eligibility",
99
"description": {
1010
"content": "",
@@ -14,7 +14,7 @@
1414
"event": []
1515
},
1616
{
17-
"id": "f129827c-e8a5-4918-a5d2-8faf32129298",
17+
"id": "3baf66b1-6fd6-4541-9bcc-4882580840bf",
1818
"name": "Signposting",
1919
"description": {
2020
"content": "",
@@ -24,7 +24,7 @@
2424
"event": []
2525
},
2626
{
27-
"id": "ebd41ac5-106c-4796-8c5a-923aab394aad",
27+
"id": "2dcd7738-4fb2-40bd-908d-d20e055faf84",
2828
"name": "NextActions",
2929
"description": {
3030
"content": "",
@@ -34,7 +34,7 @@
3434
"event": []
3535
},
3636
{
37-
"id": "9e0fc317-da0c-4663-8073-840c55a3aea9",
37+
"id": "25891a9a-2789-4669-ab95-32606f384701",
3838
"name": "Check Eligibility",
3939
"request": {
4040
"name": "Check Eligibility",
@@ -153,7 +153,7 @@
153153
"_": {
154154
"postman_previewlanguage": "json"
155155
},
156-
"id": "f99f810c-a1e6-4614-a9f8-5e710d7c911a",
156+
"id": "9a9149f3-e174-4b0d-a723-122e6331ea19",
157157
"name": "RSV - Actionable CP Booking",
158158
"originalRequest": {
159159
"url": {
@@ -254,7 +254,7 @@
254254
"_": {
255255
"postman_previewlanguage": "json"
256256
},
257-
"id": "6d5763c8-0d5b-4b2c-a113-21b124ad1163",
257+
"id": "31ac0790-21bb-476d-96fa-c134d6a4b507",
258258
"name": "RSV - Actionable Not CP Booking",
259259
"originalRequest": {
260260
"url": {
@@ -355,7 +355,7 @@
355355
"_": {
356356
"postman_previewlanguage": "json"
357357
},
358-
"id": "ebe454ec-6572-4ae1-99a9-fa376ab13927",
358+
"id": "e96c6a4d-f77f-4775-90a4-e2520150f08e",
359359
"name": "RSV - Eligible, not actionable",
360360
"originalRequest": {
361361
"url": {
@@ -456,7 +456,7 @@
456456
"_": {
457457
"postman_previewlanguage": "json"
458458
},
459-
"id": "5d0964c8-bd1f-45ce-ab4d-3795cce474c2",
459+
"id": "4284a77d-b38a-44cd-aeb9-d7606a954917",
460460
"name": "RSV - Not Eligible Due to Vaccination",
461461
"originalRequest": {
462462
"url": {
@@ -557,7 +557,7 @@
557557
"_": {
558558
"postman_previewlanguage": "json"
559559
},
560-
"id": "f7b93e54-887f-4458-a4a7-3aa46b37b025",
560+
"id": "60101a57-018e-40f8-b01f-1ccb2f5c0647",
561561
"name": "RSV - Not Eligible Due to not being cohorted",
562562
"originalRequest": {
563563
"url": {
@@ -658,7 +658,7 @@
658658
"_": {
659659
"postman_previewlanguage": "json"
660660
},
661-
"id": "bf9a12b0-557e-48a5-98d3-202c9ee98a57",
661+
"id": "b2a046d8-f574-4ac2-ab9c-898f000a3ca8",
662662
"name": "RSV - No rules",
663663
"originalRequest": {
664664
"url": {
@@ -759,7 +759,7 @@
759759
"_": {
760760
"postman_previewlanguage": "json"
761761
},
762-
"id": "b30ac7fa-2eaa-4aa1-aa7d-2ba3a9ca2767",
762+
"id": "237e32fb-9df9-48dd-a8ef-9c7369a0d02d",
763763
"name": "Invalid input data.",
764764
"originalRequest": {
765765
"url": {
@@ -860,7 +860,7 @@
860860
"_": {
861861
"postman_previewlanguage": "json"
862862
},
863-
"id": "4cfc5d01-1545-410a-bc18-c5a815ab1629",
863+
"id": "25ddc8a7-450f-48df-97e1-a19bb7166b7a",
864864
"name": "Person not found.",
865865
"originalRequest": {
866866
"url": {
@@ -961,7 +961,7 @@
961961
"_": {
962962
"postman_previewlanguage": "json"
963963
},
964-
"id": "0f1702cc-6629-4f6a-952f-3b2d70c3157c",
964+
"id": "83e75dfb-0131-4aac-958d-965f3ab06893",
965965
"name": "Unrecognised input data. (Unprocessable Content)",
966966
"originalRequest": {
967967
"url": {
@@ -1062,7 +1062,7 @@
10621062
"_": {
10631063
"postman_previewlanguage": "json"
10641064
},
1065-
"id": "784eceb7-c812-4da0-93e9-71b6590bea56",
1065+
"id": "5942e808-a5d9-4109-826b-e7f003400b17",
10661066
"name": "Internal server error.",
10671067
"originalRequest": {
10681068
"url": {
@@ -1164,7 +1164,7 @@
11641164
{
11651165
"listen": "test",
11661166
"script": {
1167-
"id": "f4ff1ea5-abf0-417a-9dc1-d84077349d0e",
1167+
"id": "00e0af41-bf6e-4224-87d6-f92cbb6d39d3",
11681168
"type": "text/javascript",
11691169
"exec": [
11701170
"// Validate status 2xx \npm.test(\"[GET]::/patient-check/:id - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n",
@@ -1189,7 +1189,7 @@
11891189
}
11901190
],
11911191
"info": {
1192-
"_postman_id": "4fee3c0c-fdf6-4d43-947b-48829d885f6e",
1192+
"_postman_id": "ba20edf8-d2b0-449e-9fce-c2fca677a75f",
11931193
"name": "Patient Eligibility Signposting API",
11941194
"version": {
11951195
"raw": "1.0.9-alpha",
@@ -1206,4 +1206,4 @@
12061206
"type": "text/plain"
12071207
}
12081208
}
1209-
}
1209+
}

0 commit comments

Comments
 (0)