From 54c1cf92394c58535629c4ea625f979d5f153465 Mon Sep 17 00:00:00 2001 From: Devin Holderness Date: Tue, 22 Jul 2025 11:01:23 -0600 Subject: [PATCH] feat: add alias functionality to all commands --- package-lock.json | 11 -- src/cli/FrodoCommand.ts | 4 +- src/cli/app/app-list.ts | 2 +- src/cli/conn/conn-alias-add.ts | 34 ++++++ src/cli/conn/conn-alias-delete.ts | 29 +++++ src/cli/conn/conn-alias.ts | 19 ++++ src/cli/conn/conn-save.ts | 14 +++ src/cli/conn/conn.ts | 3 + src/cli/info/info.ts | 4 +- src/cli/shell/shell.ts | 2 +- src/help/SampleData.ts | 1 + src/ops/ConnectionProfileOps.ts | 10 +- ...dd-autoid-static-user-mapping.test.js.snap | 2 +- ...-client-with-admin-privileges.test.js.snap | 2 +- .../admin-get-access-token.test.js.snap | 2 +- ...auth2-client-admin-privileges.test.js.snap | 2 +- ...-generic-extension-attributes.test.js.snap | 2 +- ...clients-with-admin-privileges.test.js.snap | 2 +- ...lients-with-custom-privileges.test.js.snap | 2 +- ...min-list-static-user-mappings.test.js.snap | 2 +- ...in-remove-static-user-mapping.test.js.snap | 2 +- .../admin-repair-org-model.test.js.snap | 2 +- ...auth2-client-admin-privileges.test.js.snap | 2 +- ...-generic-extension-attributes.test.js.snap | 2 +- .../__snapshots__/agent-delete.test.js.snap | 2 +- .../__snapshots__/agent-describe.test.js.snap | 2 +- .../__snapshots__/agent-export.test.js.snap | 2 +- .../agent-gateway-delete.test.js.snap | 2 +- .../agent-gateway-describe.test.js.snap | 2 +- .../agent-gateway-export.test.js.snap | 2 +- .../agent-gateway-import.test.js.snap | 2 +- .../agent-gateway-list.test.js.snap | 2 +- .../__snapshots__/agent-import.test.js.snap | 2 +- .../agent-java-delete.test.js.snap | 2 +- .../agent-java-describe.test.js.snap | 2 +- .../agent-java-export.test.js.snap | 2 +- .../agent-java-import.test.js.snap | 2 +- .../agent-java-list.test.js.snap | 2 +- .../en/__snapshots__/agent-list.test.js.snap | 2 +- .../agent-web-delete.test.js.snap | 2 +- .../agent-web-describe.test.js.snap | 2 +- .../agent-web-export.test.js.snap | 2 +- .../agent-web-import.test.js.snap | 2 +- .../__snapshots__/agent-web-list.test.js.snap | 2 +- .../en/__snapshots__/app-delete.test.js.snap | 2 +- .../en/__snapshots__/app-export.test.js.snap | 2 +- .../en/__snapshots__/app-import.test.js.snap | 2 +- .../en/__snapshots__/app-list.test.js.snap | 4 +- .../__snapshots__/authn-describe.test.js.snap | 2 +- .../__snapshots__/authn-export.test.js.snap | 2 +- .../__snapshots__/authn-import.test.js.snap | 2 +- .../authz-policy-delete.test.js.snap | 2 +- .../authz-policy-describe.test.js.snap | 2 +- .../authz-policy-export.test.js.snap | 2 +- .../authz-policy-import.test.js.snap | 2 +- .../authz-policy-list.test.js.snap | 2 +- .../authz-set-delete.test.js.snap | 2 +- .../authz-set-describe.test.js.snap | 2 +- .../authz-set-export.test.js.snap | 2 +- .../authz-set-import.test.js.snap | 2 +- .../authz-type-delete.test.js.snap | 2 +- .../authz-type-describe.test.js.snap | 2 +- .../authz-type-export.test.js.snap | 2 +- .../authz-type-import.test.js.snap | 2 +- .../authz-type-list.test.js.snap | 2 +- .../__snapshots__/config-export.test.js.snap | 2 +- .../__snapshots__/config-import.test.js.snap | 2 +- ...-manager-export-access-config.test.js.snap | 2 +- ...fig-manager-export-all-static.test.js.snap | 2 +- .../config-manager-export-all.test.js.snap | 2 +- .../config-manager-export-audit.test.js.snap | 2 +- ...manager-export-authentication.test.js.snap | 2 +- ...manager-export-authz-policies.test.js.snap | 2 +- ...-export-connector-definitions.test.js.snap | 2 +- ...ger-export-connector-mappings.test.js.snap | 2 +- ...manager-export-cookie-domains.test.js.snap | 2 +- .../config-manager-export-cors.test.js.snap | 2 +- .../config-manager-export-csp.test.js.snap | 2 +- ...manager-export-email-provider.test.js.snap | 2 +- ...anager-export-email-templates.test.js.snap | 2 +- ...nfig-manager-export-endpoints.test.js.snap | 2 +- ...manager-export-internal-roles.test.js.snap | 2 +- ...onfig-manager-export-journeys.test.js.snap | 2 +- .../config-manager-export-kba.test.js.snap | 2 +- ...config-manager-export-locales.test.js.snap | 2 +- ...anager-export-managed-objects.test.js.snap | 2 +- ...anager-export-password-policy.test.js.snap | 2 +- .../config-manager-export-raw.test.js.snap | 2 +- ...manager-export-remote-servers.test.js.snap | 2 +- .../config-manager-export-saml.test.js.snap | 2 +- ...nfig-manager-export-schedules.test.js.snap | 2 +- ...config-manager-export-scripts.test.js.snap | 2 +- ...anager-export-secret-mappings.test.js.snap | 2 +- ...config-manager-export-secrets.test.js.snap | 2 +- ...anager-export-service-objects.test.js.snap | 2 +- ...onfig-manager-export-services.test.js.snap | 2 +- ...r-export-terms-and-conditions.test.js.snap | 2 +- .../config-manager-export-themes.test.js.snap | 2 +- ...nfig-manager-export-ui-config.test.js.snap | 2 +- ...nfig-manager-export-variables.test.js.snap | 2 +- .../__snapshots__/conn-alias-add.test.js.snap | 92 +++++++++++++++ .../conn-alias-delete.test.js.snap | 91 +++++++++++++++ .../en/__snapshots__/conn-alias.test.js.snap | 16 +++ .../en/__snapshots__/conn-delete.test.js.snap | 2 +- .../__snapshots__/conn-describe.test.js.snap | 2 +- .../en/__snapshots__/conn-save.test.js.snap | 28 ++++- .../en/__snapshots__/conn.test.js.snap | 1 + .../email-template-delete.test.js.snap | 2 +- .../email-template-export.test.js.snap | 2 +- .../email-template-import.test.js.snap | 2 +- .../email-template-list.test.js.snap | 2 +- .../en/__snapshots__/esv-apply.test.js.snap | 2 +- .../esv-secret-create.test.js.snap | 2 +- .../esv-secret-delete.test.js.snap | 2 +- .../esv-secret-describe.test.js.snap | 2 +- .../esv-secret-export.test.js.snap | 2 +- .../esv-secret-import.test.js.snap | 2 +- .../esv-secret-list.test.js.snap | 2 +- .../__snapshots__/esv-secret-set.test.js.snap | 2 +- .../esv-secret-version-activate.test.js.snap | 2 +- .../esv-secret-version-create.test.js.snap | 2 +- ...esv-secret-version-deactivate.test.js.snap | 2 +- .../esv-secret-version-delete.test.js.snap | 2 +- .../esv-secret-version-list.test.js.snap | 2 +- .../esv-variable-create.test.js.snap | 2 +- .../esv-variable-delete.test.js.snap | 2 +- .../esv-variable-describe.test.js.snap | 2 +- .../esv-variable-export.test.js.snap | 2 +- .../esv-variable-import.test.js.snap | 2 +- .../esv-variable-list.test.js.snap | 2 +- .../esv-variable-set.test.js.snap | 2 +- .../en/__snapshots__/idm-count.test.js.snap | 2 +- .../en/__snapshots__/idm-delete.test.js.snap | 2 +- .../en/__snapshots__/idm-export.test.js.snap | 2 +- .../en/__snapshots__/idm-import.test.js.snap | 2 +- .../en/__snapshots__/idm-list.test.js.snap | 2 +- .../idm-schema-object-export.test.js.snap | 2 +- .../idm-schema-object-import.test.js.snap | 2 +- .../en/__snapshots__/idp-delete.test.js.snap | 2 +- .../en/__snapshots__/idp-export.test.js.snap | 2 +- .../en/__snapshots__/idp-import.test.js.snap | 2 +- .../en/__snapshots__/idp-list.test.js.snap | 2 +- .../en/__snapshots__/info.test.js.snap | 6 +- .../__snapshots__/journey-delete.test.js.snap | 2 +- .../journey-describe.test.js.snap | 2 +- .../journey-disable.test.js.snap | 2 +- .../__snapshots__/journey-enable.test.js.snap | 2 +- .../__snapshots__/journey-export.test.js.snap | 2 +- .../__snapshots__/journey-import.test.js.snap | 2 +- .../__snapshots__/journey-list.test.js.snap | 2 +- .../__snapshots__/journey-prune.test.js.snap | 2 +- .../en/__snapshots__/log-fetch.test.js.snap | 4 +- .../en/__snapshots__/log-list.test.js.snap | 4 +- .../en/__snapshots__/log-tail.test.js.snap | 4 +- .../__snapshots__/mapping-delete.test.js.snap | 2 +- .../__snapshots__/mapping-export.test.js.snap | 2 +- .../__snapshots__/mapping-import.test.js.snap | 2 +- .../__snapshots__/mapping-list.test.js.snap | 2 +- .../__snapshots__/mapping-rename.test.js.snap | 2 +- .../en/__snapshots__/node-delete.test.js.snap | 2 +- .../__snapshots__/node-describe.test.js.snap | 2 +- .../en/__snapshots__/node-export.test.js.snap | 2 +- .../en/__snapshots__/node-import.test.js.snap | 2 +- .../en/__snapshots__/node-list.test.js.snap | 2 +- .../oauth-client-delete.test.js.snap | 2 +- .../oauth-client-export.test.js.snap | 2 +- .../oauth-client-import.test.js.snap | 2 +- .../oauth-client-list.test.js.snap | 2 +- .../en/__snapshots__/promote.test.js.snap | 2 +- .../realm-add-custom-domain.test.js.snap | 2 +- .../__snapshots__/realm-describe.test.js.snap | 2 +- .../__snapshots__/realm-export.test.js.snap | 2 +- .../__snapshots__/realm-import.test.js.snap | 2 +- .../en/__snapshots__/realm-list.test.js.snap | 2 +- .../realm-remove-custom-domain.test.js.snap | 2 +- .../en/__snapshots__/role-export.test.js.snap | 2 +- .../en/__snapshots__/role-import.test.js.snap | 2 +- .../en/__snapshots__/role-list.test.js.snap | 2 +- .../saml-cot-export.test.js.snap | 2 +- .../saml-cot-import.test.js.snap | 2 +- .../__snapshots__/saml-cot-list.test.js.snap | 2 +- .../en/__snapshots__/saml-delete.test.js.snap | 2 +- .../__snapshots__/saml-describe.test.js.snap | 2 +- .../en/__snapshots__/saml-export.test.js.snap | 2 +- .../en/__snapshots__/saml-import.test.js.snap | 2 +- .../en/__snapshots__/saml-list.test.js.snap | 2 +- .../saml-metadata-export.test.js.snap | 2 +- .../__snapshots__/script-delete.test.js.snap | 2 +- .../script-describe.test.js.snap | 2 +- .../__snapshots__/script-export.test.js.snap | 2 +- .../__snapshots__/script-import.test.js.snap | 2 +- .../en/__snapshots__/script-list.test.js.snap | 2 +- .../secretstore-delete.test.js.snap | 2 +- .../secretstore-describe.test.js.snap | 2 +- .../secretstore-export.test.js.snap | 2 +- .../secretstore-import.test.js.snap | 2 +- .../secretstore-list.test.js.snap | 2 +- ...tstore-mapping-alias-activate.test.js.snap | 2 +- ...retstore-mapping-alias-create.test.js.snap | 2 +- ...retstore-mapping-alias-delete.test.js.snap | 2 +- ...ecretstore-mapping-alias-list.test.js.snap | 2 +- .../secretstore-mapping-create.test.js.snap | 2 +- .../secretstore-mapping-delete.test.js.snap | 2 +- .../secretstore-mapping-list.test.js.snap | 2 +- .../__snapshots__/server-export.test.js.snap | 2 +- .../__snapshots__/server-import.test.js.snap | 2 +- .../en/__snapshots__/server-list.test.js.snap | 2 +- .../__snapshots__/service-delete.test.js.snap | 2 +- .../__snapshots__/service-export.test.js.snap | 2 +- .../__snapshots__/service-import.test.js.snap | 2 +- .../__snapshots__/service-list.test.js.snap | 2 +- .../en/__snapshots__/shell.test.js.snap | 4 +- .../__snapshots__/theme-delete.test.js.snap | 2 +- .../__snapshots__/theme-export.test.js.snap | 2 +- .../__snapshots__/theme-import.test.js.snap | 2 +- .../en/__snapshots__/theme-list.test.js.snap | 2 +- test/client_cli/en/conn-alias-add.test.js | 10 ++ test/client_cli/en/conn-alias-delete.test.js | 10 ++ test/client_cli/en/conn-alias.test.js | 10 ++ .../conn-alias-add.e2e.test.js.snap | 15 +++ .../conn-alias-delete.e2e.test.js.snap | 15 +++ .../conn-describe.e2e.test.js.snap | 2 + .../__snapshots__/conn-list.e2e.test.js.snap | 12 +- .../esv-secret-create.e2e.test.js.snap | 2 +- .../__snapshots__/idp-delete.e2e.test.js.snap | 2 +- test/e2e/conn-alias-add.e2e.test.js | 102 +++++++++++++++++ test/e2e/conn-alias-delete.e2e.test.js | 107 ++++++++++++++++++ test/e2e/env/Connections.json | 1 + 228 files changed, 824 insertions(+), 237 deletions(-) create mode 100644 src/cli/conn/conn-alias-add.ts create mode 100644 src/cli/conn/conn-alias-delete.ts create mode 100644 src/cli/conn/conn-alias.ts create mode 100644 test/client_cli/en/__snapshots__/conn-alias-add.test.js.snap create mode 100644 test/client_cli/en/__snapshots__/conn-alias-delete.test.js.snap create mode 100644 test/client_cli/en/__snapshots__/conn-alias.test.js.snap create mode 100644 test/client_cli/en/conn-alias-add.test.js create mode 100644 test/client_cli/en/conn-alias-delete.test.js create mode 100644 test/client_cli/en/conn-alias.test.js create mode 100644 test/e2e/__snapshots__/conn-alias-add.e2e.test.js.snap create mode 100644 test/e2e/__snapshots__/conn-alias-delete.e2e.test.js.snap create mode 100644 test/e2e/conn-alias-add.e2e.test.js create mode 100644 test/e2e/conn-alias-delete.e2e.test.js diff --git a/package-lock.json b/package-lock.json index 1a0b16134..0d795710d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -92,7 +92,6 @@ "integrity": "sha512-CGOfOJqWjg2qW/Mb6zNsDm+u5vFQ8DxXfbM09z69p5Z6+mE1ikP2jUXw+j42Pf1XTYED2Rni5f95npYeuwMDQA==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@babel/code-frame": "^7.29.0", "@babel/generator": "^7.29.0", @@ -2362,7 +2361,6 @@ "integrity": "sha512-94EQTWZ40mzBc42ATNIBimBEDltSJ9RQHCC8vc/PDbxi4k8dVwUAv4o98dk50M1zB+JGFxp43FP7f8+FP8R6Sw==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@eslint-community/regexpp": "^4.10.0", "@typescript-eslint/scope-manager": "7.18.0", @@ -2397,7 +2395,6 @@ "integrity": "sha512-4Z+L8I2OqhZV8qA132M4wNL30ypZGYOQVBfMgxDH/K5UX0PNqTu1c6za9ST5r9+tavvHiTWmBnKzpCJ/GlVFtg==", "dev": true, "license": "BSD-2-Clause", - "peer": true, "dependencies": { "@typescript-eslint/scope-manager": "7.18.0", "@typescript-eslint/types": "7.18.0", @@ -2613,7 +2610,6 @@ "integrity": "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==", "dev": true, "license": "MIT", - "peer": true, "bin": { "acorn": "bin/acorn" }, @@ -3315,7 +3311,6 @@ } ], "license": "MIT", - "peer": true, "dependencies": { "baseline-browser-mapping": "^2.9.0", "caniuse-lite": "^1.0.30001759", @@ -4334,7 +4329,6 @@ "dev": true, "hasInstallScript": true, "license": "MIT", - "peer": true, "bin": { "esbuild": "bin/esbuild" }, @@ -4400,7 +4394,6 @@ "deprecated": "This version is no longer supported. Please see https://eslint.org/version-support for other options.", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@eslint-community/eslint-utils": "^4.2.0", "@eslint-community/regexpp": "^4.6.1", @@ -4457,7 +4450,6 @@ "integrity": "sha512-82GZUjRS0p/jganf6q1rEO25VSoHH0hKPCTrgillPjdI/3bgBhAE1QzHrHTizjpRvy6pGAvKjDJtk2pF9NDq8w==", "dev": true, "license": "MIT", - "peer": true, "bin": { "eslint-config-prettier": "bin/cli.js" }, @@ -6366,7 +6358,6 @@ "integrity": "sha512-NIy3oAFp9shda19hy4HK0HRTWKtPJmGdnvywu01nOqNC2vZg+Z+fvJDxpMQA88eb2I9EcafcdjYgsDthnYTvGw==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@jest/core": "^29.7.0", "@jest/types": "^29.6.3", @@ -8336,7 +8327,6 @@ "integrity": "sha512-UOnG6LftzbdaHZcKoPFtOcCKztrQ57WkHDeRD9t/PTQtmT0NHSeWWepj6pS0z/N7+08BHFDQVUrfmfMRcZwbMg==", "dev": true, "license": "MIT", - "peer": true, "bin": { "prettier": "bin/prettier.cjs" }, @@ -10048,7 +10038,6 @@ "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==", "dev": true, "license": "Apache-2.0", - "peer": true, "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" diff --git a/src/cli/FrodoCommand.ts b/src/cli/FrodoCommand.ts index 4040a5d2b..a619d7222 100644 --- a/src/cli/FrodoCommand.ts +++ b/src/cli/FrodoCommand.ts @@ -23,9 +23,9 @@ const { } = frodo.utils.constants; const { convertPrivateKeyToPem } = frodo.utils.crypto; -const hostArgument = new Argument( +export const hostArgument = new Argument( '[host]', - 'AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a unique substring.' + 'AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a unique substring or alias.' ); const realmArgument = new Argument( diff --git a/src/cli/app/app-list.ts b/src/cli/app/app-list.ts index 16e8f7d08..dbca49c9a 100644 --- a/src/cli/app/app-list.ts +++ b/src/cli/app/app-list.ts @@ -28,7 +28,7 @@ export default function setup() { ] + ` List applications using a connection profile (identified by the full AM base URL):\n` + ` $ frodo app list ${s.amBaseUrl}\n`['brightCyan'] + - ` List applications using a connection profile (identified by a unique substring of the AM base URL):\n` + + ` List applications using a connection profile (identified by a unique substring of the AM base URL or a saved alias):\n` + ` $ frodo app list ${s.connId}\n`['brightCyan'] ) .action( diff --git a/src/cli/conn/conn-alias-add.ts b/src/cli/conn/conn-alias-add.ts new file mode 100644 index 000000000..0206b27b7 --- /dev/null +++ b/src/cli/conn/conn-alias-add.ts @@ -0,0 +1,34 @@ +import { frodo } from '@rockcarver/frodo-lib'; + +import { printError } from '../../utils/Console'; +import { FrodoCommand, hostArgument } from '../FrodoCommand'; + +export default function setup() { + const program = new FrodoCommand('frodo conn alias add', [ + 'host', + 'realm', + 'username', + 'password', + 'type', + 'insecure', + 'curlirize', + ]); + + program + .description('Add connection profile alias.') + .argument('alias', 'Alias name for this connection profile.') + .addArgument(hostArgument) + .action( + async (alias: any, host: string, options: any, command: FrodoCommand) => { + command.handleDefaultArgsAndOpts(alias, host, options, command); + try { + frodo.conn.setConnectionProfileAlias(host, alias); + } catch (error) { + printError(error); + process.exitCode = 1; + } + } + ); + + return program; +} diff --git a/src/cli/conn/conn-alias-delete.ts b/src/cli/conn/conn-alias-delete.ts new file mode 100644 index 000000000..8bb358294 --- /dev/null +++ b/src/cli/conn/conn-alias-delete.ts @@ -0,0 +1,29 @@ +import { frodo } from '@rockcarver/frodo-lib'; + +import { printError } from '../../utils/Console'; +import { FrodoCommand } from '../FrodoCommand'; + +export default function setup() { + const program = new FrodoCommand('frodo conn alias delete', [ + 'realm', + 'username', + 'password', + 'type', + 'insecure', + 'curlirize', + ]); + + program + .description('Delete connection profile alias.') + .action(async (host: string, options: any, command: FrodoCommand) => { + command.handleDefaultArgsAndOpts(host, options, command); + try { + frodo.conn.deleteConnectionProfileAlias(host); + } catch (error) { + printError(error); + process.exitCode = 1; + } + }); + + return program; +} diff --git a/src/cli/conn/conn-alias.ts b/src/cli/conn/conn-alias.ts new file mode 100644 index 000000000..5c817777b --- /dev/null +++ b/src/cli/conn/conn-alias.ts @@ -0,0 +1,19 @@ +import { FrodoStubCommand } from '../FrodoCommand'; +import AddCmd from './conn-alias-add.js'; +import DeleteCmd from './conn-alias-delete.js'; + +export default function setup() { + const program = new FrodoStubCommand('frodo conn alias'); + + program.description('Manage connection aliases.'); + + program.addCommand( + AddCmd().name('add').description('Add connection profile alias.') + ); + + program.addCommand( + DeleteCmd().name('delete').description('Delete connection profile alias.') + ); + + return program; +} diff --git a/src/cli/conn/conn-save.ts b/src/cli/conn/conn-save.ts index 2e8dc990d..b9491cb48 100644 --- a/src/cli/conn/conn-save.ts +++ b/src/cli/conn/conn-save.ts @@ -50,6 +50,9 @@ export default function setup() { 'Map of headers: {"host":"am.example.com:8081"}.' ) ) + .addOption( + new Option('--alias [name]', 'Alias name for this connection profile.') + ) .addHelpText( 'after', `Usage Examples:\n` + @@ -61,10 +64,18 @@ export default function setup() { ` $ frodo conn save --private-key ${s.amsterPrivateKey} ${s.amClassicBaseUrl}\n`[ 'brightCyan' ] + + ` Create a connection profile with a new log API key and secret and a new service account and set an alias:\n` + + ` $ frodo conn save --alias ${s.alias} ${s.amBaseUrl} ${s.username} '${s.password}'\n`[ + 'brightCyan' + ] + ` Save an existing service account to an existing or new connection profile:\n` + ` $ frodo conn save --sa-id ${s.saId} --sa-jwk-file ${s.saJwkFile} ${s.amBaseUrl}\n`[ 'brightCyan' ] + + ` Save an existing service account to an existing or new connection profile and set an alias:\n` + + ` $ frodo conn save --alias ${s.alias} --sa-id ${s.saId} --sa-jwk-file ${s.saJwkFile} ${s.amBaseUrl}\n`[ + 'brightCyan' + ] + ` Save an existing service account to an existing connection profile (partial host URL only updates an existing profile):\n` + ` $ frodo conn save --sa-id ${s.saId} --sa-jwk-file ${s.saJwkFile} ${s.connId}\n`[ 'brightCyan' @@ -120,6 +131,9 @@ export default function setup() { verboseMessage( `Saving connection profile for tenant ${state.getHost()}...` ); + if (options.alias) { + state.setAlias(options.alias); + } // if cloud deployment add service account if ( options.validate && diff --git a/src/cli/conn/conn.ts b/src/cli/conn/conn.ts index a11f525a8..30bc8527f 100644 --- a/src/cli/conn/conn.ts +++ b/src/cli/conn/conn.ts @@ -1,4 +1,5 @@ import { FrodoStubCommand } from '../FrodoCommand'; +import AliasCmd from './conn-alias.js'; import DeleteCmd from './conn-delete.js'; import DescribeCmd from './conn-describe.js'; import ListCmd from './conn-list.js'; @@ -13,6 +14,8 @@ export default function setup() { program.addCommand(SaveCmd().name('save')); + program.addCommand(AliasCmd().name('alias')); + program.addCommand(DeleteCmd().name('delete')); program.addCommand(DescribeCmd().name('describe')); diff --git a/src/cli/info/info.ts b/src/cli/info/info.ts index 3324d3275..1b78a0216 100644 --- a/src/cli/info/info.ts +++ b/src/cli/info/info.ts @@ -34,9 +34,9 @@ export default function setup() { ] + ` Show human-readable output and login using a connection profile (identified by the full AM base URL):\n` + ` $ frodo info ${s.amBaseUrl}\n`['brightCyan'] + - ` Show human-readable output and login using a connection profile (identified by a unique substring of the AM base URL):\n` + + ` Show human-readable output and login using a connection profile (identified by a unique substring of the AM base URL or a saved alias):\n` + ` $ frodo info ${s.connId}\n`['brightCyan'] + - ` Show JSON output and login using the AM base URL's unique substring to identify the connection profile:\n` + + ` Show JSON output and login using the AM base URL's unique substring or a saved alias to identify the connection profile:\n` + ` $ frodo info --json ${s.connId}\n`['brightCyan'] ) .action(async (host, user, password, options, command) => { diff --git a/src/cli/shell/shell.ts b/src/cli/shell/shell.ts index 9a19728bb..d8c5cc57e 100644 --- a/src/cli/shell/shell.ts +++ b/src/cli/shell/shell.ts @@ -57,7 +57,7 @@ export default function setup() { ] + ` Launch a frodo shell using a connection profile (identified by the full AM base URL):\n` + ` $ frodo shell ${s.amBaseUrl}\n`['brightCyan'] + - ` Launch a frodo shell using a connection profile (identified by a unique substring of the AM base URL):\n` + + ` Launch a frodo shell using a connection profile (identified by a unique substring of the AM base URL or a saved alias):\n` + ` $ frodo shell ${s.connId}\n`['brightCyan'] ) .addOption( diff --git a/src/help/SampleData.ts b/src/help/SampleData.ts index 0d7cba170..64c2867f0 100644 --- a/src/help/SampleData.ts +++ b/src/help/SampleData.ts @@ -1,4 +1,5 @@ export const amBaseUrl = 'https://openam-matrix.id.forgerock.io/am'; +export const alias = 'MyConnection'; export const connId = 'matrix'; export const username = 'thomas.anderson@metacortex.com'; export const password = 'Blu3P!ll3d'; diff --git a/src/ops/ConnectionProfileOps.ts b/src/ops/ConnectionProfileOps.ts index 8fa6acfa7..9b4a3e8f7 100644 --- a/src/ops/ConnectionProfileOps.ts +++ b/src/ops/ConnectionProfileOps.ts @@ -31,6 +31,7 @@ export function listConnectionProfiles(long: boolean = false): void { if (long) { const table = createTable([ 'Host', + 'Alias', 'Service Account', 'Username', 'Log API Key', @@ -39,6 +40,7 @@ export function listConnectionProfiles(long: boolean = false): void { Object.keys(connectionsData).forEach((c) => { table.push([ c, + connectionsData[c].alias, connectionsData[c].svcacctName || connectionsData[c].svcacctId, connectionsData[c].username, connectionsData[c].logApiKey, @@ -53,7 +55,7 @@ export function listConnectionProfiles(long: boolean = false): void { // getUniqueNames(5, Object.keys(connectionsData)); } printMessage( - 'Any unique substring of a saved host can be used as the value for host parameter in all commands', + 'Any unique substring or alias of a saved host can be used as the value for host parameter in all commands', 'info' ); } @@ -65,7 +67,7 @@ export function listConnectionProfiles(long: boolean = false): void { /** * Describe connection profile - * @param {string} host Host URL or unique substring + * @param {string} host Host URL, unique substring, or alias * @param {boolean} showSecrets Whether secrets should be shown in clear text or not */ export async function describeConnectionProfile( @@ -138,8 +140,12 @@ export async function describeConnectionProfile( if (!profile.authenticationService) { delete profile.authenticationService; } + if (!profile.alias) { + delete profile.alias; + } const keyMap = { tenant: 'Host', + alias: 'Alias', deploymentType: 'Deployment Type', username: 'Username', password: 'Password', diff --git a/test/client_cli/en/__snapshots__/admin-add-autoid-static-user-mapping.test.js.snap b/test/client_cli/en/__snapshots__/admin-add-autoid-static-user-mapping.test.js.snap index 0f4b0a0ad..390abfbcf 100644 --- a/test/client_cli/en/__snapshots__/admin-add-autoid-static-user-mapping.test.js.snap +++ b/test/client_cli/en/__snapshots__/admin-add-autoid-static-user-mapping.test.js.snap @@ -10,7 +10,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. username Username to login with. Must be an admin user with appropriate rights to manage authentication journeys/trees. diff --git a/test/client_cli/en/__snapshots__/admin-create-oauth2-client-with-admin-privileges.test.js.snap b/test/client_cli/en/__snapshots__/admin-create-oauth2-client-with-admin-privileges.test.js.snap index f03533a1a..8de76b07c 100644 --- a/test/client_cli/en/__snapshots__/admin-create-oauth2-client-with-admin-privileges.test.js.snap +++ b/test/client_cli/en/__snapshots__/admin-create-oauth2-client-with-admin-privileges.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/admin-get-access-token.test.js.snap b/test/client_cli/en/__snapshots__/admin-get-access-token.test.js.snap index fffdc69f1..5397c8fee 100644 --- a/test/client_cli/en/__snapshots__/admin-get-access-token.test.js.snap +++ b/test/client_cli/en/__snapshots__/admin-get-access-token.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/admin-grant-oauth2-client-admin-privileges.test.js.snap b/test/client_cli/en/__snapshots__/admin-grant-oauth2-client-admin-privileges.test.js.snap index 911d4973c..93b60d492 100644 --- a/test/client_cli/en/__snapshots__/admin-grant-oauth2-client-admin-privileges.test.js.snap +++ b/test/client_cli/en/__snapshots__/admin-grant-oauth2-client-admin-privileges.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/admin-hide-generic-extension-attributes.test.js.snap b/test/client_cli/en/__snapshots__/admin-hide-generic-extension-attributes.test.js.snap index dce4f039a..20dc21306 100644 --- a/test/client_cli/en/__snapshots__/admin-hide-generic-extension-attributes.test.js.snap +++ b/test/client_cli/en/__snapshots__/admin-hide-generic-extension-attributes.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/admin-list-oauth2-clients-with-admin-privileges.test.js.snap b/test/client_cli/en/__snapshots__/admin-list-oauth2-clients-with-admin-privileges.test.js.snap index 5ee240eac..2e471aeaa 100644 --- a/test/client_cli/en/__snapshots__/admin-list-oauth2-clients-with-admin-privileges.test.js.snap +++ b/test/client_cli/en/__snapshots__/admin-list-oauth2-clients-with-admin-privileges.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/admin-list-oauth2-clients-with-custom-privileges.test.js.snap b/test/client_cli/en/__snapshots__/admin-list-oauth2-clients-with-custom-privileges.test.js.snap index 4b4e3258b..3d4dfe37b 100644 --- a/test/client_cli/en/__snapshots__/admin-list-oauth2-clients-with-custom-privileges.test.js.snap +++ b/test/client_cli/en/__snapshots__/admin-list-oauth2-clients-with-custom-privileges.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/admin-list-static-user-mappings.test.js.snap b/test/client_cli/en/__snapshots__/admin-list-static-user-mappings.test.js.snap index 27e7a0ec4..e18afd868 100644 --- a/test/client_cli/en/__snapshots__/admin-list-static-user-mappings.test.js.snap +++ b/test/client_cli/en/__snapshots__/admin-list-static-user-mappings.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/admin-remove-static-user-mapping.test.js.snap b/test/client_cli/en/__snapshots__/admin-remove-static-user-mapping.test.js.snap index 4812fee57..5b0dc680c 100644 --- a/test/client_cli/en/__snapshots__/admin-remove-static-user-mapping.test.js.snap +++ b/test/client_cli/en/__snapshots__/admin-remove-static-user-mapping.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/admin-repair-org-model.test.js.snap b/test/client_cli/en/__snapshots__/admin-repair-org-model.test.js.snap index c788006a1..e749fa2d4 100644 --- a/test/client_cli/en/__snapshots__/admin-repair-org-model.test.js.snap +++ b/test/client_cli/en/__snapshots__/admin-repair-org-model.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/admin-revoke-oauth2-client-admin-privileges.test.js.snap b/test/client_cli/en/__snapshots__/admin-revoke-oauth2-client-admin-privileges.test.js.snap index c0e5a8bd0..5b30d0a43 100644 --- a/test/client_cli/en/__snapshots__/admin-revoke-oauth2-client-admin-privileges.test.js.snap +++ b/test/client_cli/en/__snapshots__/admin-revoke-oauth2-client-admin-privileges.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/admin-show-generic-extension-attributes.test.js.snap b/test/client_cli/en/__snapshots__/admin-show-generic-extension-attributes.test.js.snap index 9fc80ec04..7976ffa1b 100644 --- a/test/client_cli/en/__snapshots__/admin-show-generic-extension-attributes.test.js.snap +++ b/test/client_cli/en/__snapshots__/admin-show-generic-extension-attributes.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/agent-delete.test.js.snap b/test/client_cli/en/__snapshots__/agent-delete.test.js.snap index 7787427e0..6484f66b8 100644 --- a/test/client_cli/en/__snapshots__/agent-delete.test.js.snap +++ b/test/client_cli/en/__snapshots__/agent-delete.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/agent-describe.test.js.snap b/test/client_cli/en/__snapshots__/agent-describe.test.js.snap index c76416e62..3995513fd 100644 --- a/test/client_cli/en/__snapshots__/agent-describe.test.js.snap +++ b/test/client_cli/en/__snapshots__/agent-describe.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/agent-export.test.js.snap b/test/client_cli/en/__snapshots__/agent-export.test.js.snap index 457f3d05a..709bb56d0 100644 --- a/test/client_cli/en/__snapshots__/agent-export.test.js.snap +++ b/test/client_cli/en/__snapshots__/agent-export.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/agent-gateway-delete.test.js.snap b/test/client_cli/en/__snapshots__/agent-gateway-delete.test.js.snap index 7833a9fb0..3d6c50118 100644 --- a/test/client_cli/en/__snapshots__/agent-gateway-delete.test.js.snap +++ b/test/client_cli/en/__snapshots__/agent-gateway-delete.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/agent-gateway-describe.test.js.snap b/test/client_cli/en/__snapshots__/agent-gateway-describe.test.js.snap index 33c59e268..1252fa5d1 100644 --- a/test/client_cli/en/__snapshots__/agent-gateway-describe.test.js.snap +++ b/test/client_cli/en/__snapshots__/agent-gateway-describe.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/agent-gateway-export.test.js.snap b/test/client_cli/en/__snapshots__/agent-gateway-export.test.js.snap index cc9efdf5a..ee8a79e1c 100644 --- a/test/client_cli/en/__snapshots__/agent-gateway-export.test.js.snap +++ b/test/client_cli/en/__snapshots__/agent-gateway-export.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/agent-gateway-import.test.js.snap b/test/client_cli/en/__snapshots__/agent-gateway-import.test.js.snap index 0506a4159..11ce91284 100644 --- a/test/client_cli/en/__snapshots__/agent-gateway-import.test.js.snap +++ b/test/client_cli/en/__snapshots__/agent-gateway-import.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/agent-gateway-list.test.js.snap b/test/client_cli/en/__snapshots__/agent-gateway-list.test.js.snap index 62f91e026..9407a91cb 100644 --- a/test/client_cli/en/__snapshots__/agent-gateway-list.test.js.snap +++ b/test/client_cli/en/__snapshots__/agent-gateway-list.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/agent-import.test.js.snap b/test/client_cli/en/__snapshots__/agent-import.test.js.snap index 1e570390d..2e698d559 100644 --- a/test/client_cli/en/__snapshots__/agent-import.test.js.snap +++ b/test/client_cli/en/__snapshots__/agent-import.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/agent-java-delete.test.js.snap b/test/client_cli/en/__snapshots__/agent-java-delete.test.js.snap index 2bfa8c668..20314179c 100644 --- a/test/client_cli/en/__snapshots__/agent-java-delete.test.js.snap +++ b/test/client_cli/en/__snapshots__/agent-java-delete.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/agent-java-describe.test.js.snap b/test/client_cli/en/__snapshots__/agent-java-describe.test.js.snap index 3276d27e1..1089ea469 100644 --- a/test/client_cli/en/__snapshots__/agent-java-describe.test.js.snap +++ b/test/client_cli/en/__snapshots__/agent-java-describe.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/agent-java-export.test.js.snap b/test/client_cli/en/__snapshots__/agent-java-export.test.js.snap index 6a1c2214c..4545c1762 100644 --- a/test/client_cli/en/__snapshots__/agent-java-export.test.js.snap +++ b/test/client_cli/en/__snapshots__/agent-java-export.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/agent-java-import.test.js.snap b/test/client_cli/en/__snapshots__/agent-java-import.test.js.snap index 378f60f0e..2d3bdf0a5 100644 --- a/test/client_cli/en/__snapshots__/agent-java-import.test.js.snap +++ b/test/client_cli/en/__snapshots__/agent-java-import.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/agent-java-list.test.js.snap b/test/client_cli/en/__snapshots__/agent-java-list.test.js.snap index 88144880e..febdad140 100644 --- a/test/client_cli/en/__snapshots__/agent-java-list.test.js.snap +++ b/test/client_cli/en/__snapshots__/agent-java-list.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/agent-list.test.js.snap b/test/client_cli/en/__snapshots__/agent-list.test.js.snap index bd6146b6e..8e62e5134 100644 --- a/test/client_cli/en/__snapshots__/agent-list.test.js.snap +++ b/test/client_cli/en/__snapshots__/agent-list.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/agent-web-delete.test.js.snap b/test/client_cli/en/__snapshots__/agent-web-delete.test.js.snap index 6256568bb..a08e42852 100644 --- a/test/client_cli/en/__snapshots__/agent-web-delete.test.js.snap +++ b/test/client_cli/en/__snapshots__/agent-web-delete.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/agent-web-describe.test.js.snap b/test/client_cli/en/__snapshots__/agent-web-describe.test.js.snap index df573dffd..a8a50dc82 100644 --- a/test/client_cli/en/__snapshots__/agent-web-describe.test.js.snap +++ b/test/client_cli/en/__snapshots__/agent-web-describe.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/agent-web-export.test.js.snap b/test/client_cli/en/__snapshots__/agent-web-export.test.js.snap index c35814d05..fe1f37d28 100644 --- a/test/client_cli/en/__snapshots__/agent-web-export.test.js.snap +++ b/test/client_cli/en/__snapshots__/agent-web-export.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/agent-web-import.test.js.snap b/test/client_cli/en/__snapshots__/agent-web-import.test.js.snap index 0eefd3a11..64397b534 100644 --- a/test/client_cli/en/__snapshots__/agent-web-import.test.js.snap +++ b/test/client_cli/en/__snapshots__/agent-web-import.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/agent-web-list.test.js.snap b/test/client_cli/en/__snapshots__/agent-web-list.test.js.snap index ba06436ee..9b7992219 100644 --- a/test/client_cli/en/__snapshots__/agent-web-list.test.js.snap +++ b/test/client_cli/en/__snapshots__/agent-web-list.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/app-delete.test.js.snap b/test/client_cli/en/__snapshots__/app-delete.test.js.snap index 7316f769b..4dea96f15 100644 --- a/test/client_cli/en/__snapshots__/app-delete.test.js.snap +++ b/test/client_cli/en/__snapshots__/app-delete.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/app-export.test.js.snap b/test/client_cli/en/__snapshots__/app-export.test.js.snap index e8e20b3ce..18ea87ea0 100644 --- a/test/client_cli/en/__snapshots__/app-export.test.js.snap +++ b/test/client_cli/en/__snapshots__/app-export.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/app-import.test.js.snap b/test/client_cli/en/__snapshots__/app-import.test.js.snap index 5b6f6c15a..6cb6751ec 100644 --- a/test/client_cli/en/__snapshots__/app-import.test.js.snap +++ b/test/client_cli/en/__snapshots__/app-import.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/app-list.test.js.snap b/test/client_cli/en/__snapshots__/app-list.test.js.snap index 609d8be81..5109eabfa 100644 --- a/test/client_cli/en/__snapshots__/app-list.test.js.snap +++ b/test/client_cli/en/__snapshots__/app-list.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for @@ -131,7 +131,7 @@ Usage Examples:  $ frodo app list https://openam-matrix.id.forgerock.io/am thomas.anderson@metacortex.com 'Blu3P!ll3d'  List applications using a connection profile (identified by the full AM base URL):  $ frodo app list https://openam-matrix.id.forgerock.io/am - List applications using a connection profile (identified by a unique substring of the AM base URL): + List applications using a connection profile (identified by a unique substring of the AM base URL or a saved alias):  $ frodo app list matrix  " diff --git a/test/client_cli/en/__snapshots__/authn-describe.test.js.snap b/test/client_cli/en/__snapshots__/authn-describe.test.js.snap index 18cb3daa5..8feee2844 100644 --- a/test/client_cli/en/__snapshots__/authn-describe.test.js.snap +++ b/test/client_cli/en/__snapshots__/authn-describe.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/authn-export.test.js.snap b/test/client_cli/en/__snapshots__/authn-export.test.js.snap index 4bfbe6f6d..186a678f6 100644 --- a/test/client_cli/en/__snapshots__/authn-export.test.js.snap +++ b/test/client_cli/en/__snapshots__/authn-export.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/authn-import.test.js.snap b/test/client_cli/en/__snapshots__/authn-import.test.js.snap index 26c8300ea..10355f3e8 100644 --- a/test/client_cli/en/__snapshots__/authn-import.test.js.snap +++ b/test/client_cli/en/__snapshots__/authn-import.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/authz-policy-delete.test.js.snap b/test/client_cli/en/__snapshots__/authz-policy-delete.test.js.snap index 7e2773831..1d9bdb650 100644 --- a/test/client_cli/en/__snapshots__/authz-policy-delete.test.js.snap +++ b/test/client_cli/en/__snapshots__/authz-policy-delete.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/authz-policy-describe.test.js.snap b/test/client_cli/en/__snapshots__/authz-policy-describe.test.js.snap index f76b9f04d..cb1e50c47 100644 --- a/test/client_cli/en/__snapshots__/authz-policy-describe.test.js.snap +++ b/test/client_cli/en/__snapshots__/authz-policy-describe.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/authz-policy-export.test.js.snap b/test/client_cli/en/__snapshots__/authz-policy-export.test.js.snap index 527d4d185..4b9863033 100644 --- a/test/client_cli/en/__snapshots__/authz-policy-export.test.js.snap +++ b/test/client_cli/en/__snapshots__/authz-policy-export.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/authz-policy-import.test.js.snap b/test/client_cli/en/__snapshots__/authz-policy-import.test.js.snap index 6bc1040ec..93e0674a7 100644 --- a/test/client_cli/en/__snapshots__/authz-policy-import.test.js.snap +++ b/test/client_cli/en/__snapshots__/authz-policy-import.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/authz-policy-list.test.js.snap b/test/client_cli/en/__snapshots__/authz-policy-list.test.js.snap index 8f121e18c..5d5fed1d0 100644 --- a/test/client_cli/en/__snapshots__/authz-policy-list.test.js.snap +++ b/test/client_cli/en/__snapshots__/authz-policy-list.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/authz-set-delete.test.js.snap b/test/client_cli/en/__snapshots__/authz-set-delete.test.js.snap index a70011e65..1eed36ace 100644 --- a/test/client_cli/en/__snapshots__/authz-set-delete.test.js.snap +++ b/test/client_cli/en/__snapshots__/authz-set-delete.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/authz-set-describe.test.js.snap b/test/client_cli/en/__snapshots__/authz-set-describe.test.js.snap index dbd098595..52ebf92f6 100644 --- a/test/client_cli/en/__snapshots__/authz-set-describe.test.js.snap +++ b/test/client_cli/en/__snapshots__/authz-set-describe.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/authz-set-export.test.js.snap b/test/client_cli/en/__snapshots__/authz-set-export.test.js.snap index 1bb3fe6b3..40f1f3795 100644 --- a/test/client_cli/en/__snapshots__/authz-set-export.test.js.snap +++ b/test/client_cli/en/__snapshots__/authz-set-export.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/authz-set-import.test.js.snap b/test/client_cli/en/__snapshots__/authz-set-import.test.js.snap index 610cc2156..785dd964c 100644 --- a/test/client_cli/en/__snapshots__/authz-set-import.test.js.snap +++ b/test/client_cli/en/__snapshots__/authz-set-import.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/authz-type-delete.test.js.snap b/test/client_cli/en/__snapshots__/authz-type-delete.test.js.snap index 6c7088541..b7b141734 100644 --- a/test/client_cli/en/__snapshots__/authz-type-delete.test.js.snap +++ b/test/client_cli/en/__snapshots__/authz-type-delete.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/authz-type-describe.test.js.snap b/test/client_cli/en/__snapshots__/authz-type-describe.test.js.snap index 2b4ac1019..f504f8432 100644 --- a/test/client_cli/en/__snapshots__/authz-type-describe.test.js.snap +++ b/test/client_cli/en/__snapshots__/authz-type-describe.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/authz-type-export.test.js.snap b/test/client_cli/en/__snapshots__/authz-type-export.test.js.snap index 7712e3e26..bc74870e5 100644 --- a/test/client_cli/en/__snapshots__/authz-type-export.test.js.snap +++ b/test/client_cli/en/__snapshots__/authz-type-export.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/authz-type-import.test.js.snap b/test/client_cli/en/__snapshots__/authz-type-import.test.js.snap index 48200183c..29a862b71 100644 --- a/test/client_cli/en/__snapshots__/authz-type-import.test.js.snap +++ b/test/client_cli/en/__snapshots__/authz-type-import.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/authz-type-list.test.js.snap b/test/client_cli/en/__snapshots__/authz-type-list.test.js.snap index 728706b71..ed0c8c83d 100644 --- a/test/client_cli/en/__snapshots__/authz-type-list.test.js.snap +++ b/test/client_cli/en/__snapshots__/authz-type-list.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/config-export.test.js.snap b/test/client_cli/en/__snapshots__/config-export.test.js.snap index 29e7a1828..ec56ea6f9 100644 --- a/test/client_cli/en/__snapshots__/config-export.test.js.snap +++ b/test/client_cli/en/__snapshots__/config-export.test.js.snap @@ -17,7 +17,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/config-import.test.js.snap b/test/client_cli/en/__snapshots__/config-import.test.js.snap index 070e2065b..268d11452 100644 --- a/test/client_cli/en/__snapshots__/config-import.test.js.snap +++ b/test/client_cli/en/__snapshots__/config-import.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/config-manager-export-access-config.test.js.snap b/test/client_cli/en/__snapshots__/config-manager-export-access-config.test.js.snap index 72bec52c0..96d0102b0 100644 --- a/test/client_cli/en/__snapshots__/config-manager-export-access-config.test.js.snap +++ b/test/client_cli/en/__snapshots__/config-manager-export-access-config.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/config-manager-export-all-static.test.js.snap b/test/client_cli/en/__snapshots__/config-manager-export-all-static.test.js.snap index d13b928d4..d033397c4 100644 --- a/test/client_cli/en/__snapshots__/config-manager-export-all-static.test.js.snap +++ b/test/client_cli/en/__snapshots__/config-manager-export-all-static.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/config-manager-export-all.test.js.snap b/test/client_cli/en/__snapshots__/config-manager-export-all.test.js.snap index a4231ba08..7b4c93bc0 100644 --- a/test/client_cli/en/__snapshots__/config-manager-export-all.test.js.snap +++ b/test/client_cli/en/__snapshots__/config-manager-export-all.test.js.snap @@ -6,7 +6,7 @@ exports[`CLI help interface for 'config export' should be expected english 1`] = Export all config. Arguments: - host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a unique substring. + host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for Identity Cloud tenants, "/" otherwise.) username Username to login with. Must be an admin user with appropriate rights to manage authentication journeys/trees. password Password. diff --git a/test/client_cli/en/__snapshots__/config-manager-export-audit.test.js.snap b/test/client_cli/en/__snapshots__/config-manager-export-audit.test.js.snap index d5224c954..0ab504d1c 100644 --- a/test/client_cli/en/__snapshots__/config-manager-export-audit.test.js.snap +++ b/test/client_cli/en/__snapshots__/config-manager-export-audit.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/config-manager-export-authentication.test.js.snap b/test/client_cli/en/__snapshots__/config-manager-export-authentication.test.js.snap index b8c1624fd..ef84eb620 100644 --- a/test/client_cli/en/__snapshots__/config-manager-export-authentication.test.js.snap +++ b/test/client_cli/en/__snapshots__/config-manager-export-authentication.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/config-manager-export-authz-policies.test.js.snap b/test/client_cli/en/__snapshots__/config-manager-export-authz-policies.test.js.snap index 1516e85f0..2d8b727f2 100644 --- a/test/client_cli/en/__snapshots__/config-manager-export-authz-policies.test.js.snap +++ b/test/client_cli/en/__snapshots__/config-manager-export-authz-policies.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/config-manager-export-connector-definitions.test.js.snap b/test/client_cli/en/__snapshots__/config-manager-export-connector-definitions.test.js.snap index ac31689e3..ceb44f1cc 100644 --- a/test/client_cli/en/__snapshots__/config-manager-export-connector-definitions.test.js.snap +++ b/test/client_cli/en/__snapshots__/config-manager-export-connector-definitions.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/config-manager-export-connector-mappings.test.js.snap b/test/client_cli/en/__snapshots__/config-manager-export-connector-mappings.test.js.snap index 83fe13fa6..e66d6439d 100644 --- a/test/client_cli/en/__snapshots__/config-manager-export-connector-mappings.test.js.snap +++ b/test/client_cli/en/__snapshots__/config-manager-export-connector-mappings.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/config-manager-export-cookie-domains.test.js.snap b/test/client_cli/en/__snapshots__/config-manager-export-cookie-domains.test.js.snap index 149abfa5b..9a1cde775 100644 --- a/test/client_cli/en/__snapshots__/config-manager-export-cookie-domains.test.js.snap +++ b/test/client_cli/en/__snapshots__/config-manager-export-cookie-domains.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/config-manager-export-cors.test.js.snap b/test/client_cli/en/__snapshots__/config-manager-export-cors.test.js.snap index 19975efa6..9bfe09a03 100644 --- a/test/client_cli/en/__snapshots__/config-manager-export-cors.test.js.snap +++ b/test/client_cli/en/__snapshots__/config-manager-export-cors.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/config-manager-export-csp.test.js.snap b/test/client_cli/en/__snapshots__/config-manager-export-csp.test.js.snap index 5afd612f4..4b49b736b 100644 --- a/test/client_cli/en/__snapshots__/config-manager-export-csp.test.js.snap +++ b/test/client_cli/en/__snapshots__/config-manager-export-csp.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/config-manager-export-email-provider.test.js.snap b/test/client_cli/en/__snapshots__/config-manager-export-email-provider.test.js.snap index 359a004e6..b5423f6e6 100644 --- a/test/client_cli/en/__snapshots__/config-manager-export-email-provider.test.js.snap +++ b/test/client_cli/en/__snapshots__/config-manager-export-email-provider.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/config-manager-export-email-templates.test.js.snap b/test/client_cli/en/__snapshots__/config-manager-export-email-templates.test.js.snap index 48f2a49a0..92b508b1e 100644 --- a/test/client_cli/en/__snapshots__/config-manager-export-email-templates.test.js.snap +++ b/test/client_cli/en/__snapshots__/config-manager-export-email-templates.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/config-manager-export-endpoints.test.js.snap b/test/client_cli/en/__snapshots__/config-manager-export-endpoints.test.js.snap index 18d24da3b..3a03ffcba 100644 --- a/test/client_cli/en/__snapshots__/config-manager-export-endpoints.test.js.snap +++ b/test/client_cli/en/__snapshots__/config-manager-export-endpoints.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/config-manager-export-internal-roles.test.js.snap b/test/client_cli/en/__snapshots__/config-manager-export-internal-roles.test.js.snap index 13fd66880..397b2ba11 100644 --- a/test/client_cli/en/__snapshots__/config-manager-export-internal-roles.test.js.snap +++ b/test/client_cli/en/__snapshots__/config-manager-export-internal-roles.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/config-manager-export-journeys.test.js.snap b/test/client_cli/en/__snapshots__/config-manager-export-journeys.test.js.snap index c8147250b..e83ac55f0 100644 --- a/test/client_cli/en/__snapshots__/config-manager-export-journeys.test.js.snap +++ b/test/client_cli/en/__snapshots__/config-manager-export-journeys.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/config-manager-export-kba.test.js.snap b/test/client_cli/en/__snapshots__/config-manager-export-kba.test.js.snap index 37e1f0669..c98ff8104 100644 --- a/test/client_cli/en/__snapshots__/config-manager-export-kba.test.js.snap +++ b/test/client_cli/en/__snapshots__/config-manager-export-kba.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/config-manager-export-locales.test.js.snap b/test/client_cli/en/__snapshots__/config-manager-export-locales.test.js.snap index a49e37d4b..548351d16 100644 --- a/test/client_cli/en/__snapshots__/config-manager-export-locales.test.js.snap +++ b/test/client_cli/en/__snapshots__/config-manager-export-locales.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/config-manager-export-managed-objects.test.js.snap b/test/client_cli/en/__snapshots__/config-manager-export-managed-objects.test.js.snap index 140a1ac9a..b1089e4f3 100644 --- a/test/client_cli/en/__snapshots__/config-manager-export-managed-objects.test.js.snap +++ b/test/client_cli/en/__snapshots__/config-manager-export-managed-objects.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/config-manager-export-password-policy.test.js.snap b/test/client_cli/en/__snapshots__/config-manager-export-password-policy.test.js.snap index 5ee2972e0..2d02c0419 100644 --- a/test/client_cli/en/__snapshots__/config-manager-export-password-policy.test.js.snap +++ b/test/client_cli/en/__snapshots__/config-manager-export-password-policy.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/config-manager-export-raw.test.js.snap b/test/client_cli/en/__snapshots__/config-manager-export-raw.test.js.snap index 7b609556f..92bb35b59 100644 --- a/test/client_cli/en/__snapshots__/config-manager-export-raw.test.js.snap +++ b/test/client_cli/en/__snapshots__/config-manager-export-raw.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/config-manager-export-remote-servers.test.js.snap b/test/client_cli/en/__snapshots__/config-manager-export-remote-servers.test.js.snap index d2e670426..ae886a1b8 100644 --- a/test/client_cli/en/__snapshots__/config-manager-export-remote-servers.test.js.snap +++ b/test/client_cli/en/__snapshots__/config-manager-export-remote-servers.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/config-manager-export-saml.test.js.snap b/test/client_cli/en/__snapshots__/config-manager-export-saml.test.js.snap index 204c20585..52657c81b 100644 --- a/test/client_cli/en/__snapshots__/config-manager-export-saml.test.js.snap +++ b/test/client_cli/en/__snapshots__/config-manager-export-saml.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/config-manager-export-schedules.test.js.snap b/test/client_cli/en/__snapshots__/config-manager-export-schedules.test.js.snap index 1964bdafe..d2bb286b1 100644 --- a/test/client_cli/en/__snapshots__/config-manager-export-schedules.test.js.snap +++ b/test/client_cli/en/__snapshots__/config-manager-export-schedules.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/config-manager-export-scripts.test.js.snap b/test/client_cli/en/__snapshots__/config-manager-export-scripts.test.js.snap index fc94a95e7..2ab7da8d9 100644 --- a/test/client_cli/en/__snapshots__/config-manager-export-scripts.test.js.snap +++ b/test/client_cli/en/__snapshots__/config-manager-export-scripts.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/config-manager-export-secret-mappings.test.js.snap b/test/client_cli/en/__snapshots__/config-manager-export-secret-mappings.test.js.snap index 76392c127..018552d6d 100644 --- a/test/client_cli/en/__snapshots__/config-manager-export-secret-mappings.test.js.snap +++ b/test/client_cli/en/__snapshots__/config-manager-export-secret-mappings.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/config-manager-export-secrets.test.js.snap b/test/client_cli/en/__snapshots__/config-manager-export-secrets.test.js.snap index 58a0f12da..6ee98847b 100644 --- a/test/client_cli/en/__snapshots__/config-manager-export-secrets.test.js.snap +++ b/test/client_cli/en/__snapshots__/config-manager-export-secrets.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/config-manager-export-service-objects.test.js.snap b/test/client_cli/en/__snapshots__/config-manager-export-service-objects.test.js.snap index 74b8a1541..8a2006ae9 100644 --- a/test/client_cli/en/__snapshots__/config-manager-export-service-objects.test.js.snap +++ b/test/client_cli/en/__snapshots__/config-manager-export-service-objects.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/config-manager-export-services.test.js.snap b/test/client_cli/en/__snapshots__/config-manager-export-services.test.js.snap index 4bcd9b7f4..aa25720ce 100644 --- a/test/client_cli/en/__snapshots__/config-manager-export-services.test.js.snap +++ b/test/client_cli/en/__snapshots__/config-manager-export-services.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/config-manager-export-terms-and-conditions.test.js.snap b/test/client_cli/en/__snapshots__/config-manager-export-terms-and-conditions.test.js.snap index 4d296a9ba..f3715427c 100644 --- a/test/client_cli/en/__snapshots__/config-manager-export-terms-and-conditions.test.js.snap +++ b/test/client_cli/en/__snapshots__/config-manager-export-terms-and-conditions.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/config-manager-export-themes.test.js.snap b/test/client_cli/en/__snapshots__/config-manager-export-themes.test.js.snap index 3256b9382..424e3562b 100644 --- a/test/client_cli/en/__snapshots__/config-manager-export-themes.test.js.snap +++ b/test/client_cli/en/__snapshots__/config-manager-export-themes.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/config-manager-export-ui-config.test.js.snap b/test/client_cli/en/__snapshots__/config-manager-export-ui-config.test.js.snap index 965a19da7..6288d5733 100644 --- a/test/client_cli/en/__snapshots__/config-manager-export-ui-config.test.js.snap +++ b/test/client_cli/en/__snapshots__/config-manager-export-ui-config.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/config-manager-export-variables.test.js.snap b/test/client_cli/en/__snapshots__/config-manager-export-variables.test.js.snap index 9b2b109ab..f23f80e8a 100644 --- a/test/client_cli/en/__snapshots__/config-manager-export-variables.test.js.snap +++ b/test/client_cli/en/__snapshots__/config-manager-export-variables.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/conn-alias-add.test.js.snap b/test/client_cli/en/__snapshots__/conn-alias-add.test.js.snap new file mode 100644 index 000000000..6539b4cef --- /dev/null +++ b/test/client_cli/en/__snapshots__/conn-alias-add.test.js.snap @@ -0,0 +1,92 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`CLI help interface for 'conn alias' should be expected english 1`] = ` +"Usage: frodo conn alias add [options] [host] + +Add connection profile alias. + +Arguments: + alias Alias name for this connection profile. + host AM base URL, e.g.: + https://cdk.iam.example.com/am. To use a + connection profile, just specify a + unique substring or alias. + +Options: + -D, --directory Set the working directory. + --debug Debug output during command execution. + If specified, may or may not produce + additional output helpful for + troubleshooting. + --flush-cache Flush token cache. + -h, --help Help + --idm-host IDM base URL, e.g.: + https://cdk.idm.example.com/myidm. Use + only if your IDM installation resides in + a different domain and/or if the base + path differs from the default + "/openidm". + --login-client-id Specify a custom OAuth2 client id to use + a your own oauth2 client for IDM API + calls in deployments of type "cloud" or + "forgeops". Your custom client must be + configured as a public client and allow + the authorization code grant using the + "openid fr:idm:*" scope. Use the + "--redirect-uri" parameter if you have + configured a custom redirect uri + (default: + "/platform/appAuthHelperRedirect.html"). + --login-redirect-uri Specify a custom redirect URI to use + with your custom OAuth2 client (efault: + "/platform/appAuthHelperRedirect.html"). + --no-cache Disable token cache for this operation. + --passphrase The passphrase for the Amster private + key if it is encrypted. + --private-key File containing the private key for + authenticating with Amster. Supported + formats include PEM (both PKCS#1 and + PKCS#8 variants), OpenSSH, DNSSEC, and + JWK. + --retry Retry failed operations. Valid values + for strategy: + everything: Retry all failed operations. + + network: Retry only network-related + failed operations. + nothing: Do not retry failed + operations. + The selected retry strategy controls how + the CLI handles failures. (choices: + "nothing", "everything", "network", + default: Do not retry failed + operations.) + --sa-id Service account id. + --sa-jwk-file File containing the JSON Web Key (JWK) + associated with the the service account. + --verbose Verbose output during command execution. + If specified, may or may not produce + additional output. + +Environment Variables: + FRODO_HOST: AM base URL. Overridden by 'host' argument. + FRODO_IDM_HOST: IDM base URL. Overridden by '--idm-host' option. + FRODO_REALM: Realm. Overridden by 'realm' argument. + FRODO_USERNAME: Username. Overridden by 'username' argument. + FRODO_PASSWORD: Password. Overridden by 'password' argument. + FRODO_LOGIN_CLIENT_ID: OAuth2 client id for IDM API calls. Overridden by '--login-client-id' option. + FRODO_LOGIN_REDIRECT_URI: Redirect Uri for custom OAuth2 client id. Overridden by '--login-redirect-uri' option. + FRODO_SA_ID: Service account uuid. Overridden by '--sa-id' option. + FRODO_SA_JWK: Service account JWK. Overridden by '--sa-jwk-file' option but takes the actual JWK as a value, not a file name. + FRODO_AMSTER_PASSPHRASE: Passphrase for the Amster private key if it is encrypted. Overridden by '--passphrase' option. + FRODO_AMSTER_PRIVATE_KEY: Amster private key. Overridden by '--private-key' option but takes the actual private key as a value (i.e. the file contents), not a file name. Supported formats include PEM (both PKCS#1 and PKCS#8 variants), OpenSSH, DNSSEC, and JWK. + FRODO_NO_CACHE: Disable token cache. Same as '--no-cache' option. + FRODO_TOKEN_CACHE_PATH: Use this token cache file instead of '~/.frodo/TokenCache.json'. + FRODO_CONNECTION_PROFILES_PATH: Use this connection profiles file instead of '~/.frodo/Connections.json'. + FRODO_AUTHENTICATION_SERVICE: Name of a login journey to use. When using an Amster private key, specifies which journey to use for Amster authentication as opposed to the default 'amsterService' journey. + FRODO_DEBUG: Set to any value to enable debug output. Same as '--debug'. + FRODO_MASTER_KEY_PATH: Use this master key file instead of '~/.frodo/masterkey.key' file. + FRODO_MASTER_KEY: Use this master key instead of what's in '~/.frodo/masterkey.key'. Takes precedence over FRODO_MASTER_KEY_PATH. + +" +`; diff --git a/test/client_cli/en/__snapshots__/conn-alias-delete.test.js.snap b/test/client_cli/en/__snapshots__/conn-alias-delete.test.js.snap new file mode 100644 index 000000000..754a2237d --- /dev/null +++ b/test/client_cli/en/__snapshots__/conn-alias-delete.test.js.snap @@ -0,0 +1,91 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`CLI help interface for 'conn alias' should be expected english 1`] = ` +"Usage: frodo conn alias delete [options] [host] + +Delete connection profile alias. + +Arguments: + host AM base URL, e.g.: + https://cdk.iam.example.com/am. To use a + connection profile, just specify a + unique substring or alias. + +Options: + -D, --directory Set the working directory. + --debug Debug output during command execution. + If specified, may or may not produce + additional output helpful for + troubleshooting. + --flush-cache Flush token cache. + -h, --help Help + --idm-host IDM base URL, e.g.: + https://cdk.idm.example.com/myidm. Use + only if your IDM installation resides in + a different domain and/or if the base + path differs from the default + "/openidm". + --login-client-id Specify a custom OAuth2 client id to use + a your own oauth2 client for IDM API + calls in deployments of type "cloud" or + "forgeops". Your custom client must be + configured as a public client and allow + the authorization code grant using the + "openid fr:idm:*" scope. Use the + "--redirect-uri" parameter if you have + configured a custom redirect uri + (default: + "/platform/appAuthHelperRedirect.html"). + --login-redirect-uri Specify a custom redirect URI to use + with your custom OAuth2 client (efault: + "/platform/appAuthHelperRedirect.html"). + --no-cache Disable token cache for this operation. + --passphrase The passphrase for the Amster private + key if it is encrypted. + --private-key File containing the private key for + authenticating with Amster. Supported + formats include PEM (both PKCS#1 and + PKCS#8 variants), OpenSSH, DNSSEC, and + JWK. + --retry Retry failed operations. Valid values + for strategy: + everything: Retry all failed operations. + + network: Retry only network-related + failed operations. + nothing: Do not retry failed + operations. + The selected retry strategy controls how + the CLI handles failures. (choices: + "nothing", "everything", "network", + default: Do not retry failed + operations.) + --sa-id Service account id. + --sa-jwk-file File containing the JSON Web Key (JWK) + associated with the the service account. + --verbose Verbose output during command execution. + If specified, may or may not produce + additional output. + +Environment Variables: + FRODO_HOST: AM base URL. Overridden by 'host' argument. + FRODO_IDM_HOST: IDM base URL. Overridden by '--idm-host' option. + FRODO_REALM: Realm. Overridden by 'realm' argument. + FRODO_USERNAME: Username. Overridden by 'username' argument. + FRODO_PASSWORD: Password. Overridden by 'password' argument. + FRODO_LOGIN_CLIENT_ID: OAuth2 client id for IDM API calls. Overridden by '--login-client-id' option. + FRODO_LOGIN_REDIRECT_URI: Redirect Uri for custom OAuth2 client id. Overridden by '--login-redirect-uri' option. + FRODO_SA_ID: Service account uuid. Overridden by '--sa-id' option. + FRODO_SA_JWK: Service account JWK. Overridden by '--sa-jwk-file' option but takes the actual JWK as a value, not a file name. + FRODO_AMSTER_PASSPHRASE: Passphrase for the Amster private key if it is encrypted. Overridden by '--passphrase' option. + FRODO_AMSTER_PRIVATE_KEY: Amster private key. Overridden by '--private-key' option but takes the actual private key as a value (i.e. the file contents), not a file name. Supported formats include PEM (both PKCS#1 and PKCS#8 variants), OpenSSH, DNSSEC, and JWK. + FRODO_NO_CACHE: Disable token cache. Same as '--no-cache' option. + FRODO_TOKEN_CACHE_PATH: Use this token cache file instead of '~/.frodo/TokenCache.json'. + FRODO_CONNECTION_PROFILES_PATH: Use this connection profiles file instead of '~/.frodo/Connections.json'. + FRODO_AUTHENTICATION_SERVICE: Name of a login journey to use. When using an Amster private key, specifies which journey to use for Amster authentication as opposed to the default 'amsterService' journey. + FRODO_DEBUG: Set to any value to enable debug output. Same as '--debug'. + FRODO_MASTER_KEY_PATH: Use this master key file instead of '~/.frodo/masterkey.key' file. + FRODO_MASTER_KEY: Use this master key instead of what's in '~/.frodo/masterkey.key'. Takes precedence over FRODO_MASTER_KEY_PATH. + +" +`; diff --git a/test/client_cli/en/__snapshots__/conn-alias.test.js.snap b/test/client_cli/en/__snapshots__/conn-alias.test.js.snap new file mode 100644 index 000000000..ee5ef085f --- /dev/null +++ b/test/client_cli/en/__snapshots__/conn-alias.test.js.snap @@ -0,0 +1,16 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`CLI help interface for 'conn alias' should be expected english 1`] = ` +"Usage: frodo conn alias [options] [command] + +Manage connection aliases. + +Options: + -h, --help Help + +Commands: + add Add connection profile alias. + delete Delete connection profile alias. + help display help for command +" +`; diff --git a/test/client_cli/en/__snapshots__/conn-delete.test.js.snap b/test/client_cli/en/__snapshots__/conn-delete.test.js.snap index a6338f733..8eb72108e 100644 --- a/test/client_cli/en/__snapshots__/conn-delete.test.js.snap +++ b/test/client_cli/en/__snapshots__/conn-delete.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. Options: -D, --directory Set the working directory. diff --git a/test/client_cli/en/__snapshots__/conn-describe.test.js.snap b/test/client_cli/en/__snapshots__/conn-describe.test.js.snap index 5262253d2..1d2fbc864 100644 --- a/test/client_cli/en/__snapshots__/conn-describe.test.js.snap +++ b/test/client_cli/en/__snapshots__/conn-describe.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. Options: -D, --directory Set the working directory. diff --git a/test/client_cli/en/__snapshots__/conn-save.test.js.snap b/test/client_cli/en/__snapshots__/conn-save.test.js.snap index 8984607a1..8f6a3ab16 100644 --- a/test/client_cli/en/__snapshots__/conn-save.test.js.snap +++ b/test/client_cli/en/__snapshots__/conn-save.test.js.snap @@ -6,11 +6,12 @@ exports[`CLI help interface for 'add' should be expected english 1`] = ` Save connection profiles. Arguments: - host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a unique substring. + host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a unique substring or alias. username Username to login with. Must be an admin user with appropriate rights to manage authentication journeys/trees. password Password. Options: + --alias [name] Alias name for this connection profile. --authentication-header-overrides [headers] Map of headers: {"host":"am.example.com:8081"}. --authentication-service [service] Name of the authentication service/tree to use. --curlirize Output all network calls in curl format. @@ -71,8 +72,12 @@ Usage Examples:  $ frodo conn save https://openam-matrix.id.forgerock.io/am thomas.anderson@metacortex.com 'Blu3P!ll3d'  Create a connection profile using Amster private key credentials (PingAM classic deployments only):  $ frodo conn save --private-key /home/trinity/am/security/keys/amster/amster_rsa https://am.example.com:8443/am + Create a connection profile with a new log API key and secret and a new service account and set an alias: + $ frodo conn save --alias MyConnection https://openam-matrix.id.forgerock.io/am thomas.anderson@metacortex.com 'Blu3P!ll3d'  Save an existing service account to an existing or new connection profile:  $ frodo conn save --sa-id b672336b-41ef-428d-ae4a-e0c082875377 --sa-jwk-file ./matrix-sa_privateKey.jwk https://openam-matrix.id.forgerock.io/am + Save an existing service account to an existing or new connection profile and set an alias: + $ frodo conn save --alias MyConnection --sa-id b672336b-41ef-428d-ae4a-e0c082875377 --sa-jwk-file ./matrix-sa_privateKey.jwk https://openam-matrix.id.forgerock.io/am  Save an existing service account to an existing connection profile (partial host URL only updates an existing profile):  $ frodo conn save --sa-id b672336b-41ef-428d-ae4a-e0c082875377 --sa-jwk-file ./matrix-sa_privateKey.jwk matrix  Save a connection profile for a Proxy Connect-protected PingOne Advanced Identity Cloud environment: @@ -91,11 +96,12 @@ exports[`CLI help interface for 'add' should be expected english 2`] = ` Save connection profiles. Arguments: - host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a unique substring. + host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a unique substring or alias. username Username to login with. Must be an admin user with appropriate rights to manage authentication journeys/trees. password Password. Options: + --alias [name] Alias name for this connection profile. --authentication-header-overrides [headers] Map of headers: {"host":"am.example.com:8081"}. --authentication-service [service] Name of the authentication service/tree to use. --curlirize Output all network calls in curl format. @@ -156,8 +162,12 @@ Usage Examples:  $ frodo conn save https://openam-matrix.id.forgerock.io/am thomas.anderson@metacortex.com 'Blu3P!ll3d'  Create a connection profile using Amster private key credentials (PingAM classic deployments only):  $ frodo conn save --private-key /home/trinity/am/security/keys/amster/amster_rsa https://am.example.com:8443/am + Create a connection profile with a new log API key and secret and a new service account and set an alias: + $ frodo conn save --alias MyConnection https://openam-matrix.id.forgerock.io/am thomas.anderson@metacortex.com 'Blu3P!ll3d'  Save an existing service account to an existing or new connection profile:  $ frodo conn save --sa-id b672336b-41ef-428d-ae4a-e0c082875377 --sa-jwk-file ./matrix-sa_privateKey.jwk https://openam-matrix.id.forgerock.io/am + Save an existing service account to an existing or new connection profile and set an alias: + $ frodo conn save --alias MyConnection --sa-id b672336b-41ef-428d-ae4a-e0c082875377 --sa-jwk-file ./matrix-sa_privateKey.jwk https://openam-matrix.id.forgerock.io/am  Save an existing service account to an existing connection profile (partial host URL only updates an existing profile):  $ frodo conn save --sa-id b672336b-41ef-428d-ae4a-e0c082875377 --sa-jwk-file ./matrix-sa_privateKey.jwk matrix  Save a connection profile for a Proxy Connect-protected PingOne Advanced Identity Cloud environment: @@ -176,11 +186,12 @@ exports[`CLI help interface for 'save' should be expected english 1`] = ` Save connection profiles. Arguments: - host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a unique substring. + host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a unique substring or alias. username Username to login with. Must be an admin user with appropriate rights to manage authentication journeys/trees. password Password. Options: + --alias [name] Alias name for this connection profile. --authentication-header-overrides [headers] Map of headers: {"host":"am.example.com:8081"}. --authentication-service [service] Name of the authentication service/tree to use. --curlirize Output all network calls in curl format. @@ -241,8 +252,12 @@ Usage Examples:  $ frodo conn save https://openam-matrix.id.forgerock.io/am thomas.anderson@metacortex.com 'Blu3P!ll3d'  Create a connection profile using Amster private key credentials (PingAM classic deployments only):  $ frodo conn save --private-key /home/trinity/am/security/keys/amster/amster_rsa https://am.example.com:8443/am + Create a connection profile with a new log API key and secret and a new service account and set an alias: + $ frodo conn save --alias MyConnection https://openam-matrix.id.forgerock.io/am thomas.anderson@metacortex.com 'Blu3P!ll3d'  Save an existing service account to an existing or new connection profile:  $ frodo conn save --sa-id b672336b-41ef-428d-ae4a-e0c082875377 --sa-jwk-file ./matrix-sa_privateKey.jwk https://openam-matrix.id.forgerock.io/am + Save an existing service account to an existing or new connection profile and set an alias: + $ frodo conn save --alias MyConnection --sa-id b672336b-41ef-428d-ae4a-e0c082875377 --sa-jwk-file ./matrix-sa_privateKey.jwk https://openam-matrix.id.forgerock.io/am  Save an existing service account to an existing connection profile (partial host URL only updates an existing profile):  $ frodo conn save --sa-id b672336b-41ef-428d-ae4a-e0c082875377 --sa-jwk-file ./matrix-sa_privateKey.jwk matrix  Save a connection profile for a Proxy Connect-protected PingOne Advanced Identity Cloud environment: @@ -261,11 +276,12 @@ exports[`CLI help interface for 'save' should be expected english 2`] = ` Save connection profiles. Arguments: - host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a unique substring. + host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a unique substring or alias. username Username to login with. Must be an admin user with appropriate rights to manage authentication journeys/trees. password Password. Options: + --alias [name] Alias name for this connection profile. --authentication-header-overrides [headers] Map of headers: {"host":"am.example.com:8081"}. --authentication-service [service] Name of the authentication service/tree to use. --curlirize Output all network calls in curl format. @@ -326,8 +342,12 @@ Usage Examples:  $ frodo conn save https://openam-matrix.id.forgerock.io/am thomas.anderson@metacortex.com 'Blu3P!ll3d'  Create a connection profile using Amster private key credentials (PingAM classic deployments only):  $ frodo conn save --private-key /home/trinity/am/security/keys/amster/amster_rsa https://am.example.com:8443/am + Create a connection profile with a new log API key and secret and a new service account and set an alias: + $ frodo conn save --alias MyConnection https://openam-matrix.id.forgerock.io/am thomas.anderson@metacortex.com 'Blu3P!ll3d'  Save an existing service account to an existing or new connection profile:  $ frodo conn save --sa-id b672336b-41ef-428d-ae4a-e0c082875377 --sa-jwk-file ./matrix-sa_privateKey.jwk https://openam-matrix.id.forgerock.io/am + Save an existing service account to an existing or new connection profile and set an alias: + $ frodo conn save --alias MyConnection --sa-id b672336b-41ef-428d-ae4a-e0c082875377 --sa-jwk-file ./matrix-sa_privateKey.jwk https://openam-matrix.id.forgerock.io/am  Save an existing service account to an existing connection profile (partial host URL only updates an existing profile):  $ frodo conn save --sa-id b672336b-41ef-428d-ae4a-e0c082875377 --sa-jwk-file ./matrix-sa_privateKey.jwk matrix  Save a connection profile for a Proxy Connect-protected PingOne Advanced Identity Cloud environment: diff --git a/test/client_cli/en/__snapshots__/conn.test.js.snap b/test/client_cli/en/__snapshots__/conn.test.js.snap index 28fdb9984..4c969b2c7 100644 --- a/test/client_cli/en/__snapshots__/conn.test.js.snap +++ b/test/client_cli/en/__snapshots__/conn.test.js.snap @@ -9,6 +9,7 @@ Options: -h, --help Help Commands: + alias Manage connection aliases. delete Delete connection profiles. describe Describe connection profile. help display help for command diff --git a/test/client_cli/en/__snapshots__/email-template-delete.test.js.snap b/test/client_cli/en/__snapshots__/email-template-delete.test.js.snap index 6791a6b2b..0c70657f9 100644 --- a/test/client_cli/en/__snapshots__/email-template-delete.test.js.snap +++ b/test/client_cli/en/__snapshots__/email-template-delete.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/email-template-export.test.js.snap b/test/client_cli/en/__snapshots__/email-template-export.test.js.snap index 42f481754..1a7fc23db 100644 --- a/test/client_cli/en/__snapshots__/email-template-export.test.js.snap +++ b/test/client_cli/en/__snapshots__/email-template-export.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/email-template-import.test.js.snap b/test/client_cli/en/__snapshots__/email-template-import.test.js.snap index 2bb065641..94700a529 100644 --- a/test/client_cli/en/__snapshots__/email-template-import.test.js.snap +++ b/test/client_cli/en/__snapshots__/email-template-import.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/email-template-list.test.js.snap b/test/client_cli/en/__snapshots__/email-template-list.test.js.snap index 61f451689..9c3687dbb 100644 --- a/test/client_cli/en/__snapshots__/email-template-list.test.js.snap +++ b/test/client_cli/en/__snapshots__/email-template-list.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/esv-apply.test.js.snap b/test/client_cli/en/__snapshots__/esv-apply.test.js.snap index a9b3b9039..30927c74e 100644 --- a/test/client_cli/en/__snapshots__/esv-apply.test.js.snap +++ b/test/client_cli/en/__snapshots__/esv-apply.test.js.snap @@ -11,7 +11,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. username Username to login with. Must be an admin user with appropriate rights to manage authentication journeys/trees. diff --git a/test/client_cli/en/__snapshots__/esv-secret-create.test.js.snap b/test/client_cli/en/__snapshots__/esv-secret-create.test.js.snap index dc3a1c2b4..c0ae346dd 100644 --- a/test/client_cli/en/__snapshots__/esv-secret-create.test.js.snap +++ b/test/client_cli/en/__snapshots__/esv-secret-create.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. username Username to login with. Must be an admin user with appropriate rights to manage authentication journeys/trees. diff --git a/test/client_cli/en/__snapshots__/esv-secret-delete.test.js.snap b/test/client_cli/en/__snapshots__/esv-secret-delete.test.js.snap index e38e676cb..34b9ddde0 100644 --- a/test/client_cli/en/__snapshots__/esv-secret-delete.test.js.snap +++ b/test/client_cli/en/__snapshots__/esv-secret-delete.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. username Username to login with. Must be an admin user with appropriate rights to manage authentication journeys/trees. diff --git a/test/client_cli/en/__snapshots__/esv-secret-describe.test.js.snap b/test/client_cli/en/__snapshots__/esv-secret-describe.test.js.snap index 00e89de08..23ab05da7 100644 --- a/test/client_cli/en/__snapshots__/esv-secret-describe.test.js.snap +++ b/test/client_cli/en/__snapshots__/esv-secret-describe.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. username Username to login with. Must be an admin user with appropriate rights to manage authentication journeys/trees. diff --git a/test/client_cli/en/__snapshots__/esv-secret-export.test.js.snap b/test/client_cli/en/__snapshots__/esv-secret-export.test.js.snap index 442a06709..f654c55ab 100644 --- a/test/client_cli/en/__snapshots__/esv-secret-export.test.js.snap +++ b/test/client_cli/en/__snapshots__/esv-secret-export.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. username Username to login with. Must be an admin user with appropriate rights to manage authentication journeys/trees. diff --git a/test/client_cli/en/__snapshots__/esv-secret-import.test.js.snap b/test/client_cli/en/__snapshots__/esv-secret-import.test.js.snap index 2296b8572..a7e6e03b4 100644 --- a/test/client_cli/en/__snapshots__/esv-secret-import.test.js.snap +++ b/test/client_cli/en/__snapshots__/esv-secret-import.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. username Username to login with. Must be an admin user with appropriate rights to manage authentication journeys/trees. diff --git a/test/client_cli/en/__snapshots__/esv-secret-list.test.js.snap b/test/client_cli/en/__snapshots__/esv-secret-list.test.js.snap index 025c3dd88..26f492fb1 100644 --- a/test/client_cli/en/__snapshots__/esv-secret-list.test.js.snap +++ b/test/client_cli/en/__snapshots__/esv-secret-list.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. username Username to login with. Must be an admin user with appropriate rights to manage authentication journeys/trees. diff --git a/test/client_cli/en/__snapshots__/esv-secret-set.test.js.snap b/test/client_cli/en/__snapshots__/esv-secret-set.test.js.snap index 3ac402edb..84c095c48 100644 --- a/test/client_cli/en/__snapshots__/esv-secret-set.test.js.snap +++ b/test/client_cli/en/__snapshots__/esv-secret-set.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. username Username to login with. Must be an admin user with appropriate rights to manage authentication journeys/trees. diff --git a/test/client_cli/en/__snapshots__/esv-secret-version-activate.test.js.snap b/test/client_cli/en/__snapshots__/esv-secret-version-activate.test.js.snap index aefda2086..60463e2e8 100644 --- a/test/client_cli/en/__snapshots__/esv-secret-version-activate.test.js.snap +++ b/test/client_cli/en/__snapshots__/esv-secret-version-activate.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. username Username to login with. Must be an admin user with appropriate rights to manage authentication journeys/trees. diff --git a/test/client_cli/en/__snapshots__/esv-secret-version-create.test.js.snap b/test/client_cli/en/__snapshots__/esv-secret-version-create.test.js.snap index 9426a3859..1c2e1a14e 100644 --- a/test/client_cli/en/__snapshots__/esv-secret-version-create.test.js.snap +++ b/test/client_cli/en/__snapshots__/esv-secret-version-create.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. username Username to login with. Must be an admin user with appropriate rights to manage authentication journeys/trees. diff --git a/test/client_cli/en/__snapshots__/esv-secret-version-deactivate.test.js.snap b/test/client_cli/en/__snapshots__/esv-secret-version-deactivate.test.js.snap index bd549140e..61a7aa9dd 100644 --- a/test/client_cli/en/__snapshots__/esv-secret-version-deactivate.test.js.snap +++ b/test/client_cli/en/__snapshots__/esv-secret-version-deactivate.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. username Username to login with. Must be an admin user with appropriate rights to manage authentication journeys/trees. diff --git a/test/client_cli/en/__snapshots__/esv-secret-version-delete.test.js.snap b/test/client_cli/en/__snapshots__/esv-secret-version-delete.test.js.snap index 350962967..8aa8da3cd 100644 --- a/test/client_cli/en/__snapshots__/esv-secret-version-delete.test.js.snap +++ b/test/client_cli/en/__snapshots__/esv-secret-version-delete.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. username Username to login with. Must be an admin user with appropriate rights to manage authentication journeys/trees. diff --git a/test/client_cli/en/__snapshots__/esv-secret-version-list.test.js.snap b/test/client_cli/en/__snapshots__/esv-secret-version-list.test.js.snap index 279bd2901..814b49d42 100644 --- a/test/client_cli/en/__snapshots__/esv-secret-version-list.test.js.snap +++ b/test/client_cli/en/__snapshots__/esv-secret-version-list.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. username Username to login with. Must be an admin user with appropriate rights to manage authentication journeys/trees. diff --git a/test/client_cli/en/__snapshots__/esv-variable-create.test.js.snap b/test/client_cli/en/__snapshots__/esv-variable-create.test.js.snap index ccea96392..52980d42f 100644 --- a/test/client_cli/en/__snapshots__/esv-variable-create.test.js.snap +++ b/test/client_cli/en/__snapshots__/esv-variable-create.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. username Username to login with. Must be an admin user with appropriate rights to manage authentication journeys/trees. diff --git a/test/client_cli/en/__snapshots__/esv-variable-delete.test.js.snap b/test/client_cli/en/__snapshots__/esv-variable-delete.test.js.snap index 4839cd961..410159dc7 100644 --- a/test/client_cli/en/__snapshots__/esv-variable-delete.test.js.snap +++ b/test/client_cli/en/__snapshots__/esv-variable-delete.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. username Username to login with. Must be an admin user with appropriate rights to manage authentication journeys/trees. diff --git a/test/client_cli/en/__snapshots__/esv-variable-describe.test.js.snap b/test/client_cli/en/__snapshots__/esv-variable-describe.test.js.snap index a657afb3b..25780c1f9 100644 --- a/test/client_cli/en/__snapshots__/esv-variable-describe.test.js.snap +++ b/test/client_cli/en/__snapshots__/esv-variable-describe.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. username Username to login with. Must be an admin user with appropriate rights to manage authentication journeys/trees. diff --git a/test/client_cli/en/__snapshots__/esv-variable-export.test.js.snap b/test/client_cli/en/__snapshots__/esv-variable-export.test.js.snap index 77063393b..1752304f9 100644 --- a/test/client_cli/en/__snapshots__/esv-variable-export.test.js.snap +++ b/test/client_cli/en/__snapshots__/esv-variable-export.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. username Username to login with. Must be an admin user with appropriate rights to manage authentication journeys/trees. diff --git a/test/client_cli/en/__snapshots__/esv-variable-import.test.js.snap b/test/client_cli/en/__snapshots__/esv-variable-import.test.js.snap index 4f37e4289..f8f81bd33 100644 --- a/test/client_cli/en/__snapshots__/esv-variable-import.test.js.snap +++ b/test/client_cli/en/__snapshots__/esv-variable-import.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. username Username to login with. Must be an admin user with appropriate rights to manage authentication journeys/trees. diff --git a/test/client_cli/en/__snapshots__/esv-variable-list.test.js.snap b/test/client_cli/en/__snapshots__/esv-variable-list.test.js.snap index 00a08c491..822e8a737 100644 --- a/test/client_cli/en/__snapshots__/esv-variable-list.test.js.snap +++ b/test/client_cli/en/__snapshots__/esv-variable-list.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. username Username to login with. Must be an admin user with appropriate rights to manage authentication journeys/trees. diff --git a/test/client_cli/en/__snapshots__/esv-variable-set.test.js.snap b/test/client_cli/en/__snapshots__/esv-variable-set.test.js.snap index 99e433b51..5d4f5f81c 100644 --- a/test/client_cli/en/__snapshots__/esv-variable-set.test.js.snap +++ b/test/client_cli/en/__snapshots__/esv-variable-set.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. username Username to login with. Must be an admin user with appropriate rights to manage authentication journeys/trees. diff --git a/test/client_cli/en/__snapshots__/idm-count.test.js.snap b/test/client_cli/en/__snapshots__/idm-count.test.js.snap index 8da7dfcc2..7f7664070 100644 --- a/test/client_cli/en/__snapshots__/idm-count.test.js.snap +++ b/test/client_cli/en/__snapshots__/idm-count.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/idm-delete.test.js.snap b/test/client_cli/en/__snapshots__/idm-delete.test.js.snap index 596d17ffe..26117a516 100644 --- a/test/client_cli/en/__snapshots__/idm-delete.test.js.snap +++ b/test/client_cli/en/__snapshots__/idm-delete.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/idm-export.test.js.snap b/test/client_cli/en/__snapshots__/idm-export.test.js.snap index 64b73a7dc..d2ff5ac9a 100644 --- a/test/client_cli/en/__snapshots__/idm-export.test.js.snap +++ b/test/client_cli/en/__snapshots__/idm-export.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/idm-import.test.js.snap b/test/client_cli/en/__snapshots__/idm-import.test.js.snap index 73e21ba57..1bf6e54cf 100644 --- a/test/client_cli/en/__snapshots__/idm-import.test.js.snap +++ b/test/client_cli/en/__snapshots__/idm-import.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/idm-list.test.js.snap b/test/client_cli/en/__snapshots__/idm-list.test.js.snap index f72eb351f..7a8710fed 100644 --- a/test/client_cli/en/__snapshots__/idm-list.test.js.snap +++ b/test/client_cli/en/__snapshots__/idm-list.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/idm-schema-object-export.test.js.snap b/test/client_cli/en/__snapshots__/idm-schema-object-export.test.js.snap index d98352ffd..98b2e56ef 100644 --- a/test/client_cli/en/__snapshots__/idm-schema-object-export.test.js.snap +++ b/test/client_cli/en/__snapshots__/idm-schema-object-export.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/idm-schema-object-import.test.js.snap b/test/client_cli/en/__snapshots__/idm-schema-object-import.test.js.snap index d98352ffd..98b2e56ef 100644 --- a/test/client_cli/en/__snapshots__/idm-schema-object-import.test.js.snap +++ b/test/client_cli/en/__snapshots__/idm-schema-object-import.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/idp-delete.test.js.snap b/test/client_cli/en/__snapshots__/idp-delete.test.js.snap index 922fb20a3..54d02d37f 100644 --- a/test/client_cli/en/__snapshots__/idp-delete.test.js.snap +++ b/test/client_cli/en/__snapshots__/idp-delete.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/idp-export.test.js.snap b/test/client_cli/en/__snapshots__/idp-export.test.js.snap index 67229b5b8..182f2470f 100644 --- a/test/client_cli/en/__snapshots__/idp-export.test.js.snap +++ b/test/client_cli/en/__snapshots__/idp-export.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/idp-import.test.js.snap b/test/client_cli/en/__snapshots__/idp-import.test.js.snap index d098342d3..521bdba6f 100644 --- a/test/client_cli/en/__snapshots__/idp-import.test.js.snap +++ b/test/client_cli/en/__snapshots__/idp-import.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/idp-list.test.js.snap b/test/client_cli/en/__snapshots__/idp-list.test.js.snap index 47ba48621..cc9750c00 100644 --- a/test/client_cli/en/__snapshots__/idp-list.test.js.snap +++ b/test/client_cli/en/__snapshots__/idp-list.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/info.test.js.snap b/test/client_cli/en/__snapshots__/info.test.js.snap index 1cb9b5447..9a250e700 100644 --- a/test/client_cli/en/__snapshots__/info.test.js.snap +++ b/test/client_cli/en/__snapshots__/info.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. username Username to login with. Must be an admin user with appropriate rights to manage authentication journeys/trees. @@ -123,9 +123,9 @@ Usage Examples:  $ frodo info https://openam-matrix.id.forgerock.io/am thomas.anderson@metacortex.com 'Blu3P!ll3d'  Show human-readable output and login using a connection profile (identified by the full AM base URL):  $ frodo info https://openam-matrix.id.forgerock.io/am - Show human-readable output and login using a connection profile (identified by a unique substring of the AM base URL): + Show human-readable output and login using a connection profile (identified by a unique substring of the AM base URL or a saved alias):  $ frodo info matrix - Show JSON output and login using the AM base URL's unique substring to identify the connection profile: + Show JSON output and login using the AM base URL's unique substring or a saved alias to identify the connection profile:  $ frodo info --json matrix  " diff --git a/test/client_cli/en/__snapshots__/journey-delete.test.js.snap b/test/client_cli/en/__snapshots__/journey-delete.test.js.snap index 762265c44..e0c805558 100644 --- a/test/client_cli/en/__snapshots__/journey-delete.test.js.snap +++ b/test/client_cli/en/__snapshots__/journey-delete.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/journey-describe.test.js.snap b/test/client_cli/en/__snapshots__/journey-describe.test.js.snap index 2fa7c0a4c..25eac713a 100644 --- a/test/client_cli/en/__snapshots__/journey-describe.test.js.snap +++ b/test/client_cli/en/__snapshots__/journey-describe.test.js.snap @@ -11,7 +11,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/journey-disable.test.js.snap b/test/client_cli/en/__snapshots__/journey-disable.test.js.snap index 68e01e4d9..5de7fcba1 100644 --- a/test/client_cli/en/__snapshots__/journey-disable.test.js.snap +++ b/test/client_cli/en/__snapshots__/journey-disable.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/journey-enable.test.js.snap b/test/client_cli/en/__snapshots__/journey-enable.test.js.snap index cef466c64..e71711eb6 100644 --- a/test/client_cli/en/__snapshots__/journey-enable.test.js.snap +++ b/test/client_cli/en/__snapshots__/journey-enable.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/journey-export.test.js.snap b/test/client_cli/en/__snapshots__/journey-export.test.js.snap index 90e00d561..9c2f1eff6 100644 --- a/test/client_cli/en/__snapshots__/journey-export.test.js.snap +++ b/test/client_cli/en/__snapshots__/journey-export.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/journey-import.test.js.snap b/test/client_cli/en/__snapshots__/journey-import.test.js.snap index e22c26140..5897081c9 100644 --- a/test/client_cli/en/__snapshots__/journey-import.test.js.snap +++ b/test/client_cli/en/__snapshots__/journey-import.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/journey-list.test.js.snap b/test/client_cli/en/__snapshots__/journey-list.test.js.snap index 860fb1525..d26f41b23 100644 --- a/test/client_cli/en/__snapshots__/journey-list.test.js.snap +++ b/test/client_cli/en/__snapshots__/journey-list.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/journey-prune.test.js.snap b/test/client_cli/en/__snapshots__/journey-prune.test.js.snap index ec3e587ba..88dc91ec7 100644 --- a/test/client_cli/en/__snapshots__/journey-prune.test.js.snap +++ b/test/client_cli/en/__snapshots__/journey-prune.test.js.snap @@ -11,7 +11,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/log-fetch.test.js.snap b/test/client_cli/en/__snapshots__/log-fetch.test.js.snap index c8301fa4f..3b09a9664 100644 --- a/test/client_cli/en/__snapshots__/log-fetch.test.js.snap +++ b/test/client_cli/en/__snapshots__/log-fetch.test.js.snap @@ -11,7 +11,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. username Username to login with. Must be an admin user with appropriate rights to manage authentication journeys/trees. @@ -161,7 +161,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. username Username to login with. Must be an admin user with appropriate rights to manage authentication journeys/trees. diff --git a/test/client_cli/en/__snapshots__/log-list.test.js.snap b/test/client_cli/en/__snapshots__/log-list.test.js.snap index ee8e1cf15..8b5ce5c8a 100644 --- a/test/client_cli/en/__snapshots__/log-list.test.js.snap +++ b/test/client_cli/en/__snapshots__/log-list.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. username Username to login with. Must be an admin user with appropriate rights to manage authentication journeys/trees. @@ -131,7 +131,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. username Username to login with. Must be an admin user with appropriate rights to manage authentication journeys/trees. diff --git a/test/client_cli/en/__snapshots__/log-tail.test.js.snap b/test/client_cli/en/__snapshots__/log-tail.test.js.snap index 99dd68319..4f19e245d 100644 --- a/test/client_cli/en/__snapshots__/log-tail.test.js.snap +++ b/test/client_cli/en/__snapshots__/log-tail.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. username Username to login with. Must be an admin user with appropriate rights to manage authentication journeys/trees. @@ -147,7 +147,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. username Username to login with. Must be an admin user with appropriate rights to manage authentication journeys/trees. diff --git a/test/client_cli/en/__snapshots__/mapping-delete.test.js.snap b/test/client_cli/en/__snapshots__/mapping-delete.test.js.snap index 7bdf5249c..2275f42b8 100644 --- a/test/client_cli/en/__snapshots__/mapping-delete.test.js.snap +++ b/test/client_cli/en/__snapshots__/mapping-delete.test.js.snap @@ -6,7 +6,7 @@ exports[`CLI help interface for 'mapping delete' should be expected english 1`] Delete IDM mappings. Arguments: - host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a unique substring. + host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for Identity Cloud tenants, "/" otherwise.) username Username to login with. Must be an admin user with appropriate rights to manage authentication journeys/trees. password Password. diff --git a/test/client_cli/en/__snapshots__/mapping-export.test.js.snap b/test/client_cli/en/__snapshots__/mapping-export.test.js.snap index 6878ca7a3..bd214ca40 100644 --- a/test/client_cli/en/__snapshots__/mapping-export.test.js.snap +++ b/test/client_cli/en/__snapshots__/mapping-export.test.js.snap @@ -6,7 +6,7 @@ exports[`CLI help interface for 'mapping export' should be expected english 1`] Export IDM mappings. Arguments: - host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a unique substring. + host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for Identity Cloud tenants, "/" otherwise.) username Username to login with. Must be an admin user with appropriate rights to manage authentication journeys/trees. password Password. diff --git a/test/client_cli/en/__snapshots__/mapping-import.test.js.snap b/test/client_cli/en/__snapshots__/mapping-import.test.js.snap index 99c9f1615..c4dbff554 100644 --- a/test/client_cli/en/__snapshots__/mapping-import.test.js.snap +++ b/test/client_cli/en/__snapshots__/mapping-import.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/mapping-list.test.js.snap b/test/client_cli/en/__snapshots__/mapping-list.test.js.snap index 6cde48d0a..68e60de86 100644 --- a/test/client_cli/en/__snapshots__/mapping-list.test.js.snap +++ b/test/client_cli/en/__snapshots__/mapping-list.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/mapping-rename.test.js.snap b/test/client_cli/en/__snapshots__/mapping-rename.test.js.snap index 01e1e0d82..b181db6db 100644 --- a/test/client_cli/en/__snapshots__/mapping-rename.test.js.snap +++ b/test/client_cli/en/__snapshots__/mapping-rename.test.js.snap @@ -11,7 +11,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/node-delete.test.js.snap b/test/client_cli/en/__snapshots__/node-delete.test.js.snap index 547c238d9..ba4fa5eb1 100644 --- a/test/client_cli/en/__snapshots__/node-delete.test.js.snap +++ b/test/client_cli/en/__snapshots__/node-delete.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/node-describe.test.js.snap b/test/client_cli/en/__snapshots__/node-describe.test.js.snap index ea9bff17a..aa69ac949 100644 --- a/test/client_cli/en/__snapshots__/node-describe.test.js.snap +++ b/test/client_cli/en/__snapshots__/node-describe.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/node-export.test.js.snap b/test/client_cli/en/__snapshots__/node-export.test.js.snap index ff6c59058..e4016a09c 100644 --- a/test/client_cli/en/__snapshots__/node-export.test.js.snap +++ b/test/client_cli/en/__snapshots__/node-export.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/node-import.test.js.snap b/test/client_cli/en/__snapshots__/node-import.test.js.snap index 2f5fdabc5..4d7aa6f4a 100644 --- a/test/client_cli/en/__snapshots__/node-import.test.js.snap +++ b/test/client_cli/en/__snapshots__/node-import.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/node-list.test.js.snap b/test/client_cli/en/__snapshots__/node-list.test.js.snap index 863488a72..a3d104245 100644 --- a/test/client_cli/en/__snapshots__/node-list.test.js.snap +++ b/test/client_cli/en/__snapshots__/node-list.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/oauth-client-delete.test.js.snap b/test/client_cli/en/__snapshots__/oauth-client-delete.test.js.snap index 002ea1fac..ec40c5ede 100644 --- a/test/client_cli/en/__snapshots__/oauth-client-delete.test.js.snap +++ b/test/client_cli/en/__snapshots__/oauth-client-delete.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/oauth-client-export.test.js.snap b/test/client_cli/en/__snapshots__/oauth-client-export.test.js.snap index 5a0f9a10a..19131f8de 100644 --- a/test/client_cli/en/__snapshots__/oauth-client-export.test.js.snap +++ b/test/client_cli/en/__snapshots__/oauth-client-export.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/oauth-client-import.test.js.snap b/test/client_cli/en/__snapshots__/oauth-client-import.test.js.snap index ba9eab758..7feefcdc8 100644 --- a/test/client_cli/en/__snapshots__/oauth-client-import.test.js.snap +++ b/test/client_cli/en/__snapshots__/oauth-client-import.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/oauth-client-list.test.js.snap b/test/client_cli/en/__snapshots__/oauth-client-list.test.js.snap index e32819ecc..3a18005f7 100644 --- a/test/client_cli/en/__snapshots__/oauth-client-list.test.js.snap +++ b/test/client_cli/en/__snapshots__/oauth-client-list.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/promote.test.js.snap b/test/client_cli/en/__snapshots__/promote.test.js.snap index 170feb71c..b4d71a1a7 100644 --- a/test/client_cli/en/__snapshots__/promote.test.js.snap +++ b/test/client_cli/en/__snapshots__/promote.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/realm-add-custom-domain.test.js.snap b/test/client_cli/en/__snapshots__/realm-add-custom-domain.test.js.snap index ca6edbc27..3edd43d61 100644 --- a/test/client_cli/en/__snapshots__/realm-add-custom-domain.test.js.snap +++ b/test/client_cli/en/__snapshots__/realm-add-custom-domain.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/realm-describe.test.js.snap b/test/client_cli/en/__snapshots__/realm-describe.test.js.snap index 36057c542..7c265580e 100644 --- a/test/client_cli/en/__snapshots__/realm-describe.test.js.snap +++ b/test/client_cli/en/__snapshots__/realm-describe.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/realm-export.test.js.snap b/test/client_cli/en/__snapshots__/realm-export.test.js.snap index 68faca7e2..f1b4a991e 100644 --- a/test/client_cli/en/__snapshots__/realm-export.test.js.snap +++ b/test/client_cli/en/__snapshots__/realm-export.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/realm-import.test.js.snap b/test/client_cli/en/__snapshots__/realm-import.test.js.snap index 285a8ae22..781b7783a 100644 --- a/test/client_cli/en/__snapshots__/realm-import.test.js.snap +++ b/test/client_cli/en/__snapshots__/realm-import.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/realm-list.test.js.snap b/test/client_cli/en/__snapshots__/realm-list.test.js.snap index 7399394c7..55099be3c 100644 --- a/test/client_cli/en/__snapshots__/realm-list.test.js.snap +++ b/test/client_cli/en/__snapshots__/realm-list.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/realm-remove-custom-domain.test.js.snap b/test/client_cli/en/__snapshots__/realm-remove-custom-domain.test.js.snap index cdfb83a64..0fb6e4749 100644 --- a/test/client_cli/en/__snapshots__/realm-remove-custom-domain.test.js.snap +++ b/test/client_cli/en/__snapshots__/realm-remove-custom-domain.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/role-export.test.js.snap b/test/client_cli/en/__snapshots__/role-export.test.js.snap index 452d145ea..6c134103e 100644 --- a/test/client_cli/en/__snapshots__/role-export.test.js.snap +++ b/test/client_cli/en/__snapshots__/role-export.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/role-import.test.js.snap b/test/client_cli/en/__snapshots__/role-import.test.js.snap index b70df76e1..2847d49b3 100644 --- a/test/client_cli/en/__snapshots__/role-import.test.js.snap +++ b/test/client_cli/en/__snapshots__/role-import.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/role-list.test.js.snap b/test/client_cli/en/__snapshots__/role-list.test.js.snap index cf320e1b4..a301b9b8a 100644 --- a/test/client_cli/en/__snapshots__/role-list.test.js.snap +++ b/test/client_cli/en/__snapshots__/role-list.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/saml-cot-export.test.js.snap b/test/client_cli/en/__snapshots__/saml-cot-export.test.js.snap index c0a1040af..a9a94c3d7 100644 --- a/test/client_cli/en/__snapshots__/saml-cot-export.test.js.snap +++ b/test/client_cli/en/__snapshots__/saml-cot-export.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/saml-cot-import.test.js.snap b/test/client_cli/en/__snapshots__/saml-cot-import.test.js.snap index 01a865ab5..0a2440023 100644 --- a/test/client_cli/en/__snapshots__/saml-cot-import.test.js.snap +++ b/test/client_cli/en/__snapshots__/saml-cot-import.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/saml-cot-list.test.js.snap b/test/client_cli/en/__snapshots__/saml-cot-list.test.js.snap index 4b21a0ecb..a6556416f 100644 --- a/test/client_cli/en/__snapshots__/saml-cot-list.test.js.snap +++ b/test/client_cli/en/__snapshots__/saml-cot-list.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/saml-delete.test.js.snap b/test/client_cli/en/__snapshots__/saml-delete.test.js.snap index f94c40768..eea7f9636 100644 --- a/test/client_cli/en/__snapshots__/saml-delete.test.js.snap +++ b/test/client_cli/en/__snapshots__/saml-delete.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/saml-describe.test.js.snap b/test/client_cli/en/__snapshots__/saml-describe.test.js.snap index af9ca0d8e..53942be97 100644 --- a/test/client_cli/en/__snapshots__/saml-describe.test.js.snap +++ b/test/client_cli/en/__snapshots__/saml-describe.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/saml-export.test.js.snap b/test/client_cli/en/__snapshots__/saml-export.test.js.snap index 2df99b17e..13e2fe3d2 100644 --- a/test/client_cli/en/__snapshots__/saml-export.test.js.snap +++ b/test/client_cli/en/__snapshots__/saml-export.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/saml-import.test.js.snap b/test/client_cli/en/__snapshots__/saml-import.test.js.snap index 1fe9a3c8c..8a7abea04 100644 --- a/test/client_cli/en/__snapshots__/saml-import.test.js.snap +++ b/test/client_cli/en/__snapshots__/saml-import.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/saml-list.test.js.snap b/test/client_cli/en/__snapshots__/saml-list.test.js.snap index b27c16d6a..d09f35d44 100644 --- a/test/client_cli/en/__snapshots__/saml-list.test.js.snap +++ b/test/client_cli/en/__snapshots__/saml-list.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/saml-metadata-export.test.js.snap b/test/client_cli/en/__snapshots__/saml-metadata-export.test.js.snap index 3d8ff9eca..a17b00a68 100644 --- a/test/client_cli/en/__snapshots__/saml-metadata-export.test.js.snap +++ b/test/client_cli/en/__snapshots__/saml-metadata-export.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/script-delete.test.js.snap b/test/client_cli/en/__snapshots__/script-delete.test.js.snap index 2bfb96e33..4ff56da6e 100644 --- a/test/client_cli/en/__snapshots__/script-delete.test.js.snap +++ b/test/client_cli/en/__snapshots__/script-delete.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/script-describe.test.js.snap b/test/client_cli/en/__snapshots__/script-describe.test.js.snap index a22ee323b..c3dde6be8 100644 --- a/test/client_cli/en/__snapshots__/script-describe.test.js.snap +++ b/test/client_cli/en/__snapshots__/script-describe.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/script-export.test.js.snap b/test/client_cli/en/__snapshots__/script-export.test.js.snap index a53ce1c28..1a55a9e63 100644 --- a/test/client_cli/en/__snapshots__/script-export.test.js.snap +++ b/test/client_cli/en/__snapshots__/script-export.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/script-import.test.js.snap b/test/client_cli/en/__snapshots__/script-import.test.js.snap index a037d7b42..c652a8fae 100644 --- a/test/client_cli/en/__snapshots__/script-import.test.js.snap +++ b/test/client_cli/en/__snapshots__/script-import.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/script-list.test.js.snap b/test/client_cli/en/__snapshots__/script-list.test.js.snap index 4cdf6ada8..6a6863a3a 100644 --- a/test/client_cli/en/__snapshots__/script-list.test.js.snap +++ b/test/client_cli/en/__snapshots__/script-list.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/secretstore-delete.test.js.snap b/test/client_cli/en/__snapshots__/secretstore-delete.test.js.snap index dc361a4e4..eba16e922 100644 --- a/test/client_cli/en/__snapshots__/secretstore-delete.test.js.snap +++ b/test/client_cli/en/__snapshots__/secretstore-delete.test.js.snap @@ -6,7 +6,7 @@ exports[`CLI help interface for 'secretstore delete' should be expected english Delete secret stores. Arguments: - host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a unique substring. + host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for Identity Cloud tenants, "/" otherwise.) username Username to login with. Must be an admin user with appropriate rights to manage authentication journeys/trees. password Password. diff --git a/test/client_cli/en/__snapshots__/secretstore-describe.test.js.snap b/test/client_cli/en/__snapshots__/secretstore-describe.test.js.snap index f51688b4d..5c980d2a1 100644 --- a/test/client_cli/en/__snapshots__/secretstore-describe.test.js.snap +++ b/test/client_cli/en/__snapshots__/secretstore-describe.test.js.snap @@ -6,7 +6,7 @@ exports[`CLI help interface for 'secretstore describe' should be expected englis Describe secret stores. Arguments: - host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a unique substring. + host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for Identity Cloud tenants, "/" otherwise.) username Username to login with. Must be an admin user with appropriate rights to manage authentication journeys/trees. password Password. diff --git a/test/client_cli/en/__snapshots__/secretstore-export.test.js.snap b/test/client_cli/en/__snapshots__/secretstore-export.test.js.snap index eb93707e8..4a2c3cf65 100644 --- a/test/client_cli/en/__snapshots__/secretstore-export.test.js.snap +++ b/test/client_cli/en/__snapshots__/secretstore-export.test.js.snap @@ -6,7 +6,7 @@ exports[`CLI help interface for 'secretstore export' should be expected english Export secret stores. Arguments: - host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a unique substring. + host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for Identity Cloud tenants, "/" otherwise.) username Username to login with. Must be an admin user with appropriate rights to manage authentication journeys/trees. password Password. diff --git a/test/client_cli/en/__snapshots__/secretstore-import.test.js.snap b/test/client_cli/en/__snapshots__/secretstore-import.test.js.snap index a29466e43..dc214b23c 100644 --- a/test/client_cli/en/__snapshots__/secretstore-import.test.js.snap +++ b/test/client_cli/en/__snapshots__/secretstore-import.test.js.snap @@ -6,7 +6,7 @@ exports[`CLI help interface for 'secretstore import' should be expected english Import secret stores. Arguments: - host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a unique substring. + host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for Identity Cloud tenants, "/" otherwise.) username Username to login with. Must be an admin user with appropriate rights to manage authentication journeys/trees. password Password. diff --git a/test/client_cli/en/__snapshots__/secretstore-list.test.js.snap b/test/client_cli/en/__snapshots__/secretstore-list.test.js.snap index 000f936d1..5c71443ac 100644 --- a/test/client_cli/en/__snapshots__/secretstore-list.test.js.snap +++ b/test/client_cli/en/__snapshots__/secretstore-list.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/secretstore-mapping-alias-activate.test.js.snap b/test/client_cli/en/__snapshots__/secretstore-mapping-alias-activate.test.js.snap index e802dbb21..f1970ac01 100644 --- a/test/client_cli/en/__snapshots__/secretstore-mapping-alias-activate.test.js.snap +++ b/test/client_cli/en/__snapshots__/secretstore-mapping-alias-activate.test.js.snap @@ -6,7 +6,7 @@ exports[`CLI help interface for 'secretstore mapping alias activate' should be e Activate secret store mapping alias. Arguments: - host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a unique substring. + host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for Identity Cloud tenants, "/" otherwise.) username Username to login with. Must be an admin user with appropriate rights to manage authentication journeys/trees. password Password. diff --git a/test/client_cli/en/__snapshots__/secretstore-mapping-alias-create.test.js.snap b/test/client_cli/en/__snapshots__/secretstore-mapping-alias-create.test.js.snap index f14922434..69401d9a1 100644 --- a/test/client_cli/en/__snapshots__/secretstore-mapping-alias-create.test.js.snap +++ b/test/client_cli/en/__snapshots__/secretstore-mapping-alias-create.test.js.snap @@ -6,7 +6,7 @@ exports[`CLI help interface for 'secretstore mapping alias create' should be exp Create secret store mapping alias. Arguments: - host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a unique substring. + host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for Identity Cloud tenants, "/" otherwise.) username Username to login with. Must be an admin user with appropriate rights to manage authentication journeys/trees. password Password. diff --git a/test/client_cli/en/__snapshots__/secretstore-mapping-alias-delete.test.js.snap b/test/client_cli/en/__snapshots__/secretstore-mapping-alias-delete.test.js.snap index 26400cbfa..cedb43221 100644 --- a/test/client_cli/en/__snapshots__/secretstore-mapping-alias-delete.test.js.snap +++ b/test/client_cli/en/__snapshots__/secretstore-mapping-alias-delete.test.js.snap @@ -6,7 +6,7 @@ exports[`CLI help interface for 'secretstore mapping alias delete' should be exp Delete secret store mapping aliases. Arguments: - host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a unique substring. + host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for Identity Cloud tenants, "/" otherwise.) username Username to login with. Must be an admin user with appropriate rights to manage authentication journeys/trees. password Password. diff --git a/test/client_cli/en/__snapshots__/secretstore-mapping-alias-list.test.js.snap b/test/client_cli/en/__snapshots__/secretstore-mapping-alias-list.test.js.snap index 3e8b4aacd..bcf73a404 100644 --- a/test/client_cli/en/__snapshots__/secretstore-mapping-alias-list.test.js.snap +++ b/test/client_cli/en/__snapshots__/secretstore-mapping-alias-list.test.js.snap @@ -6,7 +6,7 @@ exports[`CLI help interface for 'secretstore mapping alias list' should be expec List secret store mapping aliases. Arguments: - host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a unique substring. + host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for Identity Cloud tenants, "/" otherwise.) username Username to login with. Must be an admin user with appropriate rights to manage authentication journeys/trees. password Password. diff --git a/test/client_cli/en/__snapshots__/secretstore-mapping-create.test.js.snap b/test/client_cli/en/__snapshots__/secretstore-mapping-create.test.js.snap index a905aeeee..5a59cdfae 100644 --- a/test/client_cli/en/__snapshots__/secretstore-mapping-create.test.js.snap +++ b/test/client_cli/en/__snapshots__/secretstore-mapping-create.test.js.snap @@ -6,7 +6,7 @@ exports[`CLI help interface for 'secretstore mapping create' should be expected Create secret store mappings. Arguments: - host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a unique substring. + host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for Identity Cloud tenants, "/" otherwise.) username Username to login with. Must be an admin user with appropriate rights to manage authentication journeys/trees. password Password. diff --git a/test/client_cli/en/__snapshots__/secretstore-mapping-delete.test.js.snap b/test/client_cli/en/__snapshots__/secretstore-mapping-delete.test.js.snap index 56aa09933..55bb88199 100644 --- a/test/client_cli/en/__snapshots__/secretstore-mapping-delete.test.js.snap +++ b/test/client_cli/en/__snapshots__/secretstore-mapping-delete.test.js.snap @@ -6,7 +6,7 @@ exports[`CLI help interface for 'secretstore mapping delete' should be expected Delete secret store mappings. Arguments: - host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a unique substring. + host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for Identity Cloud tenants, "/" otherwise.) username Username to login with. Must be an admin user with appropriate rights to manage authentication journeys/trees. password Password. diff --git a/test/client_cli/en/__snapshots__/secretstore-mapping-list.test.js.snap b/test/client_cli/en/__snapshots__/secretstore-mapping-list.test.js.snap index bbb0e28e9..47ac8ddd9 100644 --- a/test/client_cli/en/__snapshots__/secretstore-mapping-list.test.js.snap +++ b/test/client_cli/en/__snapshots__/secretstore-mapping-list.test.js.snap @@ -6,7 +6,7 @@ exports[`CLI help interface for 'secretstore mapping list' should be expected en List secret store mappings. Arguments: - host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a unique substring. + host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for Identity Cloud tenants, "/" otherwise.) username Username to login with. Must be an admin user with appropriate rights to manage authentication journeys/trees. password Password. diff --git a/test/client_cli/en/__snapshots__/server-export.test.js.snap b/test/client_cli/en/__snapshots__/server-export.test.js.snap index 61591335a..fb85b0fd4 100644 --- a/test/client_cli/en/__snapshots__/server-export.test.js.snap +++ b/test/client_cli/en/__snapshots__/server-export.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/server-import.test.js.snap b/test/client_cli/en/__snapshots__/server-import.test.js.snap index 2574c3336..33dfcf1f9 100644 --- a/test/client_cli/en/__snapshots__/server-import.test.js.snap +++ b/test/client_cli/en/__snapshots__/server-import.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/server-list.test.js.snap b/test/client_cli/en/__snapshots__/server-list.test.js.snap index 65ca5d542..fabdc019b 100644 --- a/test/client_cli/en/__snapshots__/server-list.test.js.snap +++ b/test/client_cli/en/__snapshots__/server-list.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/service-delete.test.js.snap b/test/client_cli/en/__snapshots__/service-delete.test.js.snap index dff6a4494..cacdb43ad 100644 --- a/test/client_cli/en/__snapshots__/service-delete.test.js.snap +++ b/test/client_cli/en/__snapshots__/service-delete.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/service-export.test.js.snap b/test/client_cli/en/__snapshots__/service-export.test.js.snap index 31bcff51d..a5c265c9c 100644 --- a/test/client_cli/en/__snapshots__/service-export.test.js.snap +++ b/test/client_cli/en/__snapshots__/service-export.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/service-import.test.js.snap b/test/client_cli/en/__snapshots__/service-import.test.js.snap index 22cdd1ab4..35340ba7f 100644 --- a/test/client_cli/en/__snapshots__/service-import.test.js.snap +++ b/test/client_cli/en/__snapshots__/service-import.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/service-list.test.js.snap b/test/client_cli/en/__snapshots__/service-list.test.js.snap index 2fd0535e0..6c7e3861b 100644 --- a/test/client_cli/en/__snapshots__/service-list.test.js.snap +++ b/test/client_cli/en/__snapshots__/service-list.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/shell.test.js.snap b/test/client_cli/en/__snapshots__/shell.test.js.snap index fe0ad4dc0..2d05ee630 100644 --- a/test/client_cli/en/__snapshots__/shell.test.js.snap +++ b/test/client_cli/en/__snapshots__/shell.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for @@ -128,7 +128,7 @@ Usage Examples:  $ frodo shell https://openam-matrix.id.forgerock.io/am /alpha thomas.anderson@metacortex.com 'Blu3P!ll3d'  Launch a frodo shell using a connection profile (identified by the full AM base URL):  $ frodo shell https://openam-matrix.id.forgerock.io/am - Launch a frodo shell using a connection profile (identified by a unique substring of the AM base URL): + Launch a frodo shell using a connection profile (identified by a unique substring of the AM base URL or a saved alias):  $ frodo shell matrix  " diff --git a/test/client_cli/en/__snapshots__/theme-delete.test.js.snap b/test/client_cli/en/__snapshots__/theme-delete.test.js.snap index dee8f621e..c0864743f 100644 --- a/test/client_cli/en/__snapshots__/theme-delete.test.js.snap +++ b/test/client_cli/en/__snapshots__/theme-delete.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/theme-export.test.js.snap b/test/client_cli/en/__snapshots__/theme-export.test.js.snap index 0e0678e18..251efb29f 100644 --- a/test/client_cli/en/__snapshots__/theme-export.test.js.snap +++ b/test/client_cli/en/__snapshots__/theme-export.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/theme-import.test.js.snap b/test/client_cli/en/__snapshots__/theme-import.test.js.snap index 7ec5a050e..4e5188fb5 100644 --- a/test/client_cli/en/__snapshots__/theme-import.test.js.snap +++ b/test/client_cli/en/__snapshots__/theme-import.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/__snapshots__/theme-list.test.js.snap b/test/client_cli/en/__snapshots__/theme-list.test.js.snap index e4e88d924..f5bfffcce 100644 --- a/test/client_cli/en/__snapshots__/theme-list.test.js.snap +++ b/test/client_cli/en/__snapshots__/theme-list.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/client_cli/en/conn-alias-add.test.js b/test/client_cli/en/conn-alias-add.test.js new file mode 100644 index 000000000..01f872490 --- /dev/null +++ b/test/client_cli/en/conn-alias-add.test.js @@ -0,0 +1,10 @@ +import cp from 'child_process'; +import { promisify } from 'util'; + +const exec = promisify(cp.exec); + +test("CLI help interface for 'conn alias' should be expected english", async () => { + const CMD = 'frodo conn alias add --help'; + const { stdout } = await exec(CMD); + expect(stdout).toMatchSnapshot(); +}); diff --git a/test/client_cli/en/conn-alias-delete.test.js b/test/client_cli/en/conn-alias-delete.test.js new file mode 100644 index 000000000..313d55345 --- /dev/null +++ b/test/client_cli/en/conn-alias-delete.test.js @@ -0,0 +1,10 @@ +import cp from 'child_process'; +import { promisify } from 'util'; + +const exec = promisify(cp.exec); + +test("CLI help interface for 'conn alias' should be expected english", async () => { + const CMD = 'frodo conn alias delete --help'; + const { stdout } = await exec(CMD); + expect(stdout).toMatchSnapshot(); +}); diff --git a/test/client_cli/en/conn-alias.test.js b/test/client_cli/en/conn-alias.test.js new file mode 100644 index 000000000..4f23771dd --- /dev/null +++ b/test/client_cli/en/conn-alias.test.js @@ -0,0 +1,10 @@ +import cp from 'child_process'; +import { promisify } from 'util'; + +const exec = promisify(cp.exec); + +test("CLI help interface for 'conn alias' should be expected english", async () => { + const CMD = 'frodo conn alias --help'; + const { stdout } = await exec(CMD); + expect(stdout).toMatchSnapshot(); +}); diff --git a/test/e2e/__snapshots__/conn-alias-add.e2e.test.js.snap b/test/e2e/__snapshots__/conn-alias-add.e2e.test.js.snap new file mode 100644 index 000000000..aed67b5f3 --- /dev/null +++ b/test/e2e/__snapshots__/conn-alias-add.e2e.test.js.snap @@ -0,0 +1,15 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`frodo conn alias add "frodo conn alias add testname https://openam-frodo-dev.forgeblocks.com/am": should add an alias 'testname' to the connection profile 1`] = `""`; + +exports[`frodo conn alias add "frodo conn alias add testname https://openam-frodo-dev.forgeblocks.com/am": should add an alias 'testname' to the connection profile 2`] = ` +"Alias 'testname' has been set for connection profile 'https://openam-frodo-dev.forgeblocks.com/am' +" +`; + +exports[`frodo conn alias add "frodo conn alias add testname https://openam-frodo-dev.forgeblocks.com/am": should fail to add alias and warn user the alias is already in use 1`] = ` +"Alias 'testname' is already in use by connection profile 'example.com'. Please use a unique alias. +" +`; + +exports[`frodo conn alias add "frodo conn alias add testname https://openam-frodo-dev.forgeblocks.com/am": should fail to add alias and warn user the alias is already in use 2`] = `""`; diff --git a/test/e2e/__snapshots__/conn-alias-delete.e2e.test.js.snap b/test/e2e/__snapshots__/conn-alias-delete.e2e.test.js.snap new file mode 100644 index 000000000..a07098a1e --- /dev/null +++ b/test/e2e/__snapshots__/conn-alias-delete.e2e.test.js.snap @@ -0,0 +1,15 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`frodo conn alias delete "frodo conn alias delete https://openam-frodo-dev.forgeblocks.com/am": should delete the alias of the connection profile 1`] = `""`; + +exports[`frodo conn alias delete "frodo conn alias delete https://openam-frodo-dev.forgeblocks.com/am": should delete the alias of the connection profile 2`] = ` +"Alias 'testname' has been deleted for connection profile 'https://openam-frodo-dev.forgeblocks.com/am'. +" +`; + +exports[`frodo conn alias delete "frodo conn alias delete https://openam-frodo-dev.forgeblocks.com/am": should fail to delete the nonexistent alias of the connection profile 1`] = ` +"No alias is set for connection profile 'https://openam-frodo-dev.forgeblocks.com/am' +" +`; + +exports[`frodo conn alias delete "frodo conn alias delete https://openam-frodo-dev.forgeblocks.com/am": should fail to delete the nonexistent alias of the connection profile 2`] = `""`; diff --git a/test/e2e/__snapshots__/conn-describe.e2e.test.js.snap b/test/e2e/__snapshots__/conn-describe.e2e.test.js.snap index b28ce1b4b..b72872aa7 100644 --- a/test/e2e/__snapshots__/conn-describe.e2e.test.js.snap +++ b/test/e2e/__snapshots__/conn-describe.e2e.test.js.snap @@ -2,6 +2,7 @@ exports[`frodo conn describe "frodo conn describe http://openam-frodo-dev.amster.com:8080/am": should describe the classic connection 1`] = ` "Host │http://openam-frodo-dev.amster.com:8080/am +Alias │amster Deployment Type │classic Username │amadmin Password │ @@ -12,6 +13,7 @@ Amster Private Key │[present] exports[`frodo conn describe "frodo conn describe https://openam-frodo-dev.forgeblocks.com/am": should describe the connection 1`] = ` "Host │https://openam-frodo-dev.forgeblocks.com/am +Alias │ Deployment Type │cloud Service Account Name │Frodo-SA-1758728043147 Service Account Id │912dcd07-421b-4ba9-b019-edbfe66a89be diff --git a/test/e2e/__snapshots__/conn-list.e2e.test.js.snap b/test/e2e/__snapshots__/conn-list.e2e.test.js.snap index 37a008615..8dd1b38bd 100644 --- a/test/e2e/__snapshots__/conn-list.e2e.test.js.snap +++ b/test/e2e/__snapshots__/conn-list.e2e.test.js.snap @@ -1,16 +1,16 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`frodo conn list "frodo conn list --long": should list the connection hosts, service accounts, usernames, and log API keys. 1`] = ` -"Host │Service Account │Username│Log API Key│Authentication Service -https://openam-frodo-dev.forgeblocks.com/am│Frodo-SA-1758728043147│ │ │ -http://openam-frodo-dev.amster.com:8080/am │ │amadmin │ │MockAmsterService +"Host │Alias │Service Account │Username│Log API Key│Authentication Service +https://openam-frodo-dev.forgeblocks.com/am│ │Frodo-SA-1758728043147│ │ │ +http://openam-frodo-dev.amster.com:8080/am │amster│ │amadmin │ │MockAmsterService " `; exports[`frodo conn list "frodo conn list -l": should list the connection hosts, service accounts, usernames, and log API keys. 1`] = ` -"Host │Service Account │Username│Log API Key│Authentication Service -https://openam-frodo-dev.forgeblocks.com/am│Frodo-SA-1758728043147│ │ │ -http://openam-frodo-dev.amster.com:8080/am │ │amadmin │ │MockAmsterService +"Host │Alias │Service Account │Username│Log API Key│Authentication Service +https://openam-frodo-dev.forgeblocks.com/am│ │Frodo-SA-1758728043147│ │ │ +http://openam-frodo-dev.amster.com:8080/am │amster│ │amadmin │ │MockAmsterService " `; diff --git a/test/e2e/__snapshots__/esv-secret-create.e2e.test.js.snap b/test/e2e/__snapshots__/esv-secret-create.e2e.test.js.snap index 8bac4e678..11a3449be 100644 --- a/test/e2e/__snapshots__/esv-secret-create.e2e.test.js.snap +++ b/test/e2e/__snapshots__/esv-secret-create.e2e.test.js.snap @@ -23,7 +23,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. username Username to login with. Must be an admin user with appropriate rights to manage authentication journeys/trees. diff --git a/test/e2e/__snapshots__/idp-delete.e2e.test.js.snap b/test/e2e/__snapshots__/idp-delete.e2e.test.js.snap index 26cc9b305..151f9770f 100644 --- a/test/e2e/__snapshots__/idp-delete.e2e.test.js.snap +++ b/test/e2e/__snapshots__/idp-delete.e2e.test.js.snap @@ -9,7 +9,7 @@ Arguments: host AM base URL, e.g.: https://cdk.iam.example.com/am. To use a connection profile, just specify a - unique substring. + unique substring or alias. realm Realm. Specify realm as '/' for the root realm or 'realm' or '/parent/child' otherwise. (default: "alpha" for diff --git a/test/e2e/conn-alias-add.e2e.test.js b/test/e2e/conn-alias-add.e2e.test.js new file mode 100644 index 000000000..b4b9f3ed5 --- /dev/null +++ b/test/e2e/conn-alias-add.e2e.test.js @@ -0,0 +1,102 @@ +/** + * Follow this process to write e2e tests for the CLI project: + * + * 1. Test if all the necessary mocks for your tests already exist. + * In mock mode, run the command you want to test with the same arguments + * and parameters exactly as you want to test it, for example: + * + * $ FRODO_MOCK=1 frodo conn save https://openam-frodo-dev.forgeblocks.com/am volker.scheuber@forgerock.com Sup3rS3cr3t! + * + * If your command completes without errors and with the expected results, + * all the required mocks already exist and you are good to write your + * test and skip to step #4. + * + * If, however, your command fails and you see errors like the one below, + * you know you need to record the mock responses first: + * + * [Polly] [adapter:node-http] Recording for the following request is not found and `recordIfMissing` is `false`. + * + * 2. Record mock responses for your exact command. + * In mock record mode, run the command you want to test with the same arguments + * and parameters exactly as you want to test it, for example: + * + * $ FRODO_MOCK=record frodo conn save https://openam-frodo-dev.forgeblocks.com/am volker.scheuber@forgerock.com Sup3rS3cr3t! + * + * Wait until you see all the Polly instances (mock recording adapters) have + * shutdown before you try to run step #1 again. + * Messages like these indicate mock recording adapters shutting down: + * + * Polly instance 'conn/4' stopping in 3s... + * Polly instance 'conn/4' stopping in 2s... + * Polly instance 'conn/save/3' stopping in 3s... + * Polly instance 'conn/4' stopping in 1s... + * Polly instance 'conn/save/3' stopping in 2s... + * Polly instance 'conn/4' stopped. + * Polly instance 'conn/save/3' stopping in 1s... + * Polly instance 'conn/save/3' stopped. + * + * 3. Validate your freshly recorded mock responses are complete and working. + * Re-run the exact command you want to test in mock mode (see step #1). + * + * 4. Write your test. + * Make sure to use the exact command including number of arguments and params. + * + * 5. Commit both your test and your new recordings to the repository. + * Your tests are likely going to reside outside the frodo-lib project but + * the recordings must be committed to the frodo-lib project. + */ +import cp from 'child_process'; +import { promisify } from 'util'; +import { getEnv, removeAnsiEscapeCodes, testif } from './utils/TestUtils'; +import { connection as c } from './utils/TestConfig'; +import { readFileSync, rmSync, writeFileSync } from 'fs'; + +const exec = promisify(cp.exec); +const connectionsFile = './test/e2e/env/Connections.json'; +const connectionsAliasFile = './test/e2e/env/ConnectionsAddAlias.json'; + +process.env['FRODO_MOCK'] = '1'; +process.env['FRODO_CONNECTION_PROFILES_PATH'] = connectionsAliasFile; +const env = getEnv(); +const alias = 'testname'; + +beforeAll(() => { + writeFileSync(connectionsAliasFile, readFileSync(connectionsFile)); +}); + +afterAll(() => { + rmSync(connectionsAliasFile); +}); + +describe('frodo conn alias add', () => { + testif(process.env['FRODO_MASTER_KEY'])( + `"frodo conn alias add ${alias} ${c.host}": should add an alias 'testname' to the connection profile`, + async () => { + const CMD = `frodo conn alias add ${alias} ${c.host}`; + const { stdout, stderr } = await exec(CMD, env); + expect(removeAnsiEscapeCodes(stdout)).toMatchSnapshot(); + expect(removeAnsiEscapeCodes(stderr)).toMatchSnapshot(); + } + ); + testif(process.env['FRODO_MASTER_KEY'])( + `"frodo conn alias add ${alias} ${c.host}": should fail to add alias and warn user the alias is already in use`, + async () => { + const profiles = JSON.parse(readFileSync(connectionsAliasFile, 'utf-8')); + profiles['example.com'] = { + ...profiles[c.host], + host: 'example.com', + alias: alias, + }; + writeFileSync(connectionsAliasFile, JSON.stringify(profiles, null, 2)); + const CMD = `frodo conn alias add ${alias} ${c.host}`; + try { + await exec(CMD, env); + throw new Error('Expected command to fail'); + } catch (e) { + expect(removeAnsiEscapeCodes(e.stderr)).toMatchSnapshot(); + expect(removeAnsiEscapeCodes(e.stdout)).toMatchSnapshot(); + } + expect.assertions(2); + } + ); +}); diff --git a/test/e2e/conn-alias-delete.e2e.test.js b/test/e2e/conn-alias-delete.e2e.test.js new file mode 100644 index 000000000..2869458a9 --- /dev/null +++ b/test/e2e/conn-alias-delete.e2e.test.js @@ -0,0 +1,107 @@ +/** + * Follow this process to write e2e tests for the CLI project: + * + * 1. Test if all the necessary mocks for your tests already exist. + * In mock mode, run the command you want to test with the same arguments + * and parameters exactly as you want to test it, for example: + * + * $ FRODO_MOCK=1 frodo conn save https://openam-frodo-dev.forgeblocks.com/am volker.scheuber@forgerock.com Sup3rS3cr3t! + * + * If your command completes without errors and with the expected results, + * all the required mocks already exist and you are good to write your + * test and skip to step #4. + * + * If, however, your command fails and you see errors like the one below, + * you know you need to record the mock responses first: + * + * [Polly] [adapter:node-http] Recording for the following request is not found and `recordIfMissing` is `false`. + * + * 2. Record mock responses for your exact command. + * In mock record mode, run the command you want to test with the same arguments + * and parameters exactly as you want to test it, for example: + * + * $ FRODO_MOCK=record frodo conn save https://openam-frodo-dev.forgeblocks.com/am volker.scheuber@forgerock.com Sup3rS3cr3t! + * + * Wait until you see all the Polly instances (mock recording adapters) have + * shutdown before you try to run step #1 again. + * Messages like these indicate mock recording adapters shutting down: + * + * Polly instance 'conn/4' stopping in 3s... + * Polly instance 'conn/4' stopping in 2s... + * Polly instance 'conn/save/3' stopping in 3s... + * Polly instance 'conn/4' stopping in 1s... + * Polly instance 'conn/save/3' stopping in 2s... + * Polly instance 'conn/4' stopped. + * Polly instance 'conn/save/3' stopping in 1s... + * Polly instance 'conn/save/3' stopped. + * + * 3. Validate your freshly recorded mock responses are complete and working. + * Re-run the exact command you want to test in mock mode (see step #1). + * + * 4. Write your test. + * Make sure to use the exact command including number of arguments and params. + * + * 5. Commit both your test and your new recordings to the repository. + * Your tests are likely going to reside outside the frodo-lib project but + * the recordings must be committed to the frodo-lib project. + */ +import cp from 'child_process'; +import { promisify } from 'util'; +import { getEnv, removeAnsiEscapeCodes, testif } from './utils/TestUtils'; +import { connection as c } from './utils/TestConfig'; +import { readFileSync, rmSync, writeFileSync } from 'fs'; + +const exec = promisify(cp.exec); +const connectionsFile = './test/e2e/env/Connections.json'; +const connectionsAliasFile = './test/e2e/env/ConnectionsDeleteAlias.json'; + +process.env['FRODO_MOCK'] = '1'; +process.env['FRODO_CONNECTION_PROFILES_PATH'] = connectionsAliasFile; +const env = getEnv(); + +beforeAll(() => { + const originalProfiles = JSON.parse(readFileSync(connectionsFile, 'utf8')); + const aliasProfiles = { + ...originalProfiles, + [c.host]: { + ...originalProfiles[c.host], + alias: 'testname', + }, + }; + writeFileSync(connectionsAliasFile, JSON.stringify(aliasProfiles, null, 2)); +}); + +afterAll(() => { + rmSync(connectionsAliasFile); +}); + +describe('frodo conn alias delete', () => { + testif(process.env['FRODO_MASTER_KEY'])( + `"frodo conn alias delete ${c.host}": should delete the alias of the connection profile`, + async () => { + const CMD = `frodo conn alias delete ${c.host}`; + const { stdout, stderr } = await exec(CMD, env); + expect(removeAnsiEscapeCodes(stdout)).toMatchSnapshot(); + expect(removeAnsiEscapeCodes(stderr)).toMatchSnapshot(); + } + ); + testif(process.env['FRODO_MASTER_KEY'])( + `"frodo conn alias delete ${c.host}": should fail to delete the nonexistent alias of the connection profile`, + async () => { + const profiles = JSON.parse(readFileSync(connectionsAliasFile, 'utf-8')); + profiles[c.host] = { + ...profiles[c.host], + alias: '', + }; + const CMD = `frodo conn alias delete ${c.host}`; + try { + await exec(CMD, env); + throw new Error('Expected command to fail'); + } catch (e) { + expect(removeAnsiEscapeCodes(e.stderr)).toMatchSnapshot(); + expect(removeAnsiEscapeCodes(e.stdout)).toMatchSnapshot(); + } + expect.assertions(2); + } + ); +}); diff --git a/test/e2e/env/Connections.json b/test/e2e/env/Connections.json index 6cd8a1175..4ab7a5775 100644 --- a/test/e2e/env/Connections.json +++ b/test/e2e/env/Connections.json @@ -7,6 +7,7 @@ "svcacctScope": "fr:idc:custom-domain:* fr:idc:release:* fr:idc:sso-cookie:* fr:am:* fr:autoaccess:* fr:idc:content-security-policy:* fr:idc:esv:* fr:idc:certificate:* fr:idm:* fr:idc:analytics:* fr:idc:cookie-domain:* fr:idc:promotion:*" }, "http://openam-frodo-dev.amster.com:8080/am": { + "alias": "amster", "authenticationService": "MockAmsterService", "deploymentType": "classic", "encodedAmsterPrivateKey": "KDIStw+dszpCk127MKhNvSiVUkLVrKLZSgIInkonvWLdYyzI11xdGbBCXVIBYoMLQ6BNy0PCh+O8qTltOlxQn0uI9piZgrDfWPjPfIFjyCpUKZb8FexKaEG1WfTf8G83GpyV73F/pH9lY9e6eJFxA+YKaiYav+4SqKj+Orn3GOCZvKRMiP+WLsU/1SUun+xLiYHCWSCMbLQWAvddcJBfLxflR/c8HgJqmaWuE0DErx9r1Zfh4uikhm4oV9KcELuUMSvfQqTiodG38zuCm2gUbPrbCopRhWpZauTtFmLdwEeCmGTTXhg7Kcm21iHZTp8tGq/y1pM5lLnZziDY4r75h8Qr9h8hBxhZqxE7dW6MU50+0ReRk+gPGsP9dy99IFmZmWtupSMy5DlVIJd4IhFlcHfw8ZSd1nmiQGW2gU5y/YWAAMeKyFD5WGuL/JYnpvyp804CKu+yJpUauKHs1yHDHqB9SOojyJ1A6Q+clUfF3HsZ8L1B24EF9Y+CWmB3aXxILTzGavtQWcIUHlQrN0hVkUfjL9AyAGGdivI7nO9b7rhQhPYz0L72bCeSCq1BoC/gKqLjlWuFlSPxA5PQrh+MNedwi3kkIRoeFB8PvX5Yr0UuMlsnm3YE3WSGrK7lCM4zkaqKymufd2GiPrmIO2V+OV6ggUi0Y2vbnVF011A0RewAHKu7KycLtBBMe23axR6CL3eAVvwVVRCh9ic+ddeBfuH6JTGZrPQGsGHs1w4MHY6zT4U8JzL20rQmy9aGdSeaL+xRC5EHsYO7F/QWDM1tPyZ30IIg/vws3ohnqsTGTklimu7w3PcPvZPEEC+BFKrbeE3kl6TzoWADkf3787wzXLs+DUBgvz2ZHEyVkAUW+0hR716HwfJz+meA9xMYn2sqLA42BZsB/kvc5HmcWsHq0kpNyLdJFD1E8rpwEfxBu81kB1TSbDMQjPf3CzqsgXg6he8iOA4He+8JU6YnY010kV9nBEraiIBov9PfCIuJvNTg6Bh1jcqHIvm8bsbgbFp+hMCgiKP919sVIgl6RmI+D4T2SXpLKg/MyvL+hR2QvXFqG16F4bqecKMU56S/A6Mtrx88LqDQHGfJt4dTUhgGKuHWfWmoY7VpuhODJi5gxLlBKx+9QT3yQsa6d39UTsdFMhJmUY5zh7CSt9vOBq0Eqip1FutYWGmvWs/NQXU0wbiCnDc2bE7NRGqIy5EuEH+cxOJblPqIljse9oyW+4we7H4hiIDH75nVe/BpKLjLxh0bVXCrOcCTaZhPTvUWFwOCtdwnni4+x4qrIMXz50Y9NqNLrBgGOARojZxiI+sZKxaoJk3JKV60evprPxmLmevqCCbClgSEHm5XHa4c4aJnT4/P54vyUu4AdWyZ0sNBgD3toixL/mrhsKtr9jEPB9fAxVY3XpgXGJvbLlmw1fd2PlYqr0uZqbRouRHr4dLY5ATjZ4tEl1HZPyDsJC1CWEH6D0zDIeh/YO+bLcwUzB55dijBIzNZY5QTBohVihxrCMWX3srMxYBnwbof+lTOv7tAbpa9jRaq9RcSiamNdXjBenbzl3wx4cWgVez//ifDtJqcVwhMsNTa2w0HmtAz1tONlryw0Q+oHrMiOog3Exv0dHB6/yG/ea1DJHiNrClc8AQnmN0a8y+8FRf+e95xdcQDJDhO0cPCibXb0ZTXfkeZy1KFNtToxOfBYc8LVOWfvNwKJJRWFzof8Fko5AnmbKBz3447TWKl392sQRt0P0mPW1tKQ0TtiRfXCa2C7l9kfKqs0cglko5Y7TWIVVxFPNqFL+7CLql0aBXOrT2l9gPbY45g3EOiL34bHYKQtrxzyYO+76yHgd/3vOBFiTqNblKNY5BseX+iWEhDqI73Rl9t2NTmCaVdwaQVO5PbVb3TnfYUAzToOGRaOGKhtf24MSYk/oCvQqbXUPf+w84EysqUXqtO/ebf7FN2ih3GmV8qwr0kn3Hygz3Ymfc7sQ5abU5V/Mi1ca0ph/aWjRzq19e7Va7sfRMo2hO5b9I2jAogm5pbX23Qk0Xe3gtTz75l1x95kyzWASRmRVDNfrHsZkIWFFqQtoEkPQngMpWmbWnTWzHPXWIhmpDOryhRwVPqKOxGxwCOp6nFxP5WGz6Z693doPJKlQ7Hms0EJM0VXKNiq0mmzNYZfUoVmD8rt5aVm2/rZVgEG/AJnnXSwfH5YNwNeqzDFW3dbreOwpnKCVooiqTTcH4VQbj2tkAR8hiRhi/Nc1qVaZgqU3bRe0P8d+rKsekz44W77ZSIkHzigWlNrveSc680nfcqk5jlG/uaCURSyEL9yz8euk3I8KN11FU8wQ5XBM9thOtMpdvzGBYcaa5F5yz7IXu973ttlo4zT6xHiyY/XLKM8udah53q0YhsOXaf69mjrCI5CIWdBmZMlkS4gF/3GAA80r5xvkh0kSCFiWp82eXQ90OGIneYnXx6ScGh8UUzcSCeEvTZfVJGfN2nGb4HuaBFmfdMC2wu+Tpi+IoUiRpGlVQ3gl4kYJTcwHBP5NgQt8rJ5EuRLQSSpuvUUA7reDAyVbhuCwez6DV1lK7tdX4fJFtXqYxoRGPNhIUnarsV8yRsQkRtqig0nymDvG/ypU96W7pKUCdvqTu7vhFvLon4SZvrNiGcQFkKs3qG9XsvvJWjgt0g/7szbF1WDsCUbE/M+ah4sCjswQUsB53RWZ1oeyEO0z3Vek7O3VA48BXi1CVFEJstLpVeaXzFNnxuiFhB3pYcMPWCznzvd/O4UjA1RV1Q13roV+Rgg5J4WiX9huaQRB02nPuFHzJ6DFWdcr++oxjEBWaGPkwIrjald5Ns3k8GM+WEHJ+493vRffuyI4E7n+KmmyEYYCmoYlnilAZfUEQfEgBH+GwTQjxvY8WoR9oHoyZStqTt2yPu77heIzYBHX/KfKudaYZC7ulC/t7t8TYkDVZRsG4ZL0acbuo7kO8FhAKrxE1TkS0wIwJhJGCfYIgfZ73CvmEakwGhXTUZVOh3eQwPPINf73sZZZOC7XdjDbnArx/EnOL1/iSUuWHwn1/LiSC0XNsqtbPQul9GWJTLLA+lqJZjhbJl0OHQuvaaP5Nnq6IPVcgGDtxvUWXHl3j2LGZsvIxAAQEjw1jlunximOF13YjJDM4v6eEEN0YAPT7xRS+T7IvBqlf9LCbJcXaYUC4lWk8lm4LPePEbH1mVKi3SzAsbliEchI6sigAKoylBSnEL6Tx/t7TdLFYC3mrdfk9LuUs/2WVjl8JmLG9kqJosVNY7lZHA2RlxrE08+CD6qcVeWpfm6iwQ7C/FwOpQuXAwwW7YY9R9a5vS0SZb+loAre4NrtimXyyPANuZSCO2zYeCeo4wt77rUX0Tbjl/Ao57NzKDVlkMf9Z9rPiv2qjWPynn++P93nV4UObGyRRW4cOfl6UDW0UgM3aYIQR3NNfvr7QonoOfcgmdKD5+khCzgRBzi+YE0ldMkTv3L9X/JiVLFJBlM5HjJlJUlVs0g6Vo",