Skip to content

Add regex support to Search.dataSets #10624

Add regex support to Search.dataSets

Add regex support to Search.dataSets #10624

Triggered via pull request February 22, 2025 21:13
Status Failure
Total duration 36m 29s
Artifacts 12

zowe-cli.yml

on: pull_request
Matrix: test
release
0s
release
Fit to window
Zoom out
Zoom in

Annotations

18 errors
Search data sets › should display the help: packages/cli/__tests__/zosfiles/__integration__/search/ds/cli.files.search.ds.integration.test.ts#L37
expect(received).toMatchSnapshot() Snapshot name: `Search data sets should display the help 1` - Snapshot - 7 + Received + 18 @@ -71,10 +71,16 @@ --timeout | --to (number) The number of seconds to search before timing out. + --regex | --re (boolean) + + Whether the search string is a regular expression. + + Default value: false + --response-timeout | --rto (number) The maximum amount of time in seconds the z/OSMF Files TSO servlet should run before returning a response. Any request exceeding this amount of time will be terminated and return an error. Allowed values: 5 - 600 @@ -170,33 +176,38 @@ Display HTML help in browser EXAMPLES -------- - - Search all of IBMUSER's, data sets for 'ZOWE': + - Search all of IBMUSER's data sets for 'ZOWE': $ zowe zos-files search data-sets 'IBMUSER.*' 'ZOWE' - - Search all of IBMUSER's, data sets for 'ZOWE' in uppercase + - Search all of IBMUSER's data sets for 'ZOWE' in uppercase only: $ zowe zos-files search data-sets 'IBMUSER.*' 'ZOWE' --case-sensitive - - Search all of IBMUSER's, data sets for 'ZOWE', and time out + - Search all of IBMUSER's data sets for 'ZOWE', and time out in 1 minute: $ zowe zos-files search data-sets 'IBMUSER.*' 'ZOWE' --timeout 60 - - Search all of IBMUSER's, data sets for 'ZOWE', and perform - 8 parallel tasks: + - Search all of IBMUSER's data sets for 'ZOWE', and perform 8 + parallel tasks: $ zowe zos-files search data-sets 'IBMUSER.*' 'ZOWE' --max-concurrent-requests 8 + - Search all of IBMUSER's data sets using a regular + expression: + + $ zowe zos-files search data-sets 'IBMUSER.*' 'Z([A-Za-z]){3}' --regex + ================Z/OS FILES SEARCH DATA SETS HELP WITH RFJ=========== { "success": true, "exitCode": 0, "message": "The help was constructed for command: data-sets.", - "stdout": "\n COMMAND NAME\n ------------\n\n data-sets | ds\n\n DESCRIPTION\n -----------\n\n Search all data sets and PDS members that match the data set name for a search\n term.\n\n USAGE\n -----\n\n zowe zos-files search data-sets <pattern> <searchString> [options]\n\n POSITIONAL ARGUMENTS\n --------------------\n\n pattern\t\t (string)\n\n The pattern to match data sets against. Also known as 'DSLEVEL'. The following\n special sequences can be used in the pattern:\n %: matches any single character\n *: matches any number of characters within a data set name qualifier (e.g.\n \"ibmuser.j*.old\" matches \"ibmuser.jcl.old\" but not \"ibmuser.jcl.very.old\")\n **: matches any number of characters within any number of data set name\n qualifiers (e.g. \"ibmuser.**.old\" matches both \"ibmuser.jcl.old\" and\n \"ibmuser.jcl.very.old\")\n However, the pattern cannot begin with any of these sequences. You can specify\n multiple patterns separated by commas, for example\n \"ibmuser.**.cntl,ibmuser.**.jcl\"\n\n searchString\t\t (string)\n\n The parameter to search for.\n\n OPTIONS\n -------\n\n --case-sensitive | --cs (boolean)\n\n The search should be case sensitive\n\n Default value: false\n\n --encoding | --ec (string)\n\n Search the file content with encoding mode, which means that data conversion is\n performed using the file encoding specified.\n\n --mainframe-search | --ms (boolean)\n\n Perform a preliminary search on the mainframe, reducing network traffic.\n However, this option does not work with data sets that contain binary data. This\n option should be omitted if any data sets may be in binary format. Failure to do\n so may result in an incomplete set of search results.\n\n Default value: false\n\n --max-concurrent-requests | --mcr (number)\n\n Specifies the maximum number of concurrent z/OSMF REST API requests to search\n files. Increasing the value results in faster searches. However, increasing the\n value increases resource consumption on z/OS and
test (20.x, macos-14)
Process completed with exit code 1.
Search data sets › should display the help: packages/cli/__tests__/zosfiles/__integration__/search/ds/cli.files.search.ds.integration.test.ts#L37
expect(received).toMatchSnapshot() Snapshot name: `Search data sets should display the help 1` - Snapshot - 7 + Received + 18 @@ -71,10 +71,16 @@ --timeout | --to (number) The number of seconds to search before timing out. + --regex | --re (boolean) + + Whether the search string is a regular expression. + + Default value: false + --response-timeout | --rto (number) The maximum amount of time in seconds the z/OSMF Files TSO servlet should run before returning a response. Any request exceeding this amount of time will be terminated and return an error. Allowed values: 5 - 600 @@ -170,33 +176,38 @@ Display HTML help in browser EXAMPLES -------- - - Search all of IBMUSER's, data sets for 'ZOWE': + - Search all of IBMUSER's data sets for 'ZOWE': $ zowe zos-files search data-sets 'IBMUSER.*' 'ZOWE' - - Search all of IBMUSER's, data sets for 'ZOWE' in uppercase + - Search all of IBMUSER's data sets for 'ZOWE' in uppercase only: $ zowe zos-files search data-sets 'IBMUSER.*' 'ZOWE' --case-sensitive - - Search all of IBMUSER's, data sets for 'ZOWE', and time out + - Search all of IBMUSER's data sets for 'ZOWE', and time out in 1 minute: $ zowe zos-files search data-sets 'IBMUSER.*' 'ZOWE' --timeout 60 - - Search all of IBMUSER's, data sets for 'ZOWE', and perform - 8 parallel tasks: + - Search all of IBMUSER's data sets for 'ZOWE', and perform 8 + parallel tasks: $ zowe zos-files search data-sets 'IBMUSER.*' 'ZOWE' --max-concurrent-requests 8 + - Search all of IBMUSER's data sets using a regular + expression: + + $ zowe zos-files search data-sets 'IBMUSER.*' 'Z([A-Za-z]){3}' --regex + ================Z/OS FILES SEARCH DATA SETS HELP WITH RFJ=========== { "success": true, "exitCode": 0, "message": "The help was constructed for command: data-sets.", - "stdout": "\n COMMAND NAME\n ------------\n\n data-sets | ds\n\n DESCRIPTION\n -----------\n\n Search all data sets and PDS members that match the data set name for a search\n term.\n\n USAGE\n -----\n\n zowe zos-files search data-sets <pattern> <searchString> [options]\n\n POSITIONAL ARGUMENTS\n --------------------\n\n pattern\t\t (string)\n\n The pattern to match data sets against. Also known as 'DSLEVEL'. The following\n special sequences can be used in the pattern:\n %: matches any single character\n *: matches any number of characters within a data set name qualifier (e.g.\n \"ibmuser.j*.old\" matches \"ibmuser.jcl.old\" but not \"ibmuser.jcl.very.old\")\n **: matches any number of characters within any number of data set name\n qualifiers (e.g. \"ibmuser.**.old\" matches both \"ibmuser.jcl.old\" and\n \"ibmuser.jcl.very.old\")\n However, the pattern cannot begin with any of these sequences. You can specify\n multiple patterns separated by commas, for example\n \"ibmuser.**.cntl,ibmuser.**.jcl\"\n\n searchString\t\t (string)\n\n The parameter to search for.\n\n OPTIONS\n -------\n\n --case-sensitive | --cs (boolean)\n\n The search should be case sensitive\n\n Default value: false\n\n --encoding | --ec (string)\n\n Search the file content with encoding mode, which means that data conversion is\n performed using the file encoding specified.\n\n --mainframe-search | --ms (boolean)\n\n Perform a preliminary search on the mainframe, reducing network traffic.\n However, this option does not work with data sets that contain binary data. This\n option should be omitted if any data sets may be in binary format. Failure to do\n so may result in an incomplete set of search results.\n\n Default value: false\n\n --max-concurrent-requests | --mcr (number)\n\n Specifies the maximum number of concurrent z/OSMF REST API requests to search\n files. Increasing the value results in faster searches. However, increasing the\n value increases resource consumption on z/OS and
test (18.x, macos-14)
Process completed with exit code 1.
Search data sets › should display the help: packages/cli/__tests__/zosfiles/__integration__/search/ds/cli.files.search.ds.integration.test.ts#L37
expect(received).toMatchSnapshot() Snapshot name: `Search data sets should display the help 1` - Snapshot - 7 + Received + 18 @@ -71,10 +71,16 @@ --timeout | --to (number) The number of seconds to search before timing out. + --regex | --re (boolean) + + Whether the search string is a regular expression. + + Default value: false + --response-timeout | --rto (number) The maximum amount of time in seconds the z/OSMF Files TSO servlet should run before returning a response. Any request exceeding this amount of time will be terminated and return an error. Allowed values: 5 - 600 @@ -170,33 +176,38 @@ Display HTML help in browser EXAMPLES -------- - - Search all of IBMUSER's, data sets for 'ZOWE': + - Search all of IBMUSER's data sets for 'ZOWE': $ zowe zos-files search data-sets 'IBMUSER.*' 'ZOWE' - - Search all of IBMUSER's, data sets for 'ZOWE' in uppercase + - Search all of IBMUSER's data sets for 'ZOWE' in uppercase only: $ zowe zos-files search data-sets 'IBMUSER.*' 'ZOWE' --case-sensitive - - Search all of IBMUSER's, data sets for 'ZOWE', and time out + - Search all of IBMUSER's data sets for 'ZOWE', and time out in 1 minute: $ zowe zos-files search data-sets 'IBMUSER.*' 'ZOWE' --timeout 60 - - Search all of IBMUSER's, data sets for 'ZOWE', and perform - 8 parallel tasks: + - Search all of IBMUSER's data sets for 'ZOWE', and perform 8 + parallel tasks: $ zowe zos-files search data-sets 'IBMUSER.*' 'ZOWE' --max-concurrent-requests 8 + - Search all of IBMUSER's data sets using a regular + expression: + + $ zowe zos-files search data-sets 'IBMUSER.*' 'Z([A-Za-z]){3}' --regex + ================Z/OS FILES SEARCH DATA SETS HELP WITH RFJ=========== { "success": true, "exitCode": 0, "message": "The help was constructed for command: data-sets.", - "stdout": "\n COMMAND NAME\n ------------\n\n data-sets | ds\n\n DESCRIPTION\n -----------\n\n Search all data sets and PDS members that match the data set name for a search\n term.\n\n USAGE\n -----\n\n zowe zos-files search data-sets <pattern> <searchString> [options]\n\n POSITIONAL ARGUMENTS\n --------------------\n\n pattern\t\t (string)\n\n The pattern to match data sets against. Also known as 'DSLEVEL'. The following\n special sequences can be used in the pattern:\n %: matches any single character\n *: matches any number of characters within a data set name qualifier (e.g.\n \"ibmuser.j*.old\" matches \"ibmuser.jcl.old\" but not \"ibmuser.jcl.very.old\")\n **: matches any number of characters within any number of data set name\n qualifiers (e.g. \"ibmuser.**.old\" matches both \"ibmuser.jcl.old\" and\n \"ibmuser.jcl.very.old\")\n However, the pattern cannot begin with any of these sequences. You can specify\n multiple patterns separated by commas, for example\n \"ibmuser.**.cntl,ibmuser.**.jcl\"\n\n searchString\t\t (string)\n\n The parameter to search for.\n\n OPTIONS\n -------\n\n --case-sensitive | --cs (boolean)\n\n The search should be case sensitive\n\n Default value: false\n\n --encoding | --ec (string)\n\n Search the file content with encoding mode, which means that data conversion is\n performed using the file encoding specified.\n\n --mainframe-search | --ms (boolean)\n\n Perform a preliminary search on the mainframe, reducing network traffic.\n However, this option does not work with data sets that contain binary data. This\n option should be omitted if any data sets may be in binary format. Failure to do\n so may result in an incomplete set of search results.\n\n Default value: false\n\n --max-concurrent-requests | --mcr (number)\n\n Specifies the maximum number of concurrent z/OSMF REST API requests to search\n files. Increasing the value results in faster searches. However, increasing the\n value increases resource consumption on z/OS and
test (22.x, macos-14)
Process completed with exit code 1.
Search data sets › should display the help: packages/cli/__tests__/zosfiles/__integration__/search/ds/cli.files.search.ds.integration.test.ts#L37
expect(received).toMatchSnapshot() Snapshot name: `Search data sets should display the help 1` - Snapshot - 7 + Received + 18 @@ -71,10 +71,16 @@ --timeout | --to (number) The number of seconds to search before timing out. + --regex | --re (boolean) + + Whether the search string is a regular expression. + + Default value: false + --response-timeout | --rto (number) The maximum amount of time in seconds the z/OSMF Files TSO servlet should run before returning a response. Any request exceeding this amount of time will be terminated and return an error. Allowed values: 5 - 600 @@ -170,33 +176,38 @@ Display HTML help in browser EXAMPLES -------- - - Search all of IBMUSER's, data sets for 'ZOWE': + - Search all of IBMUSER's data sets for 'ZOWE': $ zowe zos-files search data-sets 'IBMUSER.*' 'ZOWE' - - Search all of IBMUSER's, data sets for 'ZOWE' in uppercase + - Search all of IBMUSER's data sets for 'ZOWE' in uppercase only: $ zowe zos-files search data-sets 'IBMUSER.*' 'ZOWE' --case-sensitive - - Search all of IBMUSER's, data sets for 'ZOWE', and time out + - Search all of IBMUSER's data sets for 'ZOWE', and time out in 1 minute: $ zowe zos-files search data-sets 'IBMUSER.*' 'ZOWE' --timeout 60 - - Search all of IBMUSER's, data sets for 'ZOWE', and perform - 8 parallel tasks: + - Search all of IBMUSER's data sets for 'ZOWE', and perform 8 + parallel tasks: $ zowe zos-files search data-sets 'IBMUSER.*' 'ZOWE' --max-concurrent-requests 8 + - Search all of IBMUSER's data sets using a regular + expression: + + $ zowe zos-files search data-sets 'IBMUSER.*' 'Z([A-Za-z]){3}' --regex + ================Z/OS FILES SEARCH DATA SETS HELP WITH RFJ=========== { "success": true, "exitCode": 0, "message": "The help was constructed for command: data-sets.", - "stdout": "\n COMMAND NAME\n ------------\n\n data-sets | ds\n\n DESCRIPTION\n -----------\n\n Search all data sets and PDS members that match the data set name for a search\n term.\n\n USAGE\n -----\n\n zowe zos-files search data-sets <pattern> <searchString> [options]\n\n POSITIONAL ARGUMENTS\n --------------------\n\n pattern\t\t (string)\n\n The pattern to match data sets against. Also known as 'DSLEVEL'. The following\n special sequences can be used in the pattern:\n %: matches any single character\n *: matches any number of characters within a data set name qualifier (e.g.\n \"ibmuser.j*.old\" matches \"ibmuser.jcl.old\" but not \"ibmuser.jcl.very.old\")\n **: matches any number of characters within any number of data set name\n qualifiers (e.g. \"ibmuser.**.old\" matches both \"ibmuser.jcl.old\" and\n \"ibmuser.jcl.very.old\")\n However, the pattern cannot begin with any of these sequences. You can specify\n multiple patterns separated by commas, for example\n \"ibmuser.**.cntl,ibmuser.**.jcl\"\n\n searchString\t\t (string)\n\n The parameter to search for.\n\n OPTIONS\n -------\n\n --case-sensitive | --cs (boolean)\n\n The search should be case sensitive\n\n Default value: false\n\n --encoding | --ec (string)\n\n Search the file content with encoding mode, which means that data conversion is\n performed using the file encoding specified.\n\n --mainframe-search | --ms (boolean)\n\n Perform a preliminary search on the mainframe, reducing network traffic.\n However, this option does not work with data sets that contain binary data. This\n option should be omitted if any data sets may be in binary format. Failure to do\n so may result in an incomplete set of search results.\n\n Default value: false\n\n --max-concurrent-requests | --mcr (number)\n\n Specifies the maximum number of concurrent z/OSMF REST API requests to search\n files. Increasing the value results in faster searches. However, increasing the\n value increases resource consumption on z/OS and
test (20.x, ubuntu-22.04)
Process completed with exit code 1.
Search data sets › should display the help: packages/cli/__tests__/zosfiles/__integration__/search/ds/cli.files.search.ds.integration.test.ts#L37
expect(received).toMatchSnapshot() Snapshot name: `Search data sets should display the help 1` - Snapshot - 7 + Received + 18 @@ -71,10 +71,16 @@ --timeout | --to (number) The number of seconds to search before timing out. + --regex | --re (boolean) + + Whether the search string is a regular expression. + + Default value: false + --response-timeout | --rto (number) The maximum amount of time in seconds the z/OSMF Files TSO servlet should run before returning a response. Any request exceeding this amount of time will be terminated and return an error. Allowed values: 5 - 600 @@ -170,33 +176,38 @@ Display HTML help in browser EXAMPLES -------- - - Search all of IBMUSER's, data sets for 'ZOWE': + - Search all of IBMUSER's data sets for 'ZOWE': $ zowe zos-files search data-sets 'IBMUSER.*' 'ZOWE' - - Search all of IBMUSER's, data sets for 'ZOWE' in uppercase + - Search all of IBMUSER's data sets for 'ZOWE' in uppercase only: $ zowe zos-files search data-sets 'IBMUSER.*' 'ZOWE' --case-sensitive - - Search all of IBMUSER's, data sets for 'ZOWE', and time out + - Search all of IBMUSER's data sets for 'ZOWE', and time out in 1 minute: $ zowe zos-files search data-sets 'IBMUSER.*' 'ZOWE' --timeout 60 - - Search all of IBMUSER's, data sets for 'ZOWE', and perform - 8 parallel tasks: + - Search all of IBMUSER's data sets for 'ZOWE', and perform 8 + parallel tasks: $ zowe zos-files search data-sets 'IBMUSER.*' 'ZOWE' --max-concurrent-requests 8 + - Search all of IBMUSER's data sets using a regular + expression: + + $ zowe zos-files search data-sets 'IBMUSER.*' 'Z([A-Za-z]){3}' --regex + ================Z/OS FILES SEARCH DATA SETS HELP WITH RFJ=========== { "success": true, "exitCode": 0, "message": "The help was constructed for command: data-sets.", - "stdout": "\n COMMAND NAME\n ------------\n\n data-sets | ds\n\n DESCRIPTION\n -----------\n\n Search all data sets and PDS members that match the data set name for a search\n term.\n\n USAGE\n -----\n\n zowe zos-files search data-sets <pattern> <searchString> [options]\n\n POSITIONAL ARGUMENTS\n --------------------\n\n pattern\t\t (string)\n\n The pattern to match data sets against. Also known as 'DSLEVEL'. The following\n special sequences can be used in the pattern:\n %: matches any single character\n *: matches any number of characters within a data set name qualifier (e.g.\n \"ibmuser.j*.old\" matches \"ibmuser.jcl.old\" but not \"ibmuser.jcl.very.old\")\n **: matches any number of characters within any number of data set name\n qualifiers (e.g. \"ibmuser.**.old\" matches both \"ibmuser.jcl.old\" and\n \"ibmuser.jcl.very.old\")\n However, the pattern cannot begin with any of these sequences. You can specify\n multiple patterns separated by commas, for example\n \"ibmuser.**.cntl,ibmuser.**.jcl\"\n\n searchString\t\t (string)\n\n The parameter to search for.\n\n OPTIONS\n -------\n\n --case-sensitive | --cs (boolean)\n\n The search should be case sensitive\n\n Default value: false\n\n --encoding | --ec (string)\n\n Search the file content with encoding mode, which means that data conversion is\n performed using the file encoding specified.\n\n --mainframe-search | --ms (boolean)\n\n Perform a preliminary search on the mainframe, reducing network traffic.\n However, this option does not work with data sets that contain binary data. This\n option should be omitted if any data sets may be in binary format. Failure to do\n so may result in an incomplete set of search results.\n\n Default value: false\n\n --max-concurrent-requests | --mcr (number)\n\n Specifies the maximum number of concurrent z/OSMF REST API requests to search\n files. Increasing the value results in faster searches. However, increasing the\n value increases resource consumption on z/OS and
test (22.x, ubuntu-22.04)
Process completed with exit code 1.
Search data sets › should display the help: packages/cli/__tests__/zosfiles/__integration__/search/ds/cli.files.search.ds.integration.test.ts#L37
expect(received).toMatchSnapshot() Snapshot name: `Search data sets should display the help 1` - Snapshot - 7 + Received + 18 @@ -71,10 +71,16 @@ --timeout | --to (number) The number of seconds to search before timing out. + --regex | --re (boolean) + + Whether the search string is a regular expression. + + Default value: false + --response-timeout | --rto (number) The maximum amount of time in seconds the z/OSMF Files TSO servlet should run before returning a response. Any request exceeding this amount of time will be terminated and return an error. Allowed values: 5 - 600 @@ -170,33 +176,38 @@ Display HTML help in browser EXAMPLES -------- - - Search all of IBMUSER's, data sets for 'ZOWE': + - Search all of IBMUSER's data sets for 'ZOWE': $ zowe zos-files search data-sets 'IBMUSER.*' 'ZOWE' - - Search all of IBMUSER's, data sets for 'ZOWE' in uppercase + - Search all of IBMUSER's data sets for 'ZOWE' in uppercase only: $ zowe zos-files search data-sets 'IBMUSER.*' 'ZOWE' --case-sensitive - - Search all of IBMUSER's, data sets for 'ZOWE', and time out + - Search all of IBMUSER's data sets for 'ZOWE', and time out in 1 minute: $ zowe zos-files search data-sets 'IBMUSER.*' 'ZOWE' --timeout 60 - - Search all of IBMUSER's, data sets for 'ZOWE', and perform - 8 parallel tasks: + - Search all of IBMUSER's data sets for 'ZOWE', and perform 8 + parallel tasks: $ zowe zos-files search data-sets 'IBMUSER.*' 'ZOWE' --max-concurrent-requests 8 + - Search all of IBMUSER's data sets using a regular + expression: + + $ zowe zos-files search data-sets 'IBMUSER.*' 'Z([A-Za-z]){3}' --regex + ================Z/OS FILES SEARCH DATA SETS HELP WITH RFJ=========== { "success": true, "exitCode": 0, "message": "The help was constructed for command: data-sets.", - "stdout": "\n COMMAND NAME\n ------------\n\n data-sets | ds\n\n DESCRIPTION\n -----------\n\n Search all data sets and PDS members that match the data set name for a search\n term.\n\n USAGE\n -----\n\n zowe zos-files search data-sets <pattern> <searchString> [options]\n\n POSITIONAL ARGUMENTS\n --------------------\n\n pattern\t\t (string)\n\n The pattern to match data sets against. Also known as 'DSLEVEL'. The following\n special sequences can be used in the pattern:\n %: matches any single character\n *: matches any number of characters within a data set name qualifier (e.g.\n \"ibmuser.j*.old\" matches \"ibmuser.jcl.old\" but not \"ibmuser.jcl.very.old\")\n **: matches any number of characters within any number of data set name\n qualifiers (e.g. \"ibmuser.**.old\" matches both \"ibmuser.jcl.old\" and\n \"ibmuser.jcl.very.old\")\n However, the pattern cannot begin with any of these sequences. You can specify\n multiple patterns separated by commas, for example\n \"ibmuser.**.cntl,ibmuser.**.jcl\"\n\n searchString\t\t (string)\n\n The parameter to search for.\n\n OPTIONS\n -------\n\n --case-sensitive | --cs (boolean)\n\n The search should be case sensitive\n\n Default value: false\n\n --encoding | --ec (string)\n\n Search the file content with encoding mode, which means that data conversion is\n performed using the file encoding specified.\n\n --mainframe-search | --ms (boolean)\n\n Perform a preliminary search on the mainframe, reducing network traffic.\n However, this option does not work with data sets that contain binary data. This\n option should be omitted if any data sets may be in binary format. Failure to do\n so may result in an incomplete set of search results.\n\n Default value: false\n\n --max-concurrent-requests | --mcr (number)\n\n Specifies the maximum number of concurrent z/OSMF REST API requests to search\n files. Increasing the value results in faster searches. However, increasing the\n value increases resource consumption on z/OS and
test (18.x, ubuntu-22.04)
Process completed with exit code 1.
Search data sets › should display the help: packages/cli/__tests__/zosfiles/__integration__/search/ds/cli.files.search.ds.integration.test.ts#L37
expect(received).toMatchSnapshot() Snapshot name: `Search data sets should display the help 1` - Snapshot - 7 + Received + 18 @@ -71,10 +71,16 @@ --timeout | --to (number) The number of seconds to search before timing out. + --regex | --re (boolean) + + Whether the search string is a regular expression. + + Default value: false + --response-timeout | --rto (number) The maximum amount of time in seconds the z/OSMF Files TSO servlet should run before returning a response. Any request exceeding this amount of time will be terminated and return an error. Allowed values: 5 - 600 @@ -170,33 +176,38 @@ Display HTML help in browser EXAMPLES -------- - - Search all of IBMUSER's, data sets for 'ZOWE': + - Search all of IBMUSER's data sets for 'ZOWE': $ zowe zos-files search data-sets 'IBMUSER.*' 'ZOWE' - - Search all of IBMUSER's, data sets for 'ZOWE' in uppercase + - Search all of IBMUSER's data sets for 'ZOWE' in uppercase only: $ zowe zos-files search data-sets 'IBMUSER.*' 'ZOWE' --case-sensitive - - Search all of IBMUSER's, data sets for 'ZOWE', and time out + - Search all of IBMUSER's data sets for 'ZOWE', and time out in 1 minute: $ zowe zos-files search data-sets 'IBMUSER.*' 'ZOWE' --timeout 60 - - Search all of IBMUSER's, data sets for 'ZOWE', and perform - 8 parallel tasks: + - Search all of IBMUSER's data sets for 'ZOWE', and perform 8 + parallel tasks: $ zowe zos-files search data-sets 'IBMUSER.*' 'ZOWE' --max-concurrent-requests 8 + - Search all of IBMUSER's data sets using a regular + expression: + + $ zowe zos-files search data-sets 'IBMUSER.*' 'Z([A-Za-z]){3}' --regex + ================Z/OS FILES SEARCH DATA SETS HELP WITH RFJ=========== { "success": true, "exitCode": 0, "message": "The help was constructed for command: data-sets.", - "stdout": "\n COMMAND NAME\n ------------\n\n data-sets | ds\n\n DESCRIPTION\n -----------\n\n Search all data sets and PDS members that match the data set name for a search\n term.\n\n USAGE\n -----\n\n zowe zos-files search data-sets <pattern> <searchString> [options]\n\n POSITIONAL ARGUMENTS\n --------------------\n\n pattern\t\t (string)\n\n The pattern to match data sets against. Also known as 'DSLEVEL'. The following\n special sequences can be used in the pattern:\n %: matches any single character\n *: matches any number of characters within a data set name qualifier (e.g.\n \"ibmuser.j*.old\" matches \"ibmuser.jcl.old\" but not \"ibmuser.jcl.very.old\")\n **: matches any number of characters within any number of data set name\n qualifiers (e.g. \"ibmuser.**.old\" matches both \"ibmuser.jcl.old\" and\n \"ibmuser.jcl.very.old\")\n However, the pattern cannot begin with any of these sequences. You can specify\n multiple patterns separated by commas, for example\n \"ibmuser.**.cntl,ibmuser.**.jcl\"\n\n searchString\t\t (string)\n\n The parameter to search for.\n\n OPTIONS\n -------\n\n --case-sensitive | --cs (boolean)\n\n The search should be case sensitive\n\n Default value: false\n\n --encoding | --ec (string)\n\n Search the file content with encoding mode, which means that data conversion is\n performed using the file encoding specified.\n\n --mainframe-search | --ms (boolean)\n\n Perform a preliminary search on the mainframe, reducing network traffic.\n However, this option does not work with data sets that contain binary data. This\n option should be omitted if any data sets may be in binary format. Failure to do\n so may result in an incomplete set of search results.\n\n Default value: false\n\n --max-concurrent-requests | --mcr (number)\n\n Specifies the maximum number of concurrent z/OSMF REST API requests to search\n files. Increasing the value results in faster searches. However, increasing the\n value increases resource consumption on z/OS and
test (20.x, windows-latest)
Process completed with exit code 1.
Search data sets › should display the help: packages/cli/__tests__/zosfiles/__integration__/search/ds/cli.files.search.ds.integration.test.ts#L37
expect(received).toMatchSnapshot() Snapshot name: `Search data sets should display the help 1` - Snapshot - 7 + Received + 18 @@ -71,10 +71,16 @@ --timeout | --to (number) The number of seconds to search before timing out. + --regex | --re (boolean) + + Whether the search string is a regular expression. + + Default value: false + --response-timeout | --rto (number) The maximum amount of time in seconds the z/OSMF Files TSO servlet should run before returning a response. Any request exceeding this amount of time will be terminated and return an error. Allowed values: 5 - 600 @@ -170,33 +176,38 @@ Display HTML help in browser EXAMPLES -------- - - Search all of IBMUSER's, data sets for 'ZOWE': + - Search all of IBMUSER's data sets for 'ZOWE': $ zowe zos-files search data-sets 'IBMUSER.*' 'ZOWE' - - Search all of IBMUSER's, data sets for 'ZOWE' in uppercase + - Search all of IBMUSER's data sets for 'ZOWE' in uppercase only: $ zowe zos-files search data-sets 'IBMUSER.*' 'ZOWE' --case-sensitive - - Search all of IBMUSER's, data sets for 'ZOWE', and time out + - Search all of IBMUSER's data sets for 'ZOWE', and time out in 1 minute: $ zowe zos-files search data-sets 'IBMUSER.*' 'ZOWE' --timeout 60 - - Search all of IBMUSER's, data sets for 'ZOWE', and perform - 8 parallel tasks: + - Search all of IBMUSER's data sets for 'ZOWE', and perform 8 + parallel tasks: $ zowe zos-files search data-sets 'IBMUSER.*' 'ZOWE' --max-concurrent-requests 8 + - Search all of IBMUSER's data sets using a regular + expression: + + $ zowe zos-files search data-sets 'IBMUSER.*' 'Z([A-Za-z]){3}' --regex + ================Z/OS FILES SEARCH DATA SETS HELP WITH RFJ=========== { "success": true, "exitCode": 0, "message": "The help was constructed for command: data-sets.", - "stdout": "\n COMMAND NAME\n ------------\n\n data-sets | ds\n\n DESCRIPTION\n -----------\n\n Search all data sets and PDS members that match the data set name for a search\n term.\n\n USAGE\n -----\n\n zowe zos-files search data-sets <pattern> <searchString> [options]\n\n POSITIONAL ARGUMENTS\n --------------------\n\n pattern\t\t (string)\n\n The pattern to match data sets against. Also known as 'DSLEVEL'. The following\n special sequences can be used in the pattern:\n %: matches any single character\n *: matches any number of characters within a data set name qualifier (e.g.\n \"ibmuser.j*.old\" matches \"ibmuser.jcl.old\" but not \"ibmuser.jcl.very.old\")\n **: matches any number of characters within any number of data set name\n qualifiers (e.g. \"ibmuser.**.old\" matches both \"ibmuser.jcl.old\" and\n \"ibmuser.jcl.very.old\")\n However, the pattern cannot begin with any of these sequences. You can specify\n multiple patterns separated by commas, for example\n \"ibmuser.**.cntl,ibmuser.**.jcl\"\n\n searchString\t\t (string)\n\n The parameter to search for.\n\n OPTIONS\n -------\n\n --case-sensitive | --cs (boolean)\n\n The search should be case sensitive\n\n Default value: false\n\n --encoding | --ec (string)\n\n Search the file content with encoding mode, which means that data conversion is\n performed using the file encoding specified.\n\n --mainframe-search | --ms (boolean)\n\n Perform a preliminary search on the mainframe, reducing network traffic.\n However, this option does not work with data sets that contain binary data. This\n option should be omitted if any data sets may be in binary format. Failure to do\n so may result in an incomplete set of search results.\n\n Default value: false\n\n --max-concurrent-requests | --mcr (number)\n\n Specifies the maximum number of concurrent z/OSMF REST API requests to search\n files. Increasing the value results in faster searches. However, increasing the\n value increases resource consumption on z/OS and
test (22.x, windows-latest)
Process completed with exit code 1.
Search data sets › should display the help: packages/cli/__tests__/zosfiles/__integration__/search/ds/cli.files.search.ds.integration.test.ts#L37
expect(received).toMatchSnapshot() Snapshot name: `Search data sets should display the help 1` - Snapshot - 7 + Received + 18 @@ -71,10 +71,16 @@ --timeout | --to (number) The number of seconds to search before timing out. + --regex | --re (boolean) + + Whether the search string is a regular expression. + + Default value: false + --response-timeout | --rto (number) The maximum amount of time in seconds the z/OSMF Files TSO servlet should run before returning a response. Any request exceeding this amount of time will be terminated and return an error. Allowed values: 5 - 600 @@ -170,33 +176,38 @@ Display HTML help in browser EXAMPLES -------- - - Search all of IBMUSER's, data sets for 'ZOWE': + - Search all of IBMUSER's data sets for 'ZOWE': $ zowe zos-files search data-sets 'IBMUSER.*' 'ZOWE' - - Search all of IBMUSER's, data sets for 'ZOWE' in uppercase + - Search all of IBMUSER's data sets for 'ZOWE' in uppercase only: $ zowe zos-files search data-sets 'IBMUSER.*' 'ZOWE' --case-sensitive - - Search all of IBMUSER's, data sets for 'ZOWE', and time out + - Search all of IBMUSER's data sets for 'ZOWE', and time out in 1 minute: $ zowe zos-files search data-sets 'IBMUSER.*' 'ZOWE' --timeout 60 - - Search all of IBMUSER's, data sets for 'ZOWE', and perform - 8 parallel tasks: + - Search all of IBMUSER's data sets for 'ZOWE', and perform 8 + parallel tasks: $ zowe zos-files search data-sets 'IBMUSER.*' 'ZOWE' --max-concurrent-requests 8 + - Search all of IBMUSER's data sets using a regular + expression: + + $ zowe zos-files search data-sets 'IBMUSER.*' 'Z([A-Za-z]){3}' --regex + ================Z/OS FILES SEARCH DATA SETS HELP WITH RFJ=========== { "success": true, "exitCode": 0, "message": "The help was constructed for command: data-sets.", - "stdout": "\n COMMAND NAME\n ------------\n\n data-sets | ds\n\n DESCRIPTION\n -----------\n\n Search all data sets and PDS members that match the data set name for a search\n term.\n\n USAGE\n -----\n\n zowe zos-files search data-sets <pattern> <searchString> [options]\n\n POSITIONAL ARGUMENTS\n --------------------\n\n pattern\t\t (string)\n\n The pattern to match data sets against. Also known as 'DSLEVEL'. The following\n special sequences can be used in the pattern:\n %: matches any single character\n *: matches any number of characters within a data set name qualifier (e.g.\n \"ibmuser.j*.old\" matches \"ibmuser.jcl.old\" but not \"ibmuser.jcl.very.old\")\n **: matches any number of characters within any number of data set name\n qualifiers (e.g. \"ibmuser.**.old\" matches both \"ibmuser.jcl.old\" and\n \"ibmuser.jcl.very.old\")\n However, the pattern cannot begin with any of these sequences. You can specify\n multiple patterns separated by commas, for example\n \"ibmuser.**.cntl,ibmuser.**.jcl\"\n\n searchString\t\t (string)\n\n The parameter to search for.\n\n OPTIONS\n -------\n\n --case-sensitive | --cs (boolean)\n\n The search should be case sensitive\n\n Default value: false\n\n --encoding | --ec (string)\n\n Search the file content with encoding mode, which means that data conversion is\n performed using the file encoding specified.\n\n --mainframe-search | --ms (boolean)\n\n Perform a preliminary search on the mainframe, reducing network traffic.\n However, this option does not work with data sets that contain binary data. This\n option should be omitted if any data sets may be in binary format. Failure to do\n so may result in an incomplete set of search results.\n\n Default value: false\n\n --max-concurrent-requests | --mcr (number)\n\n Specifies the maximum number of concurrent z/OSMF REST API requests to search\n files. Increasing the value results in faster searches. However, increasing the\n value increases resource consumption on z/OS and
test (18.x, windows-latest)
Process completed with exit code 1.

Artifacts

Produced during runtime
Name Size
Linux-18.x-results
4.36 MB
Linux-20.x-results
4.36 MB
Linux-22.x-results
4.36 MB
Windows-18.x-results
4.36 MB
Windows-20.x-results
4.36 MB
Windows-22.x-results
4.36 MB
macOS-18.x-results
4.36 MB
macOS-20.x-results
4.36 MB
macOS-22.x-results
4.36 MB
zowe-Linux.tgz
5.23 MB
zowe-Windows.tgz
789 KB
zowe-macOS.tgz
1.16 MB