-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into dir-to-uss-encoding
Signed-off-by: Jace Roell <[email protected]>
- Loading branch information
Showing
12 changed files
with
317 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 25 additions & 16 deletions
41
.../cli/__tests__/zostso/__unit__/send/app/__snapshots__/SendASApp.handler.unit.test.ts.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,30 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`receive TSO app handler behavior should properly receive and parse data from receive TSO response 1`] = ` | ||
"{ | ||
\\"version\\": \\"0100\\", | ||
\\"reused\\": false, | ||
\\"timeout\\": false, | ||
\\"servletKey\\": \\"ZOWEUSER-127-aabeaaag\\", | ||
\\"queueID\\": null, | ||
\\"tsoData\\": [ | ||
{ | ||
\\"VERSION\\": \\"0100\\", | ||
\\"DATA\\": \\"HELLOW exec processing has started.\\" | ||
" | ||
" | ||
`; | ||
|
||
exports[`receive TSO app handler behavior should properly receive and parse data from receive TSO response 2`] = `"HELLOW exec processing has started."`; | ||
|
||
exports[`receive TSO app handler behavior should properly receive and parse data from receive TSO response 3`] = `"UNIX message queue id = 1048608"`; | ||
|
||
exports[`receive TSO app handler behavior should properly receive and parse data from receive TSO response 4`] = ` | ||
Object { | ||
"queueID": null, | ||
"reused": false, | ||
"servletKey": "ZOWEUSER-127-aabeaaag", | ||
"timeout": false, | ||
"tsoData": Array [ | ||
Object { | ||
"DATA": "HELLOW exec processing has started.", | ||
"VERSION": "0100", | ||
}, | ||
Object { | ||
"DATA": "UNIX message queue id = 1048608", | ||
"VERSION": "0100", | ||
}, | ||
{ | ||
\\"VERSION\\": \\"0100\\", | ||
\\"DATA\\": \\"UNIX message queue id = 1048608\\" | ||
} | ||
] | ||
}" | ||
], | ||
"version": "0100", | ||
} | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
154 changes: 98 additions & 56 deletions
154
...li/__tests__/zostso/__unit__/start/app/__snapshots__/StartASApp.handler.unit.test.ts.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,63 +1,105 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`receive TSO app handler behavior should properly start TSO address space and run an application at the created address space 1`] = ` | ||
"{ | ||
\\"reused\\": false, | ||
\\"timeout\\": false, | ||
\\"servletKey\\": \\"ZOWEUSER-123-aaaaaa\\", | ||
\\"queueID\\": \\"983068\\", | ||
\\"tsoData\\": [ | ||
{ | ||
\\"VERSION\\": \\"0100\\", | ||
\\"DATA\\": \\"HELLOW exec processing has started.\\" | ||
}, | ||
{ | ||
\\"VERSION\\": \\"0100\\", | ||
\\"DATA\\": \\"UNIX message queue id = 983068\\" | ||
}, | ||
{ | ||
\\"VERSION\\": \\"0100\\", | ||
\\"DATA\\": \\"Input message type = 32772\\" | ||
}, | ||
{ | ||
\\"VERSION\\": \\"0100\\", | ||
\\"DATA\\": \\"Output message type = 4\\" | ||
}, | ||
{ | ||
\\"VERSION\\": \\"0100\\", | ||
\\"DATA\\": \\"Reading application input from the UNIX message queue.\\" | ||
} | ||
] | ||
}" | ||
"[33m[1m[22m[39m | ||
[33m[1mServlet Key: [22m[39mZOWEUSER-123-aaaaaa" | ||
`; | ||
|
||
exports[`receive TSO app handler behavior should properly start TSO address space and run an application at the created address space 2`] = ` | ||
"[33m[1mQueue ID: [22m[39m983068 | ||
" | ||
`; | ||
|
||
exports[`receive TSO app handler behavior should properly start TSO address space and run an application at the created address space 3`] = `"HELLOW exec processing has started."`; | ||
|
||
exports[`receive TSO app handler behavior should properly start TSO address space and run an application at the created address space 4`] = `"UNIX message queue id = 983068"`; | ||
|
||
exports[`receive TSO app handler behavior should properly start TSO address space and run an application at the created address space 5`] = `"Input message type = 32772"`; | ||
|
||
exports[`receive TSO app handler behavior should properly start TSO address space and run an application at the created address space 6`] = `"Output message type = 4"`; | ||
|
||
exports[`receive TSO app handler behavior should properly start TSO address space and run an application at the created address space 7`] = `"Reading application input from the UNIX message queue."`; | ||
|
||
exports[`receive TSO app handler behavior should properly start TSO address space and run an application at the created address space 8`] = ` | ||
Object { | ||
"queueID": "983068", | ||
"reused": false, | ||
"servletKey": "ZOWEUSER-123-aaaaaa", | ||
"timeout": false, | ||
"tsoData": Array [ | ||
Object { | ||
"DATA": "HELLOW exec processing has started.", | ||
"VERSION": "0100", | ||
}, | ||
Object { | ||
"DATA": "UNIX message queue id = 983068", | ||
"VERSION": "0100", | ||
}, | ||
Object { | ||
"DATA": "Input message type = 32772", | ||
"VERSION": "0100", | ||
}, | ||
Object { | ||
"DATA": "Output message type = 4", | ||
"VERSION": "0100", | ||
}, | ||
Object { | ||
"DATA": "Reading application input from the UNIX message queue.", | ||
"VERSION": "0100", | ||
}, | ||
], | ||
"version": undefined, | ||
} | ||
`; | ||
|
||
exports[`receive TSO app handler behavior should properly start TSO address space at an existing TSO address space 1`] = ` | ||
"{ | ||
\\"reused\\": false, | ||
\\"timeout\\": false, | ||
\\"servletKey\\": \\"ZOWEUSER-123-aaaaaa\\", | ||
\\"queueID\\": \\"983068\\", | ||
\\"tsoData\\": [ | ||
{ | ||
\\"VERSION\\": \\"0100\\", | ||
\\"DATA\\": \\"HELLOW exec processing has started.\\" | ||
}, | ||
{ | ||
\\"VERSION\\": \\"0100\\", | ||
\\"DATA\\": \\"UNIX message queue id = 983068\\" | ||
}, | ||
{ | ||
\\"VERSION\\": \\"0100\\", | ||
\\"DATA\\": \\"Input message type = 32772\\" | ||
}, | ||
{ | ||
\\"VERSION\\": \\"0100\\", | ||
\\"DATA\\": \\"Output message type = 4\\" | ||
}, | ||
{ | ||
\\"VERSION\\": \\"0100\\", | ||
\\"DATA\\": \\"Reading application input from the UNIX message queue.\\" | ||
} | ||
] | ||
}" | ||
"[33m[1m[22m[39m | ||
[33m[1mServlet Key: [22m[39mZOWEUSER-123-aaaaaa" | ||
`; | ||
|
||
exports[`receive TSO app handler behavior should properly start TSO address space at an existing TSO address space 2`] = ` | ||
"[33m[1mQueue ID: [22m[39m983068 | ||
" | ||
`; | ||
|
||
exports[`receive TSO app handler behavior should properly start TSO address space at an existing TSO address space 3`] = `"HELLOW exec processing has started."`; | ||
|
||
exports[`receive TSO app handler behavior should properly start TSO address space at an existing TSO address space 4`] = `"UNIX message queue id = 983068"`; | ||
|
||
exports[`receive TSO app handler behavior should properly start TSO address space at an existing TSO address space 5`] = `"Input message type = 32772"`; | ||
|
||
exports[`receive TSO app handler behavior should properly start TSO address space at an existing TSO address space 6`] = `"Output message type = 4"`; | ||
|
||
exports[`receive TSO app handler behavior should properly start TSO address space at an existing TSO address space 7`] = `"Reading application input from the UNIX message queue."`; | ||
|
||
exports[`receive TSO app handler behavior should properly start TSO address space at an existing TSO address space 8`] = ` | ||
Object { | ||
"queueID": "983068", | ||
"reused": false, | ||
"servletKey": "ZOWEUSER-123-aaaaaa", | ||
"timeout": false, | ||
"tsoData": Array [ | ||
Object { | ||
"DATA": "HELLOW exec processing has started.", | ||
"VERSION": "0100", | ||
}, | ||
Object { | ||
"DATA": "UNIX message queue id = 983068", | ||
"VERSION": "0100", | ||
}, | ||
Object { | ||
"DATA": "Input message type = 32772", | ||
"VERSION": "0100", | ||
}, | ||
Object { | ||
"DATA": "Output message type = 4", | ||
"VERSION": "0100", | ||
}, | ||
Object { | ||
"DATA": "Reading application input from the UNIX message queue.", | ||
"VERSION": "0100", | ||
}, | ||
], | ||
"version": undefined, | ||
} | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
packages/zostso/__tests__/__system__/__scripts__/send/send_tso_app_rfj.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
account=$1 | ||
host=$2 | ||
port=$3 | ||
user=$4 | ||
password=$5 | ||
ru=$6 | ||
servletKey=$7 | ||
message=$8 | ||
appKey=$9 | ||
|
||
zowe zos-tso send app --ak "$appKey" --sk "$servletKey" --message "$message" --account $account --host $host --port $port --user $user --password $password --ru $ru --rfj | ||
exit $? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
packages/zostso/__tests__/__system__/__scripts__/start/start_app_existing_as_rfj.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
account=$1 | ||
host=$2 | ||
port=$3 | ||
user=$4 | ||
password=$5 | ||
ru=$6 | ||
servletKey=$7 | ||
queueID=$8 | ||
file=$9 | ||
|
||
zowe zos-tso start app --app-key "test2" --startup "EXEC '$file'" --servlet-key $servletKey --queue-id $queueID --account $account --host $host --port $port --user $user --password $password --ru $ru --rfj | ||
exit $? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.