Skip to content

fix: correct regex match condition in SyntaxValidator #10017

fix: correct regex match condition in SyntaxValidator

fix: correct regex match condition in SyntaxValidator #10017

Status Failure
Total duration 32m 25s
Artifacts 6

zowe-cli.yml

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

Annotations

12 errors
Imperative should provide advanced syntax validation rules › Advanced syntax validation for commands using a test command › should fail if a positional argument does not match the defined regex: packages/imperative/src/cmd/src/syntax/__tests__/SyntaxValidator.unit.test.ts#L71
expect(received).toContain(expected) // indexOf Expected substring: "Positional argument 'invalid_value' does not match the regex: ^[a-zA-Z0-9_]+$" Received string: " Syntax Error: You specified the following unknown values: \"invalid_value\".· Could not interpret them as a group, command name, or positional option. " at packages/imperative/src/cmd/src/syntax/__tests__/SyntaxValidator.unit.test.ts:71:46
test (20.x, macos-14)
Process completed with exit code 1.
Imperative should provide advanced syntax validation rules › Advanced syntax validation for commands using a test command › should fail if a positional argument does not match the defined regex: packages/imperative/src/cmd/src/syntax/__tests__/SyntaxValidator.unit.test.ts#L71
expect(received).toContain(expected) // indexOf Expected substring: "Positional argument 'invalid_value' does not match the regex: ^[a-zA-Z0-9_]+$" Received string: " Syntax Error: You specified the following unknown values: \"invalid_value\".· Could not interpret them as a group, command name, or positional option. " at packages/imperative/src/cmd/src/syntax/__tests__/SyntaxValidator.unit.test.ts:71:46
test (18.x, macos-14)
Process completed with exit code 1.
Imperative should provide advanced syntax validation rules › Advanced syntax validation for commands using a test command › should fail if a positional argument does not match the defined regex: packages/imperative/src/cmd/src/syntax/__tests__/SyntaxValidator.unit.test.ts#L71
expect(received).toContain(expected) // indexOf Expected substring: "Positional argument 'invalid_value' does not match the regex: ^[a-zA-Z0-9_]+$" Received string: " Syntax Error: You specified the following unknown values: \"invalid_value\".· Could not interpret them as a group, command name, or positional option. " at packages/imperative/src/cmd/src/syntax/__tests__/SyntaxValidator.unit.test.ts:71:46
test (20.x, ubuntu-22.04)
Process completed with exit code 1.
Imperative should provide advanced syntax validation rules › Advanced syntax validation for commands using a test command › should fail if a positional argument does not match the defined regex: packages/imperative/src/cmd/src/syntax/__tests__/SyntaxValidator.unit.test.ts#L71
expect(received).toContain(expected) // indexOf Expected substring: "Positional argument 'invalid_value' does not match the regex: ^[a-zA-Z0-9_]+$" Received string: " Syntax Error: You specified the following unknown values: \"invalid_value\".· Could not interpret them as a group, command name, or positional option. " at packages/imperative/src/cmd/src/syntax/__tests__/SyntaxValidator.unit.test.ts:71:46
test (18.x, ubuntu-22.04)
Process completed with exit code 1.
Imperative should provide advanced syntax validation rules › Advanced syntax validation for commands using a test command › should fail if a positional argument does not match the defined regex: packages/imperative/src/cmd/src/syntax/__tests__/SyntaxValidator.unit.test.ts#L71
expect(received).toContain(expected) // indexOf Expected substring: "Positional argument 'invalid_value' does not match the regex: ^[a-zA-Z0-9_]+$" Received string: " Syntax Error: You specified the following unknown values: \"invalid_value\".· Could not interpret them as a group, command name, or positional option. " at packages/imperative/src/cmd/src/syntax/__tests__/SyntaxValidator.unit.test.ts:71:46
test (20.x, windows-latest)
Process completed with exit code 1.
Imperative should provide advanced syntax validation rules › Advanced syntax validation for commands using a test command › should fail if a positional argument does not match the defined regex: packages/imperative/src/cmd/src/syntax/__tests__/SyntaxValidator.unit.test.ts#L71
expect(received).toContain(expected) // indexOf Expected substring: "Positional argument 'invalid_value' does not match the regex: ^[a-zA-Z0-9_]+$" Received string: " Syntax Error: You specified the following unknown values: \"invalid_value\".· Could not interpret them as a group, command name, or positional option. " at packages/imperative/src/cmd/src/syntax/__tests__/SyntaxValidator.unit.test.ts:71:46
test (18.x, windows-latest)
Process completed with exit code 1.

Artifacts

Produced during runtime
Name Size
macos-14-18.x-results
4.57 MB
macos-14-20.x-results
4.57 MB
ubuntu-22.04-18.x-results
4.57 MB
ubuntu-22.04-20.x-results
4.57 MB
windows-latest-18.x-results
4.6 MB
windows-latest-20.x-results
4.6 MB