WIP Remove remaining references to V1 profiles #8370
Annotations
7 errors
Unit Tests:
packages/imperative/src/cmd/__tests__/CommandProcessor.unit.test.ts#L2171
expect(received).toBe(expected) // Object.is equality
Expected: "brown"
Received: "yellow"
at packages/imperative/src/cmd/__tests__/CommandProcessor.unit.test.ts:2171:40
at fulfilled (packages/imperative/src/cmd/__tests__/CommandProcessor.unit.test.ts:15:58)
|
Unit Tests:
packages/imperative/src/cmd/__tests__/CommandProcessor.unit.test.ts#L2176
expect(received).toBe(expected) // Object.is equality
Expected: "green"
Received: "yellow"
at packages/imperative/src/cmd/__tests__/CommandProcessor.unit.test.ts:2176:40
at fulfilled (packages/imperative/src/cmd/__tests__/CommandProcessor.unit.test.ts:15:58)
|
Unit Tests
Process completed with exit code 1.
|
Integration Tests (Daemon):
packages/imperative/__tests__/__integration__/cmd/__tests__/integration/cli/root/Cmd.cli.root.integration.test.ts#L32
expect(received).toMatchSnapshot()
Snapshot name: `cmd-cli should display the help 1`
- Snapshot - 3
+ Received + 1
@@ -21,11 +21,10 @@
gen-help Commands to test help generator
invalid Invalid definitions
invoke Invoke handlers to test promise reject/fulfill
nested Test a complex structure
profile Validate profile mapping
- read Read some profiles
respond Invoke handlers that will produce messages
validate Validate syntax checking
OPTIONS
-------
@@ -76,11 +75,10 @@
gen-help Commands to test help generator
invalid Invalid definitions
invoke Invoke handlers to test promise reject/fulfill
nested Test a complex structure
profile Validate profile mapping
- read Read some profiles
respond Invoke handlers that will produce messages
validate Validate syntax checking
OPTIONS
-------
@@ -111,9 +109,9 @@
================ISSUING HELP WITH RFJ=================
{
"success": true,
"exitCode": 0,
"message": "",
- "stdout": "\n DESCRIPTION\n -----------\n\n A test CLI for the 'cmd' imperative package\n\n USAGE\n -----\n\n cmd-cli <group>\n\n Where <group> is one of the following:\n\n GROUPS\n ------\n\n auth Connect to token-based authentication services\n auto-format Invoke handlers to test auto-format \n chained chained handler test commands \n gen-help Commands to test help generator \n invalid Invalid definitions \n invoke Invoke handlers to test promise reject/fulfill\n nested Test a complex structure \n profile Validate profile mapping \n read Read some profiles \n respond Invoke handlers that will produce messages \n validate Validate syntax checking \n\n OPTIONS\n -------\n\n --version | -V (boolean)\n\n Display the current version of Cmd Package CLI\n\n --available-commands | --ac (boolean)\n\n Displays a list of available commands\n\n GLOBAL OPTIONS\n --------------\n\n --response-format-json | --rfj (boolean)\n\n Produce JSON formatted data from a command\n\n --help | -h (boolean)\n\n Display help text\n\n --help-web | --hw (boolean)\n\n Display HTML help in browser\n\n",
+ "stdout": "\n DESCRIPTION\n -----------\n\n A test CLI for the 'cmd' imperative package\n\n USAGE\n -----\n\n cmd-cli <group>\n\n Where <group> is one of the following:\n\n GROUPS\n ------\n\n auth Connect to token-based authentication services\n auto-format Invoke handlers to test auto-format \n chained chained handler test commands \n gen-help Commands to test help generator \n invalid Invalid definitions \n invoke Invoke handlers to test promise reject/fulfill\n nested Test a complex structure \n profile Validate profile mapping \n respond Invoke handlers that will produce messages \n validate Validate syntax checking \n\n OPTIONS\n -------\n\n --version | -V (boolean)\n\n Display the current version of Cmd Package CLI\n\n --available-commands | --ac (boolean)\n\n Displays a list of available commands\n\n GLOBAL OPTIONS\n --------------\n\n --response-format-json | --rfj (boolean)\n\n Produce JSON formatted data from a command\n\n --help | -h (boolean)\n\n Display help text\n\n --help-web | --hw (boolean)\n\n Display HTML help in browser\n\n",
"stderr": "",
"data": {}
}
at packages/imperative
|
Integration Tests (Daemon):
packages/imperative/__tests__/src/example_clis/with_profiles/__integration__/AutoGeneratedProfileCommands.integration.subtest.ts#L24
expect(received).toContain(expected) // indexOf
Expected substring: "Profile of type \"profile-with-dependency\" does not exist within the loaded profiles for the command and it is marked as required"
Received string: "Handler Instantiation Failed:
Could not instantiate the handler /home/runner/work/zowe-cli/zowe-cli/packages/imperative/__tests__/src/example_clis/with_profiles/handlers/UseDependentProfileHandler for command use-dependent-profile
Error Details:
⨯ Unable to compile TypeScript:
packages/imperative/__tests__/src/example_clis/with_profiles/handlers/UseDependentProfileHandler.ts(17,42): error TS2339: Property 'profiles' does not exist on type 'IHandlerParameters'.
packages/imperative/__tests__/src/example_clis/with_profiles/handlers/UseDependentProfileHandler.ts(20,36): error TS2339: Property 'profiles' does not exist on type 'IHandlerParameters'.·
"
at Object.<anonymous> (packages/imperative/__tests__/src/example_clis/with_profiles/__integration__/AutoGeneratedProfileCommands.integration.subtest.ts:24:31)
|
Integration Tests (Daemon):
packages/imperative/__tests__/src/TestUtil.ts#L280
Command should have succeeded: {
"success": false,
"exitCode": 1,
"message": "Could not instantiate the handler /home/runner/work/zowe-cli/zowe-cli/packages/imperative/__tests__/src/example_clis/with_profiles/handlers/OptionalProfileCHandler for command optional-profile-c",
"stdout": "",
"stderr": "Handler Instantiation Failed:\nCould not instantiate the handler /home/runner/work/zowe-cli/zowe-cli/packages/imperative/__tests__/src/example_clis/with_profiles/handlers/OptionalProfileCHandler for command optional-profile-c\nError Details:\n⨯ Unable to compile TypeScript:\npackages/imperative/__tests__/src/example_clis/with_profiles/handlers/OptionalProfileCHandler.ts(17,32): error TS2339: Property 'profiles' does not exist on type 'IHandlerParameters'.\n\n",
"data": {},
"error": {
"msg": "Could not instantiate the handler /home/runner/work/zowe-cli/zowe-cli/packages/imperative/__tests__/src/example_clis/with_profiles/handlers/OptionalProfileCHandler for command optional-profile-c",
"additionalDetails": "⨯ Unable to compile TypeScript:\npackages/imperative/__tests__/src/example_clis/with_profiles/handlers/OptionalProfileCHandler.ts(17,32): error TS2339: Property 'profiles' does not exist on type 'IHandlerParameters'.\n"
}
}
at Object.findExpectedOutputInCommand (packages/imperative/__tests__/src/TestUtil.ts:280:23)
at Object.<anonymous> (packages/imperative/__tests__/src/example_clis/with_profiles/__integration__/AutoGeneratedProfileCommands.integration.subtest.ts:33:26)
|
Integration Tests (Daemon)
Process completed with exit code 1.
|
Loading