Skip to content

Commit c7ead21

Browse files
committed
Fix failing idp delete test
1 parent f935925 commit c7ead21

5 files changed

Lines changed: 97 additions & 189 deletions

File tree

Lines changed: 1 addition & 102 deletions
Original file line numberDiff line numberDiff line change
@@ -1,104 +1,3 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

3-
exports[`"frodo idp delete -i insta" "frodo idp delete -i insta": should delete idp config with Id insta 1`] = `
4-
"Usage: frodo idp delete [options] [host] [realm] [username] [password]
5-
6-
Delete (social) identity providers.
7-
8-
Arguments:
9-
host AM base URL, e.g.:
10-
https://cdk.iam.example.com/am. To use a
11-
connection profile, just specify a
12-
unique substring.
13-
realm Realm. Specify realm as '/' for the root
14-
realm or 'realm' or '/parent/child'
15-
otherwise. (default: "alpha" for
16-
Identity Cloud tenants, "/" otherwise.)
17-
username Username to login with. Must be an admin
18-
user with appropriate rights to manage
19-
authentication journeys/trees.
20-
password Password.
21-
22-
Options:
23-
--curlirize Output all network calls in curl format.
24-
-D, --directory <directory> Set the working directory.
25-
--debug Debug output during command execution.
26-
If specified, may or may not produce
27-
additional output helpful for
28-
troubleshooting.
29-
--flush-cache Flush token cache.
30-
-h, --help Help
31-
-i, --idp-id <idp-id> Id/name of a provider.
32-
--idm-host <idm-host> IDM base URL, e.g.:
33-
https://cdk.idm.example.com/myidm. Use
34-
only if your IDM installation resides in
35-
a different domain and/or if the base
36-
path differs from the default
37-
"/openidm".
38-
-k, --insecure Allow insecure connections when using
39-
SSL/TLS. Has no effect when using a
40-
network proxy for https
41-
(HTTPS_PROXY=http://<host>:<port>), in
42-
that case the proxy must provide this
43-
capability. (default: Don't allow
44-
insecure connections)
45-
--login-client-id <client-id> Specify a custom OAuth2 client id to use
46-
a your own oauth2 client for IDM API
47-
calls in deployments of type "cloud" or
48-
"forgeops". Your custom client must be
49-
configured as a public client and allow
50-
the authorization code grant using the
51-
"openid fr:idm:*" scope. Use the
52-
"--redirect-uri" parameter if you have
53-
configured a custom redirect uri
54-
(default:
55-
"<host>/platform/appAuthHelperRedirect.html").
56-
--login-redirect-uri <redirect-uri> Specify a custom redirect URI to use
57-
with your custom OAuth2 client (efault:
58-
"<host>/platform/appAuthHelperRedirect.html").
59-
-m, --type <type> Override auto-detected deployment type.
60-
Valid values for type:
61-
classic: A classic Access
62-
Management-only deployment with custom
63-
layout and configuration.
64-
cloud: A ForgeRock Identity Cloud
65-
environment.
66-
forgeops: A ForgeOps CDK or CDM
67-
deployment.
68-
The detected or provided deployment type
69-
controls certain behavior like obtaining
70-
an Identity Management admin token or
71-
not and whether to export/import
72-
referenced email templates or how to
73-
walk through the tenant admin login flow
74-
of Identity Cloud and handle MFA
75-
(choices: "classic", "cloud",
76-
"forgeops")
77-
--no-cache Disable token cache for this operation.
78-
--sa-id <sa-id> Service account id.
79-
--sa-jwk-file <file> File containing the JSON Web Key (JWK)
80-
associated with the the service account.
81-
--verbose Verbose output during command execution.
82-
If specified, may or may not produce
83-
additional output.
84-
85-
Environment Variables:
86-
FRODO_HOST: AM base URL. Overridden by 'host' argument.
87-
FRODO_IDM_HOST: IDM base URL. Overridden by '--idm-host' option.
88-
FRODO_REALM: Realm. Overridden by 'realm' argument.
89-
FRODO_USERNAME: Username. Overridden by 'username' argument.
90-
FRODO_PASSWORD: Password. Overridden by 'password' argument.
91-
FRODO_LOGIN_CLIENT_ID: OAuth2 client id for IDM API calls. Overridden by '--login-client-id' option.
92-
FRODO_LOGIN_REDIRECT_URI: Redirect Uri for custom OAuth2 client id. Overridden by '--login-redirect-uri' option.
93-
FRODO_SA_ID: Service account uuid. Overridden by '--sa-id' option.
94-
FRODO_SA_JWK: Service account JWK. Overridden by '--sa-jwk-file' option but takes the actual JWK as a value, not a file name.
95-
FRODO_NO_CACHE: Disable token cache. Same as '--no-cache' option.
96-
FRODO_TOKEN_CACHE_PATH: Use this token cache file instead of '~/.frodo/TokenCache.json'.
97-
FRODO_CONNECTION_PROFILES_PATH: Use this connection profiles file instead of '~/.frodo/Connections.json'.
98-
FRODO_AUTHENTICATION_SERVICE: Name of a login journey to use.
99-
FRODO_DEBUG: Set to any value to enable debug output. Same as '--debug'.
100-
FRODO_MASTER_KEY_PATH: Use this master key file instead of '~/.frodo/masterkey.key' file.
101-
FRODO_MASTER_KEY: Use this master key instead of what's in '~/.frodo/masterkey.key'. Takes precedence over FRODO_MASTER_KEY_PATH.
102-
103-
"
104-
`;
3+
exports[`"frodo idp delete -i insta" "frodo idp delete -i insta": should delete idp config with Id insta 1`] = `""`;

test/e2e/idp-delete.e2e.test.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,9 @@
4747
*/
4848

4949
/*
50-
FRODO_MOCK=record FRODO_NO_CACHE=1 FRODO_HOST=https://openam-frodo-dev.forgeblocks.com/am frodo idp delete -i insta openam
50+
* FRODO_MOCK=record FRODO_NO_CACHE=1 FRODO_HOST=https://openam-frodo-dev.forgeblocks.com/am frodo idp delete -i insta
5151
*/
52+
5253
import cp from 'child_process';
5354
import { promisify } from 'util';
5455
import { getEnv, removeAnsiEscapeCodes } from './utils/TestUtils';

0 commit comments

Comments
 (0)