fix all system tests and any remaining behavior issues #369
Annotations
12 errors
Integration Tests:
__tests__/__integration__/cli/view/job-status-by-jobid/cli.view.job-status-by-jobid.test.ts#L38
expect(received).toMatchSnapshot()
Snapshot name: `view job-status-by-jobid command should display view job status by job id help 1`
- Snapshot - 4
+ Received + 4
@@ -12,16 +12,16 @@
not prevalidate the JOBID.
USAGE
-----
- zowe zos-ftp view job-status-by-jobid <jobid> [options]
+ zowe zos-ftp view job-status-by-jobid <jobId> [options]
POSITIONAL ARGUMENTS
--------------------
- jobid (string)
+ jobId (string)
The ID of the jobfor which you would like to list spool files
FTP CONNECTION OPTIONS
----------------------
@@ -173,9 +173,9 @@
================z/OS FTP VIEW JOB-STATUS-BY-JOBID HELP WITH RFJ===========
{
"success": true,
"exitCode": 0,
"message": "The help was constructed for command: job-status-by-jobid.",
- "stdout": "\n COMMAND NAME\n ------------\n\n job-status-by-jobid | jsbj\n\n DESCRIPTION\n -----------\n\n View status details of a single z/OS job on spool/JES queues. The command does\n not prevalidate the JOBID.\n\n USAGE\n -----\n\n zowe zos-ftp view job-status-by-jobid <jobid> [options]\n\n POSITIONAL ARGUMENTS\n --------------------\n\n jobid\t\t (string)\n\n The ID of the jobfor which you would like to list spool files\n\n FTP CONNECTION OPTIONS\n ----------------------\n\n --host | -H (string)\n\n The hostname or IP address of the z/OS server to connect to.\n\n --port | -P (number)\n\n The port of the z/OS FTP server.\n\n Default value: 21\n\n --user | -u (string)\n\n Username for authentication on z/OS\n\n --password | -p | --pass | --pw (string)\n\n Password to authenticate to FTP.\n\n --secure-ftp (boolean)\n\n Set to true for both control and data connection encryption, 'control' for\n control connection encryption only, or 'implicit' for implicitly encrypted\n control connection (this mode is deprecated in modern times, but usually uses\n port 990). Note: Unfortunately, this plugin's functionality only works with FTP\n and FTPS, not 'SFTP' which is FTP over SSH.\n\n Default value: true\n\n --connection-timeout | --ct (number)\n\n How long (in milliseconds) to wait for the control connection to be established.\n\n Default value: 10000\n\n TLS / SECURE CONNECTION OPTIONS\n -------------------------------\n\n --reject-unauthorized | --ru (boolean)\n\n Reject self-signed certificates. Only specify this if you are connecting to a\n secure FTP instance.\n\n --server-name | --sn (string)\n\n Server name for the SNI (Server Name Indication) TLS extension. Only specify if\n you are connecting securely\n\n PROFILE OPTIONS\n ---------------\n\n --zftp-profile | --zftp-p (string)\n\n The name of a (zftp) profile to load for this command execution.\n\n --base-profile | --base-p (string)\n\n The name of a (base) profile to load for this command execution.\n\n BASE CONNECTION OPTIONS\n -----------------------\n\n --token-type | --tt (string)\n\n The type of token to get and use for the API. Omit this option to use the\n default token type, which is provided by 'zowe auth login'.\n\n --token-value | --tv (string)\n\n The value of the token to pass to the API.\n\n --cert-file (local file path)\n\n The file path to a certificate file to use for authentication.\n\n Note: The CLI does not support certificate files that require a password. For\n more information, search Troubleshooting PEM Certificates in Zowe Docs.\n\n --cert-key-file (local file path)\n\n The file path to a certificate key file to use for authentication\n\n RESPONSE FORMAT OPTIONS\n -----------------------\n\n --response-format-filter | --rff (array)\n\n Filter (include) fields in the response. Accepts an array of field/property\n names to include in the output response. You can filter JSON objects properties\n OR table columns/fields. In addition, you can use this option in conjunction\n with '--response-format-type' to reduce the output of a command to a single\n field/proper
|
Integration Tests
Process completed with exit code 1.
|
Unit Tests:
__tests__/__unit__/cli/list/spool-files-by-jobid/SpoolFilesByJobid.Handler.test.ts#L39
expect(received).toMatchSnapshot()
Snapshot name: `List spool files by job id handler should return no spool file if the no spool file is not found. 2`
- Snapshot - 3
+ Received + 3
Object {
"fields": Array [
"id",
- "ddname",
- "procstep",
- "stepname",
+ "ddName",
+ "procStep",
+ "stepName",
],
"format": "table",
"output": Array [],
}
at __tests__/__unit__/cli/list/spool-files-by-jobid/SpoolFilesByJobid.Handler.test.ts:39:61
at fulfilled (__tests__/__unit__/cli/list/spool-files-by-jobid/SpoolFilesByJobid.Handler.test.ts:15:58)
|
Unit Tests:
__tests__/__unit__/cli/list/spool-files-by-jobid/SpoolFilesByJobid.Handler.test.ts#L69
expect(received).toMatchSnapshot()
Snapshot name: `List spool files by job id handler should return correct message if at least one spool file is found. 1`
- Snapshot - 3
+ Received + 3
@@ -1,11 +1,11 @@
Object {
"fields": Array [
"id",
- "ddname",
- "procstep",
- "stepname",
+ "ddName",
+ "procStep",
+ "stepName",
],
"format": "table",
"output": Array [
Object {
"name": "file1",
at __tests__/__unit__/cli/list/spool-files-by-jobid/SpoolFilesByJobid.Handler.test.ts:69:61
at fulfilled (__tests__/__unit__/cli/list/spool-files-by-jobid/SpoolFilesByJobid.Handler.test.ts:15:58)
|
Unit Tests:
__tests__/__unit__/cli/list/spool-files-by-jobid/SpoolFilesByJobid.Handler.test.ts#L71
expect(received).toMatchSnapshot()
Snapshot name: `List spool files by job id handler should return correct message if at least one spool file is found. 3`
- Snapshot - 3
+ Received + 3
@@ -1,11 +1,11 @@
Object {
"fields": Array [
"id",
- "ddname",
- "procstep",
- "stepname",
+ "ddName",
+ "procStep",
+ "stepName",
],
"format": "table",
"output": Array [
Object {
"name": "file1",
at __tests__/__unit__/cli/list/spool-files-by-jobid/SpoolFilesByJobid.Handler.test.ts:71:61
at fulfilled (__tests__/__unit__/cli/list/spool-files-by-jobid/SpoolFilesByJobid.Handler.test.ts:15:58)
|
Unit Tests:
__tests__/__unit__/cli/list/data-set/DataSet.Handler.test.ts#L36
expect(received).toMatchSnapshot()
Snapshot name: `List data set handler should return no data set if the data set is not found. 2`
- Snapshot - 1
+ Received + 1
Object {
"fields": Array [
- "dsname",
+ "name",
],
"format": "table",
"output": Array [],
}
at __tests__/__unit__/cli/list/data-set/DataSet.Handler.test.ts:36:61
at fulfilled (__tests__/__unit__/cli/list/data-set/DataSet.Handler.test.ts:15:58)
|
Unit Tests:
__tests__/__unit__/cli/list/data-set/DataSet.Handler.test.ts#L65
expect(received).toMatchSnapshot()
Snapshot name: `List data set handler should return correct message if the data set is found. 2`
- Snapshot - 1
+ Received + 1
@@ -1,8 +1,8 @@
Object {
"fields": Array [
- "dsname",
+ "name",
],
"format": "table",
"output": Array [
Object {
"name": "ds1",
at __tests__/__unit__/cli/list/data-set/DataSet.Handler.test.ts:65:61
at fulfilled (__tests__/__unit__/cli/list/data-set/DataSet.Handler.test.ts:15:58)
|
Unit Tests:
src/api/UssUtils.ts#L150
TypeError: connection.uploadFile is not a function
at Function.uploadFile (src/api/UssUtils.ts:150:26)
at src/api/UssUtils.ts:2760:39
at Object.<anonymous>.__awaiter (src/api/UssUtils.ts:2709:10)
at Function.uploadFile (src/api/UssUtils.ts:3046:12)
at UploadFileToUssFileHandler.uploadFile (src/cli/upload/file-to-uss-file/FileToUssFile.Handler.ts:25:24)
at src/cli/upload/file-to-uss-file/FileToUssFile.Handler.ts:816:40
at Object.<anonymous>.__awaiter (src/cli/upload/file-to-uss-file/FileToUssFile.Handler.ts:765:10)
at UploadFileToUssFileHandler.processFTP (src/cli/upload/file-to-uss-file/FileToUssFile.Handler.ts:837:12)
at __tests__/__unit__/cli/upload/file-to-uss-file/FileToUssFile.Handler.test.ts:36:23
at __tests__/__unit__/cli/upload/file-to-uss-file/FileToUssFile.Handler.test.ts:18:71
at Object.<anonymous>.__awaiter (__tests__/__unit__/cli/upload/file-to-uss-file/FileToUssFile.Handler.test.ts:14:12)
at Object.<anonymous> (__tests__/__unit__/cli/upload/file-to-uss-file/FileToUssFile.Handler.test.ts:19:78)
|
Unit Tests:
src/api/UssUtils.ts#L150
TypeError: connection.uploadFile is not a function
at Function.uploadFile (src/api/UssUtils.ts:150:26)
at src/api/UssUtils.ts:2760:39
at Object.<anonymous>.__awaiter (src/api/UssUtils.ts:2709:10)
at Function.uploadFile (src/api/UssUtils.ts:3046:12)
at UploadStdinToUssFileHandler.uploadFile (src/cli/upload/stdin-to-uss-file/StdinToUssFile.Handler.ts:28:24)
at fulfilled (src/cli/upload/stdin-to-uss-file/StdinToUssFile.Handler.ts:790:24)
|
Unit Tests:
src/api/JobUtils.ts#L126
TypeError: Cannot read properties of undefined (reading 'toUpperCase')
at Function.toUpperCase (src/api/JobUtils.ts:126:71)
at src/api/JobUtils.ts:1697:40
at Object.<anonymous>.__awaiter (src/api/JobUtils.ts:1646:10)
at Function.findJobByID (src/api/JobUtils.ts:1932:12)
at ViewJobStatusByJobIdHandler.findJobByID (src/cli/view/job-status-by-jobid/JobStatusByJobId.Handler.ts:19:43)
at src/cli/view/job-status-by-jobid/JobStatusByJobId.Handler.ts:772:39
at Object.<anonymous>.__awaiter (src/cli/view/job-status-by-jobid/JobStatusByJobId.Handler.ts:721:10)
at ViewJobStatusByJobIdHandler.processFTP (src/cli/view/job-status-by-jobid/JobStatusByJobId.Handler.ts:793:12)
at __tests__/__unit__/cli/view/job-status-by-jobid/JobStatusByJobId.Handler.test.ts:38:23
at __tests__/__unit__/cli/view/job-status-by-jobid/JobStatusByJobId.Handler.test.ts:18:71
at Object.<anonymous>.__awaiter (__tests__/__unit__/cli/view/job-status-by-jobid/JobStatusByJobId.Handler.test.ts:14:12)
at Object.<anonymous> (__tests__/__unit__/cli/view/job-status-by-jobid/JobStatusByJobId.Handler.test.ts:17:76)
|
Unit Tests:
src/api/UssUtils.ts#L98
TypeError: connection.deleteFile is not a function
at Function.deleteFile (src/api/UssUtils.ts:98:30)
at src/api/UssUtils.ts:2760:39
at Object.<anonymous>.__awaiter (src/api/UssUtils.ts:2709:10)
at Function.deleteFile (src/api/UssUtils.ts:2944:12)
at DeleteUSSFileHandler.deleteFile (src/cli/delete/uss-file/UssFile.Handler.ts:24:24)
at src/cli/delete/uss-file/UssFile.Handler.ts:794:39
at Object.<anonymous>.__awaiter (src/cli/delete/uss-file/UssFile.Handler.ts:743:10)
at DeleteUSSFileHandler.processFTP (src/cli/delete/uss-file/UssFile.Handler.ts:815:12)
at __tests__/__unit__/cli/delete/uss-file/UssFile.Handler.test.ts:30:23
at __tests__/__unit__/cli/delete/uss-file/UssFile.Handler.test.ts:18:71
at Object.<anonymous>.__awaiter (__tests__/__unit__/cli/delete/uss-file/UssFile.Handler.test.ts:14:12)
at Object.<anonymous> (__tests__/__unit__/cli/delete/uss-file/UssFile.Handler.test.ts:17:80)
|
Unit Tests:
__tests__/__unit__/cli/view/View.definition.test.ts#L20
expect(received).toMatchSnapshot()
Snapshot name: `View definition should match the snapshot 1`
- Snapshot - 1
+ Received + 1
@@ -106,11 +106,11 @@
"options": Array [],
"outputFormatOptions": true,
"positionals": Array [
Object {
"description": "The ID of the jobfor which you would like to list spool files",
- "name": "jobid",
+ "name": "jobId",
"required": true,
"type": "string",
},
],
"profile": Object {
at Object.<anonymous> (__tests__/__unit__/cli/view/View.definition.test.ts:20:32)
|
Loading