From 39791263211e05693103178e332fb11164d0d5d6 Mon Sep 17 00:00:00 2001 From: Paul Cahill Date: Fri, 27 Dec 2024 11:57:34 -0500 Subject: [PATCH] Fixing tests - changing to use MSH-19 instead of MSH-7. --- testing/configuration/solutions.json | 6 +- ...S_Integration_Test.postman_collection.json | 66 +++---------------- 2 files changed, 12 insertions(+), 60 deletions(-) diff --git a/testing/configuration/solutions.json b/testing/configuration/solutions.json index 911a43b..f49f811 100644 --- a/testing/configuration/solutions.json +++ b/testing/configuration/solutions.json @@ -170,7 +170,7 @@ "responseOperations" : [ ] }, { "id" : "bf3326fe-ab52-4d6c-b37f-7db5f1769c4c", - "solutionName" : "POSTMAN MSH-22-1 Response Transformer - DO NOT DELETE", + "solutionName" : "POSTMAN MSH-19-1 Response Transformer - DO NOT DELETE", "description" : "Used in Postman Tests", "version" : "1.0", "active" : true, @@ -184,8 +184,8 @@ "method" : "set", "id" : "6f750e31-3b60-49bc-a01e-1c2d8b84e3db", "order" : 0, - "destinationField" : "/MSH-22-1", - "setValue" : "MSH 22 NEW VALUE" + "destinationField" : "/MSH-19-1", + "setValue" : "MSH 19 NEW VALUE" } ] } ] }, { diff --git a/testing/scripts/TS_Integration_Test.postman_collection.json b/testing/scripts/TS_Integration_Test.postman_collection.json index c4f8fdc..6f05547 100644 --- a/testing/scripts/TS_Integration_Test.postman_collection.json +++ b/testing/scripts/TS_Integration_Test.postman_collection.json @@ -1,6 +1,6 @@ { "info": { - "_postman_id": "d6c9c438-f003-40b1-ace9-518df0030333", + "_postman_id": "ceb75421-eb48-40f2-a4e5-3c3ec8b1bfff", "name": "TS Integration Test", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", "_exporter_id": "28864196" @@ -25,10 +25,10 @@ " pm.response.to.have.status(200);\r", "});\r", "\r", - "pm.test(\"MSH-7 in the response message has been transformed\", function () {\r", + "pm.test(\"MSH-19 in the response message has been transformed\", function () {\r", " var response = utils.removeNS(xml2Json(responseBody));\r", " var hl7Message = response['Envelope']['Body']['SubmitSingleMessageResponse']['Hl7Message'];\r", - " pm.expect(utils.hl7Terser(hl7Message, 'MSH', 7, 1)).to.eql('MSH 7 NEW VALUE');\r", + " pm.expect(utils.hl7Terser(hl7Message, 'MSH', 19, 1)).to.eql('MSH 19 NEW VALUE');\r", "\r", "\r", "});\r", @@ -698,10 +698,10 @@ " pm.response.to.have.status(200);\r", "});\r", "\r", - "pm.test(\"MSH-7 in the response message has been transformed\", function () {\r", + "pm.test(\"MSH-19 in the response message has been transformed\", function () {\r", " var response = utils.removeNS(xml2Json(responseBody));\r", " var hl7Message = response['Envelope']['Body']['SubmitSingleMessageResponse']['Hl7Message'];\r", - " pm.expect(utils.hl7Terser(hl7Message, 'MSH', 7, 1)).to.eql('MSH 7 NEW VALUE');\r", + " pm.expect(utils.hl7Terser(hl7Message, 'MSH', 19, 1)).to.eql('MSH 19 NEW VALUE');\r", "\r", "\r", "});\r", @@ -1083,10 +1083,10 @@ " pm.response.to.have.status(200);\r", "});\r", "\r", - "pm.test(\"MSH-7 in the response message has been transformed\", function () {\r", + "pm.test(\"MSH-19 in the response message has been transformed\", function () {\r", " var response = utils.removeNS(xml2Json(responseBody));\r", " var hl7Message = response['Envelope']['Body']['SubmitSingleMessageResponse']['Hl7Message'];\r", - " pm.expect(utils.hl7Terser(hl7Message, 'MSH', 7, 1)).to.eql('MSH 7 NEW VALUE');\r", + " pm.expect(utils.hl7Terser(hl7Message, 'MSH', 19, 1)).to.eql('MSH 19 NEW VALUE');\r", "\r", "\r", "});\r", @@ -1531,10 +1531,10 @@ " pm.response.to.have.status(200);\r", "});\r", "\r", - "pm.test(\"MSH-7 in the response message has been transformed\", function () {\r", + "pm.test(\"MSH-19 in the response message has been transformed\", function () {\r", " var response = utils.removeNS(xml2Json(responseBody));\r", " var hl7Message = response['Envelope']['Body']['SubmitSingleMessageResponse']['Hl7Message'];\r", - " pm.expect(utils.hl7Terser(hl7Message, 'MSH', 7, 1)).to.eql('MSH 7 NEW VALUE');\r", + " pm.expect(utils.hl7Terser(hl7Message, 'MSH', 19, 1)).to.eql('MSH 19 NEW VALUE');\r", "\r", "\r", "});\r", @@ -23753,54 +23753,6 @@ "key": "hex1b", "value": "" }, - { - "key": "currentName", - "value": "" - }, - { - "key": "currentId", - "value": "" - }, - { - "key": "currentOrganizationId", - "value": "" - }, - { - "key": "currentInboundEndpoint", - "value": "" - }, - { - "key": "currentOutboundEndpoint", - "value": "" - }, - { - "key": "currentActive", - "value": "" - }, - { - "key": "createdPipeline", - "value": "" - }, - { - "key": "currentCodeSystem", - "value": "" - }, - { - "key": "currentCode", - "value": "" - }, - { - "key": "currentTargetCodeSystem", - "value": "" - }, - { - "key": "currentTargetCode", - "value": "" - }, - { - "key": "createdMapping", - "value": "" - }, { "key": "fhirPatientGiven", "value": ""