Skip to content

Commit 8f636e2

Browse files
Wiremock Mappings
Signed-off-by: Harshitha J <harshitha.j2@ibm.com>
1 parent 69ed449 commit 8f636e2

23 files changed

Lines changed: 327 additions & 21 deletions

File tree

packages/vsce/__tests__/__e2e__/utils/helpers.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,11 @@ export const constants = {
2626
LIBRARY_DS_1_NAME: "MYLIB.DS1",
2727
LIBRARY_DS_2_NAME: "MYLIBDS1",
2828
JVM_SERVER_1_NAME: "MYJVM1",
29+
JVM_SERVER_2_NAME: "MYJVM2",
2930
ALL_JVMSERVER_NAME1: "MYJVM1 (MYREG1)",
3031
ALL_JVMSERVER_NAME2: "MYJVM2 (MYREG1)",
3132
JVM_ENDPOINT_1_NAME: "MYJVMENDPOINT1 (9080)",
33+
JVM_ENDPOINT_2_NAME: "MYJVMENDPOINT2 (9081)",
3234
BUNDLE_1_NAME: "MYBUNDLE1 (DISABLED)",
3335
BUNDLE_1_USS_PATH: "/u/expauto/bundles/test_plugin_1.0.1",
3436
LOCAL_FILE_1_NAME: "LOCFILE1",

packages/vsce/__tests__/__e2e__/wiremock/__files/CICSJVMEndpoint/MYJVM1/records.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
44
xsi:schemaLocation="http://www.ibm.com/xmlns/prod/CICS/smw2int http://my-localhost:8080/CICSSystemManagement/schema/CICSSystemManagement.xsd"
55
version="3.0" connect_version="0610">
6-
<resultsummary api_response1="1024" api_response2="0" api_response1_alt="OK" api_response2_alt="" recordcount="1" displayed_recordcount="1" cachetoken="JVMENDPOINTTOKEN" />
6+
<resultsummary api_response1="1024" api_response2="0" api_response1_alt="OK" api_response2_alt="" recordcount="1" displayed_recordcount="1" cachetoken="JVMEP_MYJVM1_TOKEN" />
77
<records>
88
<cicsjvmendpoint _keydata="84858681A493A3C8A3A397C5958497968995A340404040404040404040404040404040404040404040404040" enablestatus="ENABLED" eyu_cicsname="MYREG1" eyu_cicsrel="E740" eyu_reserved="0" host="*" jvmendpoint="MYJVMENDPOINT1" jvmserver="MYJVM1" port="9080" secport="N/A" type="com.ibm.ws.http" />
99
</records>
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0"?>
2-
<response xmlns="http://www.ibm.com/xmlns/prod/CICS/smw2int"
3-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4-
xsi:schemaLocation="http://www.ibm.com/xmlns/prod/CICS/smw2int http://my-localhost:8080/CICSSystemManagement/schema/CICSSystemManagement.xsd"
5-
version="3.0" connect_version="0610">
6-
<resultsummary api_response1="1024" api_response2="0" api_response1_alt="OK" api_response2_alt="" recordcount="1" />
2+
<response xmlns="http://www.ibm.com/xmlns/prod/CICS/smw2int"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://www.ibm.com/xmlns/prod/CICS/smw2int http://my-localhost:8080/CICSSystemManagement/schema/CICSSystemManagement.xsd"
5+
version="3.0" connect_version="0610">
6+
<resultsummary api_response1="1024" api_response2="0" api_response1_alt="OK" api_response2_alt="" />
77
</response>

packages/vsce/__tests__/__e2e__/wiremock/__files/CICSJVMEndpoint/MYJVM1/summary.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
<response xmlns="http://www.ibm.com/xmlns/prod/CICS/smw2int"
33
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
44
xsi:schemaLocation="http://www.ibm.com/xmlns/prod/CICS/smw2int http://my-localhost:8080/CICSSystemManagement/schema/CICSSystemManagement.xsd" version="3.0" connect_version="0610">
5-
<resultsummary api_response1="1024" api_response2="0" api_response1_alt="OK" api_response2_alt="" recordcount="1" cachetoken="JVMENDPOINTTOKEN" />
5+
<resultsummary api_response1="1024" api_response2="0" api_response1_alt="OK" api_response2_alt="" recordcount="1" cachetoken="JVMEP_MYJVM1_TOKEN" />
66
</response>
Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
<?xml version="1.0"?>
2-
<response xmlns="http://www.ibm.com/xmlns/prod/CICS/smw2int"
3-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4-
xsi:schemaLocation="http://www.ibm.com/xmlns/prod/CICS/smw2int http://my-localhost:8080/CICSSystemManagement/schema/CICSSystemManagement.xsd" version="3.0" connect_version="0610">
5-
<resultsummary api_response1="1024" api_response2="0" api_response1_alt="OK" api_response2_alt="" recordcount="1" cachetoken="JVMENDPOINTTOKEN" />
2+
<response xmlns="http://www.ibm.com/xmlns/prod/CICS/smw2int"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://www.ibm.com/xmlns/prod/CICS/smw2int http://my-localhost:8080/CICSSystemManagement/schema/CICSSystemManagement.xsd"
5+
version="3.0" connect_version="0610">
6+
<resultsummary api_response1="1024" api_response2="0" api_response1_alt="OK" api_response2_alt=""
7+
recordcount="0" displayed_recordcount="0" />
68
</response>
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?xml version="1.0"?>
2+
<response xmlns="http://www.ibm.com/xmlns/prod/CICS/smw2int"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://www.ibm.com/xmlns/prod/CICS/smw2int http://my-localhost:8080/CICSSystemManagement/schema/CICSSystemManagement.xsd"
5+
version="3.0" connect_version="0610">
6+
<resultsummary api_response1="1024" api_response2="0" api_response1_alt="OK" api_response2_alt=""
7+
recordcount="1" displayed_recordcount="1" cachetoken="JVMEP1ENABLED" />
8+
<records>
9+
<cicsjvmendpoint _keydata="84858681A493A3C8A3A397C5958497968995A340404040404040404040404040404040404040404040404040"
10+
enablestatus="ENABLED" eyu_cicsname="MYREG1" eyu_cicsrel="E740" eyu_reserved="0"
11+
host="*" jvmendpoint="MYJVMENDPOINT1" jvmserver="MYJVM1" port="9080" secport="N/A" type="com.ibm.ws.http" />
12+
</records>
13+
</response>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?xml version="1.0"?>
2+
<response xmlns="http://www.ibm.com/xmlns/prod/CICS/smw2int"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://www.ibm.com/xmlns/prod/CICS/smw2int http://my-localhost:8080/CICSSystemManagement/schema/CICSSystemManagement.xsd"
5+
version="3.0" connect_version="0610">
6+
<resultsummary api_response1="1024" api_response2="0" api_response1_alt="OK" api_response2_alt="" />
7+
</response>
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0"?>
2+
<response xmlns="http://www.ibm.com/xmlns/prod/CICS/smw2int"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://www.ibm.com/xmlns/prod/CICS/smw2int http://my-localhost:8080/CICSSystemManagement/schema/CICSSystemManagement.xsd"
5+
version="3.0" connect_version="0610">
6+
<resultsummary api_response1="1024" api_response2="0" api_response1_alt="OK" api_response2_alt=""
7+
recordcount="1" cachetoken="JVMEP1ENABLED" />
8+
</response>
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?xml version="1.0"?>
2+
<response xmlns="http://www.ibm.com/xmlns/prod/CICS/smw2int"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://www.ibm.com/xmlns/prod/CICS/smw2int http://my-localhost:8080/CICSSystemManagement/schema/CICSSystemManagement.xsd"
5+
version="3.0" connect_version="0610">
6+
<resultsummary api_response1="1024" api_response2="0" api_response1_alt="OK" api_response2_alt=""
7+
recordcount="1" displayed_recordcount="1" cachetoken="JVMEP2DISABLED" />
8+
<records>
9+
<cicsjvmendpoint _keydata="84858681A493A3C8A3A397C5958497968995A340404040404040404040404040404040404040404040404041"
10+
enablestatus="DISABLED" eyu_cicsname="MYREG1" eyu_cicsrel="E740" eyu_reserved="0"
11+
host="*" jvmendpoint="MYJVMENDPOINT2" jvmserver="MYJVM1" port="9081" secport="N/A" type="com.ibm.ws.http" />
12+
</records>
13+
</response>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?xml version="1.0"?>
2+
<response xmlns="http://www.ibm.com/xmlns/prod/CICS/smw2int"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://www.ibm.com/xmlns/prod/CICS/smw2int http://my-localhost:8080/CICSSystemManagement/schema/CICSSystemManagement.xsd"
5+
version="3.0" connect_version="0610">
6+
<resultsummary api_response1="1024" api_response2="0" api_response1_alt="OK" api_response2_alt="" />
7+
</response>

0 commit comments

Comments
 (0)