From fe913aa9bffe846119a4c8f4102ad4520fa6f015 Mon Sep 17 00:00:00 2001
From: Volker Scheuber
Date: Fri, 22 Sep 2023 13:19:36 -0500
Subject: [PATCH 01/18] output UTC time and update snapshots
---
src/ops/SecretsOps.ts | 10 ++-
src/ops/VariablesOps.ts | 10 ++-
.../esv-secret-list.e2e.test.js.snap | 24 +++---
.../esv-variable-list.e2e.test.js.snap | 80 +++++++++----------
4 files changed, 64 insertions(+), 60 deletions(-)
diff --git a/src/ops/SecretsOps.ts b/src/ops/SecretsOps.ts
index d094d9758..6c2b12f2a 100644
--- a/src/ops/SecretsOps.ts
+++ b/src/ops/SecretsOps.ts
@@ -1,4 +1,4 @@
-import { frodo } from '@rockcarver/frodo-lib';
+import { frodo, state } from '@rockcarver/frodo-lib';
import {
createKeyValueTable,
@@ -48,7 +48,7 @@ export async function listSecrets(long) {
'Status'['brightCyan'],
'Description'['brightCyan'],
'Modifier'['brightCyan'],
- 'Modified'['brightCyan'],
+ 'Modified (UTC)'['brightCyan'],
]);
for (const secret of secrets) {
table.push([
@@ -57,8 +57,10 @@ export async function listSecrets(long) {
{ hAlign: 'right', content: secret.loadedVersion },
secret.loaded ? 'loaded'['brightGreen'] : 'unloaded'['brightRed'],
wordwrap(secret.description, 40),
- await resolveUserName('teammember', secret.lastChangedBy),
- new Date(secret.lastChangeDate).toLocaleString(),
+ state.getUseBearerTokenForAmApis()
+ ? secret.lastChangedBy
+ : await resolveUserName('teammember', secret.lastChangedBy),
+ new Date(secret.lastChangeDate).toUTCString(),
]);
}
printMessage(table.toString(), 'data');
diff --git a/src/ops/VariablesOps.ts b/src/ops/VariablesOps.ts
index a8cfc48e4..53e5a217e 100644
--- a/src/ops/VariablesOps.ts
+++ b/src/ops/VariablesOps.ts
@@ -1,4 +1,4 @@
-import { frodo } from '@rockcarver/frodo-lib';
+import { frodo, state } from '@rockcarver/frodo-lib';
import { VariableExpressionType } from '@rockcarver/frodo-lib/types/api/cloud/VariablesApi';
import {
@@ -42,7 +42,7 @@ export async function listVariables(long) {
'Status'['brightCyan'],
'Description'['brightCyan'],
'Modifier'['brightCyan'],
- 'Modified'['brightCyan'],
+ 'Modified (UTC)'['brightCyan'],
]);
for (const variable of variables) {
table.push([
@@ -50,8 +50,10 @@ export async function listVariables(long) {
wordwrap(decodeBase64(variable.valueBase64), 40),
variable.loaded ? 'loaded'['brightGreen'] : 'unloaded'['brightRed'],
wordwrap(variable.description, 40),
- await resolveUserName('teammember', variable.lastChangedBy),
- new Date(variable.lastChangeDate).toLocaleString(),
+ state.getUseBearerTokenForAmApis()
+ ? variable.lastChangedBy
+ : await resolveUserName('teammember', variable.lastChangedBy),
+ new Date(variable.lastChangeDate).toUTCString(),
]);
}
printMessage(table.toString(), 'data');
diff --git a/test/e2e/__snapshots__/esv-secret-list.e2e.test.js.snap b/test/e2e/__snapshots__/esv-secret-list.e2e.test.js.snap
index a2221038e..f9a721820 100644
--- a/test/e2e/__snapshots__/esv-secret-list.e2e.test.js.snap
+++ b/test/e2e/__snapshots__/esv-secret-list.e2e.test.js.snap
@@ -1,22 +1,22 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`frodo esv secret list "frodo esv secret list --long": should list the ids, active/loaded versions, statuses, descriptions, modifiers, and modified times of the esv secrets 1`] = `
-"Id │ Active│ Loaded│Status│Description │Modifier │Modified
- │Version│Version│ │ │ │
-esv-admin-token │ 1│ 1│loaded│Long-lived admin token │8efaa5b6-8c98-4489-9b21-ee41f5589ab7│8/11/2022, 4:32:38 PM
-esv-admin-token-1999386457729│ 1│ 1│loaded│Long-lived admin token │8d9723a9-a439-4cbf-beb4-30e52811789d│5/13/2023, 7:07:41 PM
-esv-test-secret │ 2│ 2│loaded│Secret Value for testing│b672336b-41ef-428d-ae4a-e0c082875377│8/9/2023, 1:00:01 PM
-esv-test-secret-1 │ 1│ 1│loaded│test secret one │b672336b-41ef-428d-ae4a-e0c082875377│8/5/2023, 9:53:17 PM
+"Id │ Active│ Loaded│Status│Description │Modifier │Modified (UTC)
+ │Version│Version│ │ │ │
+esv-admin-token │ 1│ 1│loaded│Long-lived admin token │8efaa5b6-8c98-4489-9b21-ee41f5589ab7│Thu, 11 Aug 2022 22:32:38 GMT
+esv-admin-token-1999386457729│ 1│ 1│loaded│Long-lived admin token │8d9723a9-a439-4cbf-beb4-30e52811789d│Sun, 14 May 2023 01:07:41 GMT
+esv-test-secret │ 2│ 2│loaded│Secret Value for testing│b672336b-41ef-428d-ae4a-e0c082875377│Wed, 09 Aug 2023 19:00:01 GMT
+esv-test-secret-1 │ 1│ 1│loaded│test secret one │b672336b-41ef-428d-ae4a-e0c082875377│Sun, 06 Aug 2023 03:53:17 GMT
"
`;
exports[`frodo esv secret list "frodo esv secret list -l": should list the ids, active/loaded versions, statuses, descriptions, modifiers, and modified times of the esv secrets 1`] = `
-"Id │ Active│ Loaded│Status│Description │Modifier │Modified
- │Version│Version│ │ │ │
-esv-admin-token │ 1│ 1│loaded│Long-lived admin token │8efaa5b6-8c98-4489-9b21-ee41f5589ab7│8/11/2022, 4:32:38 PM
-esv-admin-token-1999386457729│ 1│ 1│loaded│Long-lived admin token │8d9723a9-a439-4cbf-beb4-30e52811789d│5/13/2023, 7:07:41 PM
-esv-test-secret │ 2│ 2│loaded│Secret Value for testing│b672336b-41ef-428d-ae4a-e0c082875377│8/9/2023, 1:00:01 PM
-esv-test-secret-1 │ 1│ 1│loaded│test secret one │b672336b-41ef-428d-ae4a-e0c082875377│8/5/2023, 9:53:17 PM
+"Id │ Active│ Loaded│Status│Description │Modifier │Modified (UTC)
+ │Version│Version│ │ │ │
+esv-admin-token │ 1│ 1│loaded│Long-lived admin token │8efaa5b6-8c98-4489-9b21-ee41f5589ab7│Thu, 11 Aug 2022 22:32:38 GMT
+esv-admin-token-1999386457729│ 1│ 1│loaded│Long-lived admin token │8d9723a9-a439-4cbf-beb4-30e52811789d│Sun, 14 May 2023 01:07:41 GMT
+esv-test-secret │ 2│ 2│loaded│Secret Value for testing│b672336b-41ef-428d-ae4a-e0c082875377│Wed, 09 Aug 2023 19:00:01 GMT
+esv-test-secret-1 │ 1│ 1│loaded│test secret one │b672336b-41ef-428d-ae4a-e0c082875377│Sun, 06 Aug 2023 03:53:17 GMT
"
`;
diff --git a/test/e2e/__snapshots__/esv-variable-list.e2e.test.js.snap b/test/e2e/__snapshots__/esv-variable-list.e2e.test.js.snap
index fc5d8671a..bc4ff0daf 100644
--- a/test/e2e/__snapshots__/esv-variable-list.e2e.test.js.snap
+++ b/test/e2e/__snapshots__/esv-variable-list.e2e.test.js.snap
@@ -1,50 +1,50 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`frodo esv variable list "frodo esv variable list --long": should list the ids, values, statuses, descriptions, modifiers, and modified times of the esv variables 1`] = `
-"Id │Value │Status│Description │Modifier │Modified
-esv-blue-piller │false │loaded│Zion membership criteria. │b672336b-41ef-428d-ae4a-e0c082875377│7/18/2023, 4:21:38 PM
-esv-ipv4-cidr-access-rules │{ "allow": [ "150.128.0.0/16", │loaded│IPv4 CIDR access rules: │8efaa5b6-8c98-4489-9b21-ee41f5589ab7│8/25/2022, 4:54:28 PM
- │"139.35.0.0/16", "101.216.0.0/16", │ │{ │ │
- │"99.72.28.182/32" ]} │ │"allow": [ │ │
- │ │ │"address/mask" │ │
- │ │ │] │ │
- │ │ │} │ │
-esv-nebuchadnezzar-crew │,"Apoc","Cypher","Mouse","Neo","Switch"]│loaded│The crew of the Nebuchadnezzar │b672336b-41ef-428d-ae4a-e0c082875377│7/18/2023, 3:59:58 PM
- │ │ │hovercraft. │ │
-esv-nebuchadnezzar-crew-structure│"Apoc","Cypher","Mouse","Neo","Switch"]}│loaded│The structure of the crew of the │b672336b-41ef-428d-ae4a-e0c082875377│7/18/2023, 4:09:54 PM
- │ │ │Nebuchadnezzar hovercraft. │ │
-esv-neo-age │28 │loaded│Neo's age in the matrix. │b672336b-41ef-428d-ae4a-e0c082875377│7/18/2023, 4:21:23 PM
-esv-test-var │this is a test variable │loaded│this is a test description │8efaa5b6-8c98-4489-9b21-ee41f5589ab7│9/1/2022, 10:23:56 PM
-esv-test-var-1 │test var 1 value2 │loaded│test var one │b672336b-41ef-428d-ae4a-e0c082875377│8/9/2023, 11:42:41 AM
-esv-test-var-2 │testval │loaded│A temporary test variable │b672336b-41ef-428d-ae4a-e0c082875377│8/2/2023, 3:09:01 PM
-esv-trinity-phone │(312)-555-0690 │loaded│In the opening of The Matrix (1999), the│b672336b-41ef-428d-ae4a-e0c082875377│7/18/2023, 2:33:28 PM
- │ │ │phone number Trinity is calling from is │ │
- │ │ │traced to (312)-555-0690 │ │
-esv-volkerstestvariable1 │for jest │loaded│variable created for api testing │10ecab02-f357-4522-bc17-dfcc64744064│11/29/2022, 5:13:52 PM
+"Id │Value │Status│Description │Modifier │Modified (UTC)
+esv-blue-piller │false │loaded│Zion membership criteria. │b672336b-41ef-428d-ae4a-e0c082875377│Tue, 18 Jul 2023 22:21:38 GMT
+esv-ipv4-cidr-access-rules │{ "allow": [ "150.128.0.0/16", │loaded│IPv4 CIDR access rules: │8efaa5b6-8c98-4489-9b21-ee41f5589ab7│Thu, 25 Aug 2022 22:54:28 GMT
+ │"139.35.0.0/16", "101.216.0.0/16", │ │{ │ │
+ │"99.72.28.182/32" ]} │ │"allow": [ │ │
+ │ │ │"address/mask" │ │
+ │ │ │] │ │
+ │ │ │} │ │
+esv-nebuchadnezzar-crew │,"Apoc","Cypher","Mouse","Neo","Switch"]│loaded│The crew of the Nebuchadnezzar │b672336b-41ef-428d-ae4a-e0c082875377│Tue, 18 Jul 2023 21:59:58 GMT
+ │ │ │hovercraft. │ │
+esv-nebuchadnezzar-crew-structure│"Apoc","Cypher","Mouse","Neo","Switch"]}│loaded│The structure of the crew of the │b672336b-41ef-428d-ae4a-e0c082875377│Tue, 18 Jul 2023 22:09:54 GMT
+ │ │ │Nebuchadnezzar hovercraft. │ │
+esv-neo-age │28 │loaded│Neo's age in the matrix. │b672336b-41ef-428d-ae4a-e0c082875377│Tue, 18 Jul 2023 22:21:23 GMT
+esv-test-var │this is a test variable │loaded│this is a test description │8efaa5b6-8c98-4489-9b21-ee41f5589ab7│Fri, 02 Sep 2022 04:23:56 GMT
+esv-test-var-1 │test var 1 value2 │loaded│test var one │b672336b-41ef-428d-ae4a-e0c082875377│Wed, 09 Aug 2023 17:42:41 GMT
+esv-test-var-2 │testval │loaded│A temporary test variable │b672336b-41ef-428d-ae4a-e0c082875377│Wed, 02 Aug 2023 21:09:01 GMT
+esv-trinity-phone │(312)-555-0690 │loaded│In the opening of The Matrix (1999), the│b672336b-41ef-428d-ae4a-e0c082875377│Tue, 18 Jul 2023 20:33:28 GMT
+ │ │ │phone number Trinity is calling from is │ │
+ │ │ │traced to (312)-555-0690 │ │
+esv-volkerstestvariable1 │for jest │loaded│variable created for api testing │10ecab02-f357-4522-bc17-dfcc64744064│Wed, 30 Nov 2022 00:13:52 GMT
"
`;
exports[`frodo esv variable list "frodo esv variable list -l": should list the ids, values, statuses, descriptions, modifiers, and modified times of the esv variables 1`] = `
-"Id │Value │Status│Description │Modifier │Modified
-esv-blue-piller │false │loaded│Zion membership criteria. │b672336b-41ef-428d-ae4a-e0c082875377│7/18/2023, 4:21:38 PM
-esv-ipv4-cidr-access-rules │{ "allow": [ "150.128.0.0/16", │loaded│IPv4 CIDR access rules: │8efaa5b6-8c98-4489-9b21-ee41f5589ab7│8/25/2022, 4:54:28 PM
- │"139.35.0.0/16", "101.216.0.0/16", │ │{ │ │
- │"99.72.28.182/32" ]} │ │"allow": [ │ │
- │ │ │"address/mask" │ │
- │ │ │] │ │
- │ │ │} │ │
-esv-nebuchadnezzar-crew │,"Apoc","Cypher","Mouse","Neo","Switch"]│loaded│The crew of the Nebuchadnezzar │b672336b-41ef-428d-ae4a-e0c082875377│7/18/2023, 3:59:58 PM
- │ │ │hovercraft. │ │
-esv-nebuchadnezzar-crew-structure│"Apoc","Cypher","Mouse","Neo","Switch"]}│loaded│The structure of the crew of the │b672336b-41ef-428d-ae4a-e0c082875377│7/18/2023, 4:09:54 PM
- │ │ │Nebuchadnezzar hovercraft. │ │
-esv-neo-age │28 │loaded│Neo's age in the matrix. │b672336b-41ef-428d-ae4a-e0c082875377│7/18/2023, 4:21:23 PM
-esv-test-var │this is a test variable │loaded│this is a test description │8efaa5b6-8c98-4489-9b21-ee41f5589ab7│9/1/2022, 10:23:56 PM
-esv-test-var-1 │test var 1 value2 │loaded│test var one │b672336b-41ef-428d-ae4a-e0c082875377│8/9/2023, 11:42:41 AM
-esv-test-var-2 │testval │loaded│A temporary test variable │b672336b-41ef-428d-ae4a-e0c082875377│8/2/2023, 3:09:01 PM
-esv-trinity-phone │(312)-555-0690 │loaded│In the opening of The Matrix (1999), the│b672336b-41ef-428d-ae4a-e0c082875377│7/18/2023, 2:33:28 PM
- │ │ │phone number Trinity is calling from is │ │
- │ │ │traced to (312)-555-0690 │ │
-esv-volkerstestvariable1 │for jest │loaded│variable created for api testing │10ecab02-f357-4522-bc17-dfcc64744064│11/29/2022, 5:13:52 PM
+"Id │Value │Status│Description │Modifier │Modified (UTC)
+esv-blue-piller │false │loaded│Zion membership criteria. │b672336b-41ef-428d-ae4a-e0c082875377│Tue, 18 Jul 2023 22:21:38 GMT
+esv-ipv4-cidr-access-rules │{ "allow": [ "150.128.0.0/16", │loaded│IPv4 CIDR access rules: │8efaa5b6-8c98-4489-9b21-ee41f5589ab7│Thu, 25 Aug 2022 22:54:28 GMT
+ │"139.35.0.0/16", "101.216.0.0/16", │ │{ │ │
+ │"99.72.28.182/32" ]} │ │"allow": [ │ │
+ │ │ │"address/mask" │ │
+ │ │ │] │ │
+ │ │ │} │ │
+esv-nebuchadnezzar-crew │,"Apoc","Cypher","Mouse","Neo","Switch"]│loaded│The crew of the Nebuchadnezzar │b672336b-41ef-428d-ae4a-e0c082875377│Tue, 18 Jul 2023 21:59:58 GMT
+ │ │ │hovercraft. │ │
+esv-nebuchadnezzar-crew-structure│"Apoc","Cypher","Mouse","Neo","Switch"]}│loaded│The structure of the crew of the │b672336b-41ef-428d-ae4a-e0c082875377│Tue, 18 Jul 2023 22:09:54 GMT
+ │ │ │Nebuchadnezzar hovercraft. │ │
+esv-neo-age │28 │loaded│Neo's age in the matrix. │b672336b-41ef-428d-ae4a-e0c082875377│Tue, 18 Jul 2023 22:21:23 GMT
+esv-test-var │this is a test variable │loaded│this is a test description │8efaa5b6-8c98-4489-9b21-ee41f5589ab7│Fri, 02 Sep 2022 04:23:56 GMT
+esv-test-var-1 │test var 1 value2 │loaded│test var one │b672336b-41ef-428d-ae4a-e0c082875377│Wed, 09 Aug 2023 17:42:41 GMT
+esv-test-var-2 │testval │loaded│A temporary test variable │b672336b-41ef-428d-ae4a-e0c082875377│Wed, 02 Aug 2023 21:09:01 GMT
+esv-trinity-phone │(312)-555-0690 │loaded│In the opening of The Matrix (1999), the│b672336b-41ef-428d-ae4a-e0c082875377│Tue, 18 Jul 2023 20:33:28 GMT
+ │ │ │phone number Trinity is calling from is │ │
+ │ │ │traced to (312)-555-0690 │ │
+esv-volkerstestvariable1 │for jest │loaded│variable created for api testing │10ecab02-f357-4522-bc17-dfcc64744064│Wed, 30 Nov 2022 00:13:52 GMT
"
`;
From f6bfd8f4870e9a1854455e8712aef08ae03723af Mon Sep 17 00:00:00 2001
From: Volker Scheuber
Date: Fri, 22 Sep 2023 17:21:56 -0500
Subject: [PATCH 02/18] update agent tests and snapshots
---
.../agent-export.e2e.test.js.snap | 3079 ++++++++++++++---
.../agent-gateway-export.e2e.test.js.snap | 99 +-
.../agent-java-export.e2e.test.js.snap | 1153 +++++-
test/e2e/agent-export.e2e.test.js | 31 +-
test/e2e/agent-gateway-export.e2e.test.js | 31 +-
test/e2e/agent-java-export.e2e.test.js | 31 +-
test/e2e/agent-web-export.e2e.test.js | 27 +-
7 files changed, 3870 insertions(+), 581 deletions(-)
diff --git a/test/e2e/__snapshots__/agent-export.e2e.test.js.snap b/test/e2e/__snapshots__/agent-export.e2e.test.js.snap
index f405a7442..87f5a7c40 100644
--- a/test/e2e/__snapshots__/agent-export.e2e.test.js.snap
+++ b/test/e2e/__snapshots__/agent-export.e2e.test.js.snap
@@ -697,6 +697,21 @@ exports[`frodo agent export "frodo agent export --all": should export all agents
"status": "Inactive",
"userpassword": null,
},
+ "frodo-test-ig-agent2": {
+ "_id": "frodo-test-ig-agent2",
+ "_type": {
+ "_id": "IdentityGatewayAgent",
+ "collection": true,
+ "name": "Identity Gateway Agents",
+ },
+ "agentgroup": null,
+ "igCdssoLoginUrlTemplate": "http://testurl.com:8080/frodo",
+ "igCdssoRedirectUrls": [
+ "http://testurl.com:8080/frodo",
+ ],
+ "igTokenIntrospection": "Realm",
+ "status": "Inactive",
+ },
"frodo-test-java-agent": {
"_id": "frodo-test-java-agent",
"_type": {
@@ -919,204 +934,8 @@ exports[`frodo agent export "frodo agent export --all": should export all agents
"setCookieInternalMap": {},
},
},
- "frodo-test-web-agent": {
- "_id": "frodo-test-web-agent",
- "_type": {
- "_id": "WebAgent",
- "collection": true,
- "name": "Web Agents",
- },
- "advancedWebAgentConfig": {
- "apacheAuthDirectives": null,
- "clientHostnameHeader": null,
- "clientIpHeader": null,
- "customProperties": [],
- "fragmentRedirectEnabled": false,
- "hostnameToIpAddress": [],
- "logonAndImpersonation": false,
- "overrideRequestHost": false,
- "overrideRequestPort": false,
- "overrideRequestProtocol": false,
- "pdpJavascriptRepost": false,
- "pdpSkipPostUrl": [
- "",
- ],
- "pdpStickySessionCookieName": null,
- "pdpStickySessionMode": "OFF",
- "pdpStickySessionValue": null,
- "postDataCachePeriod": 10,
- "postDataPreservation": false,
- "replayPasswordKey": null,
- "retainSessionCache": false,
- "showPasswordInHeader": false,
- },
- "amServicesWebAgent": {
- "amLoginUrl": [],
- "amLogoutUrl": [
- "http://testserverurl.com:8080/UI/Logout",
- ],
- "applicationLogoutUrls": [
- "",
- ],
- "conditionalLoginUrl": [
- "",
- ],
- "customLoginMode": 0,
- "enableLogoutRegex": false,
- "fetchPoliciesFromRootResource": false,
- "invalidateLogoutSession": true,
- "logoutRedirectDisabled": false,
- "logoutRedirectUrl": null,
- "logoutResetCookies": [
- "",
- ],
- "logoutUrlRegex": null,
- "policyCachePollingInterval": 3,
- "policyClockSkew": 0,
- "policyEvaluationApplication": "iPlanetAMWebAgentService",
- "policyEvaluationRealm": "/",
- "publicAmUrl": null,
- "regexConditionalLoginPattern": [
- "",
- ],
- "regexConditionalLoginUrl": [
- "",
- ],
- "retrieveClientHostname": false,
- "ssoCachePollingInterval": 3,
- "userIdParameter": "UserToken",
- "userIdParameterType": "session",
- },
- "applicationWebAgentConfig": {
- "attributeMultiValueSeparator": "|",
- "clientIpValidation": false,
- "continuousSecurityCookies": {},
- "continuousSecurityHeaders": {},
- "fetchAttributesForNotEnforcedUrls": false,
- "ignorePathInfoForNotEnforcedUrls": true,
- "invertNotEnforcedUrls": false,
- "notEnforcedIps": [
- "",
- ],
- "notEnforcedIpsList": [
- "",
- ],
- "notEnforcedIpsRegex": false,
- "notEnforcedUrls": [
- "",
- ],
- "notEnforcedUrlsRegex": false,
- "profileAttributeFetchMode": "NONE",
- "profileAttributeMap": {},
- "responseAttributeFetchMode": "NONE",
- "responseAttributeMap": {},
- "sessionAttributeFetchMode": "NONE",
- "sessionAttributeMap": {},
- },
- "globalWebAgentConfig": {
- "accessDeniedUrl": null,
- "agentConfigChangeNotificationsEnabled": true,
- "agentDebugLevel": "Error",
- "agentUriPrefix": "http://testagenturl.com:8080/amagent",
- "agentgroup": null,
- "amLbCookieEnable": false,
- "auditAccessType": "LOG_NONE",
- "auditLogLocation": "REMOTE",
- "cdssoRootUrl": [
- "agentRootURL=http://testagenturl.com:8080/",
- ],
- "configurationPollingInterval": 60,
- "disableJwtAudit": false,
- "fqdnCheck": false,
- "fqdnDefault": "testagenturl.com",
- "fqdnMapping": {},
- "jwtAuditWhitelist": null,
- "jwtName": "am-auth-jwt",
- "notificationsEnabled": true,
- "repositoryLocation": "centralized",
- "resetIdleTime": false,
- "ssoOnlyMode": false,
- "status": "Inactive",
- "userpassword": null,
- "webSocketConnectionIntervalInMinutes": 30,
- },
- "miscWebAgentConfig": {
- "addCacheControlHeader": false,
- "anonymousUserEnabled": false,
- "anonymousUserId": "anonymous",
- "caseInsensitiveUrlComparison": true,
- "compositeAdviceEncode": false,
- "compositeAdviceRedirect": false,
- "encodeSpecialCharsInCookies": false,
- "encodeUrlSpecialCharacters": false,
- "gotoParameterName": "goto",
- "headerJsonResponse": {},
- "ignorePathInfo": false,
- "invalidUrlRegex": null,
- "invertUrlJsonResponse": false,
- "mineEncodeHeader": 0,
- "profileAttributesCookieMaxAge": 300,
- "profileAttributesCookiePrefix": "HTTP_",
- "statusCodeJsonResponse": 202,
- "urlJsonResponse": [
- "",
- ],
- },
- "ssoWebAgentConfig": {
- "acceptSsoToken": false,
- "cdssoCookieDomain": [
- "",
- ],
- "cdssoRedirectUri": "agent/cdsso-oauth2",
- "cookieName": "iPlanetDirectoryPro",
- "cookieResetEnabled": false,
- "cookieResetList": [
- "",
- ],
- "cookieResetOnRedirect": false,
- "httpOnly": true,
- "multivaluePreAuthnCookie": false,
- "persistentJwtCookie": false,
- "sameSite": null,
- "secureCookies": false,
- },
- },
- },
- "meta": Any
",
- },
- "message": {
- "en": "This is your one-time password:
{{object.frUnindexedInteger5}}
",
- },
- "mimeType": "text/html",
- "styles": "body {
- background-color: #324054;
- color: #455469;
- padding: 60px;
- text-align: center
-}
- a {
- text-decoration: none;
- color: #109cf1;
-}
- .content {
- background-color: #fff;
- border-radius: 4px;
- margin: 0 auto;
- padding: 48px;
- width: 235px
-}
- ",
- "subject": {
- "en": "One-Time Password for Login",
- },
- },
- "UnknownDeviceNotification": {
- "_id": "emailTemplate/UnknownDeviceNotification",
- "defaultLocale": "en",
- "displayName": "Unknown Device Notification",
- "enabled": true,
- "from": "saas@forgerock.com",
- "html": {
- "en": "Hello {{object.givenName}} {{object.sn}},
your Expanse account was accessed from an unknown device!
Your Expanse Security Team.
",
- },
- "message": {
- "en": "Hello {{object.givenName}} {{object.sn}},
your Expanse account was accessed from an unknown device!
Your Expanse Security Team.
",
- },
- "mimeType": "text/html",
- "styles": "body {
- background-color: #324054;
- color: black;
- padding: 60px;
- text-align: center
-}
- a {
- text-decoration: none;
- color: #109cf1;
-}
- .content {
- background-color: orange;
- border-radius: 4px;
- margin: 0 auto;
- padding: 48px;
- width: 235px
-}
- ",
- "subject": {
- "en": "Your Expanse account was accessed from an unknown device!",
- },
- },
- "Welcome": {
- "_id": "emailTemplate/Welcome",
- "defaultLocale": "en",
- "displayName": "Welcome",
- "enabled": true,
- "from": "saas@forgerock.com",
- "html": {
- "en": "Welcome to Expanse, {{object.givenName}}!
Access your account with your new username: {{object.userName}}
We are looking forward to servicing all your banking needs!
Your Expanse Team.
",
- },
- "message": {
- "en": "Welcome to Expanse, {{object.givenName}}!
Access your account with your new username: {{object.userName}}
We are looking forward to servicing all your banking needs!
Your Expanse Team.
",
- },
- "mimeType": "text/html",
- "styles": "body {
- background-color: #324054;
- color: black;
- padding: 10px;
- text-align: left
-}
- a {
- text-decoration: none;
- color: #109cf1;
-}
- .content {
- background-color: #ffffff;
- border-radius: 4px;
- margin: 0 auto;
- padding: 10px;
- width: 300px
-}
- ",
- "subject": {
- "en": "Your registration with Expanse",
- },
- },
- "activation": {
- "_id": "emailTemplate/activation",
- "defaultLocale": "en",
- "displayName": "Activation",
- "enabled": true,
- "from": ""ForgeRock Identity Cloud Team" ",
- "html": {
- "en": "Welcome {{object.givenName}}.
Your username is '{{object.userName}}'.
",
- },
- "message": {
- "en": "Welcome {{object.givenName}}.
Your username is '{{object.userName}}'.
",
- },
- "mimeType": "text/html",
- "styles": "body {
- background-color: #324054;
- color: #455469;
- padding: 60px;
- text-align: center
-}
-
-a {
- text-decoration: none;
- color: #109cf1;
-}
-
-.content {
- background-color: #fff;
- border-radius: 4px;
- margin: 0 auto;
- padding: 48px;
- width: 235px
-}
-",
- "subject": {
- "en": "Your J.P. Morgan account has been activated",
- },
- "templateId": "activation",
- },
- "arvestUnknownDeviceNotification": {
- "_id": "emailTemplate/arvestUnknownDeviceNotification",
- "defaultLocale": "en",
- "description": "",
- "displayName": "Arvest Unknown Device Notification",
- "enabled": true,
- "from": ""Arvest IT Security " ",
- "html": {
- "en": "Hello {{object.givenName}} {{object.sn}},
your Arvest account was accessed from an unknown device!
Your Arvest Cyber Security Team.
",
- },
- "message": {
- "en": "Hello {{object.givenName}} {{object.sn}},
your Arvest account was accessed from an unknown device!
Your Arvest Cyber Security Team.
",
- },
- "mimeType": "text/html",
- "styles": "body {
- background-color: #324054;
- color: black;
- padding: 60px;
- text-align: center
-}
- a {
- text-decoration: none;
- color: #109cf1;
-}
- .content {
- background-color: orange;
- border-radius: 4px;
- margin: 0 auto;
- padding: 48px;
- width: 235px
-}
- ",
- "subject": {
- "en": "Your Arvest Bank account was accessed from an unknown device!",
- },
- "templateId": "arvestUnknownDeviceNotification",
- },
- "arvestWelcome": {
- "_id": "emailTemplate/arvestWelcome",
- "defaultLocale": "en",
- "description": "",
- "displayName": "ArvestWelcome",
- "enabled": true,
- "from": ""Arvest Admin" ",
- "html": {
- "en": "Welcome to Arvest Bank, {{object.givenName}}!
Access your account with your new username: {{object.userName}}
We are looking forward to servicing all your banking needs!
Your Arvest Team
",
- },
- "message": {
- "en": "Welcome to Arvest Bank, {{object.givenName}}!
Access your account with your new username: {{object.userName}}
We are looking forward to servicing all your banking needs!
Your Arvest Team
",
- },
- "mimeType": "text/html",
- "name": "Welcome",
- "styles": "body {
- background-color: #324054;
- color: black;
- padding: 10px;
- text-align: left
-}
- a {
- text-decoration: none;
- color: #109cf1;
-}
- .content {
- background-color: #ffffff;
- border-radius: 4px;
- margin: 0 auto;
- padding: 10px;
- width: 300px
-}
- ",
- "subject": {
- "en": "Your registration with Arvest Bank",
- },
- "templateId": "arvestWelcome",
- },
- "ebInvitation": {
- "_id": "emailTemplate/ebInvitation",
- "advancedEditor": true,
- "defaultLocale": "en",
- "description": "",
- "displayName": "EBInvitation",
- "enabled": true,
- "from": ""J.P Morgan " <>",
- "html": {
- "en": "",
- },
- "message": {
- "en": "
-
-
-
-
Dear {{object.givenName}},
-
You have been invited to join
- JPMC Embedded Banking
-
-
-
Copyright © 2022 of J.P. Morgan Chase & Co.
-
-
-
- ",
- },
- "mimeType": "text/html",
- "name": "invitation",
- "styles": "body {
- margin: 0;
- padding: 0;
- color: #455469;
- font-family: 'Open Sans';
-}
- table {
- width:100%;
- border-collapse:collapse;
- border:0;
- border-spacing:0;
- background:#ffffff;
- text-align: center;
-}
- tbody {
-}
- ",
- "subject": {
- "en": "You're invited to join the JPMC Embedded Banking",
- },
- "templateId": "ebInvitation",
- },
- "forgottenUsername": {
- "_id": "emailTemplate/forgottenUsername",
- "defaultLocale": "en",
- "enabled": true,
- "from": "",
- "html": {
- "en": "{{#if object.userName}}Your username is '{{object.userName}}'.
{{else}}If you received this email in error, please disregard.{{/if}}Click here to login
",
- "fr": "{{#if object.userName}}Votre nom d'utilisateur est '{{object.userName}}'.
{{else}}Si vous avez reçu cet e-mail par erreur, veuillez ne pas en tenir compte.{{/if}}Cliquez ici pour vous connecter
",
- },
- "message": {
- "en": "{{#if object.userName}}Your username is '{{object.userName}}'.
{{else}}If you received this email in error, please disregard.{{/if}}
Click here to login
",
- "fr": "{{#if object.userName}}
Votre nom d'utilisateur est '{{object.userName}}'.
{{else}}Si vous avez reçu cet e-mail par erreur, veuillez ne pas en tenir compte.{{/if}}
Cliquez ici pour vous connecter
",
- },
- "mimeType": "text/html",
- "styles": "body{background-color:#324054;color:#5e6d82;padding:60px;text-align:center}a{text-decoration:none;color:#109cf1}.content{background-color:#fff;border-radius:4px;margin:0 auto;padding:48px;width:235px}",
- "subject": {
- "en": "Account Information - username",
- "fr": "Informations sur le compte - nom d'utilisateur",
- },
- },
- "multiFactorEmailLink": {
- "_id": "emailTemplate/multiFactorEmailLink",
- "defaultLocale": "en",
- "enabled": true,
- "from": "",
- "message": {
- "en": "You started a login or profile update that requires MFA.
",
- },
- "mimeType": "text/html",
- "subject": {
- "en": "Multi-Factor Email for Identity Cloud login",
- },
- },
- "oneTimePassword": {
- "_id": "emailTemplate/oneTimePassword",
- "defaultLocale": "en",
- "enabled": true,
- "from": "",
- "message": {
- "en": "This is your one-time password:
{{object.description}}
",
- },
- "mimeType": "text/html",
- "subject": {
- "en": "One-Time Password for login",
- },
- },
- "profileUpdateNotification": {
- "_id": "emailTemplate/profileUpdateNotification",
- "defaultLocale": "en",
- "displayName": "Profile Update Notification",
- "enabled": true,
- "from": "saas@forgerock.com",
- "html": {
- "en": "Hello {{object.givenName}},
your user profile has been updated. If you did not make those changes yourself or requested them, please contact us immediately.
Kindest regards.
",
- },
- "message": {
- "en": "Hello {{object.givenName}},
your user profile has been updated. If you did not make those changes yourself or requested them, please contact us immediately.
Kindest regards.
",
- },
- "mimeType": "text/html",
- "styles": "body {
- background-color: #324054;
- color: #455469;
- padding: 60px;
- text-align: center
-}
- a {
- text-decoration: none;
- color: #109cf1;
-}
- .content {
- background-color: #fff;
- border-radius: 4px;
- margin: 0 auto;
- padding: 48px;
- width: 235px
-}
- ",
- "subject": {
- "en": "Your user profile has been updated",
- },
- },
- "profileUpdateNotificationEmailChange": {
- "_id": "emailTemplate/profileUpdateNotificationEmailChange",
- "defaultLocale": "en",
- "displayName": "Email Address Change Notification",
- "enabled": true,
- "from": "saas@forgerock.com",
- "html": {
- "en": "Hello {{object.givenName}},
your user profile has been updated and your email address has changed. This email is sent to the old address we had on file. If you did not make those changes yourself or requested them, please contact us immediately.
Old: {{object.frUnindexedString5}}
-New: {{object.mail}}
Kindest regards.
",
- },
- "message": {
- "en": "Hello {{object.givenName}},
your user profile has been updated and your email address has changed. This email is sent to the old address we had on file. If you did not make those changes yourself or requested them, please contact us immediately.
Old: {{object.frUnindexedString5}}
-New: {{object.mail}}
Kindest regards.
",
- },
- "mimeType": "text/html",
- "styles": "body {
- background-color: #324054;
- color: #455469;
- padding: 60px;
- text-align: left
-}
- a {
- text-decoration: none;
- color: #109cf1;
-}
- .content {
- background-color: #fff;
- border-radius: 4px;
- margin: 0 auto;
- padding: 48px;
- width: 235px
-}
- ",
- "subject": {
- "en": "You email address and profile has been updated",
- },
- },
- "registration": {
- "_id": "emailTemplate/registration",
- "advancedEditor": true,
- "defaultLocale": "en",
- "displayName": "registration",
- "enabled": true,
- "from": ""J.P Morgan" ",
- "html": {
- "en": "",
- "fr": "",
- },
- "message": {
- "en": "
-
-
-
-
You have been invited to join
-
- JPMC Developer Console
-
-
- ACCEPT INVITE
-
-
Copyright © 2022 of J.P. Morgan Chase & Co.
-
-
-",
- "fr": "Ceci est votre mail d'inscription.
Lien de vérification email
",
- },
- "mimeType": "text/html",
- "styles": "body {
- color: #455469;
- text-align: center;
- font-family: 'Open Sans';
- width: 400px;
- margin: auto;
-}
- td {
- text-decoration: none;
- color: white;
- background: #155C93;
- font-style: normal;
- font-weight: 700;
- font-size: 14px;
- line-height: 22px;
- border-radius: 3px;
- padding: 15px;
-}
- .content {
- background-color: #fff;
- border-radius: 4px;
-}
- h2 {
- margin: 50px;
-}
- h3 {
- text-align: left;
-}
- h4 {
- font-style: normal;
- font-weight: 400;
-}
- h5 {
- color: #666666;
- font-family: 'Inter';
- font-style: normal;
- font-weight: 400;
- font-size: 16px;
- line-height: 24px;
-}
- h6 {
- color: #999999;
- font-family: 'Inter';
- -font-style: normal;
- font-weight: 400;
- font-size: 12px;
- line-height: 16px;
-}
- table {
- margin: auto;
- background-color: #dedddc;
-}
- tr {
- background-color: #dedddc;
-}
-
-a {
- text-decoration: none;
- color: white;
-} ",
- "subject": {
- "en": "You're invited to join JPMC Embedded Banking",
- "fr": "Créer un nouveau compte",
- },
- "templateId": "registration",
- },
- "resetPassword": {
- "_id": "emailTemplate/resetPassword",
- "defaultLocale": "en",
- "enabled": true,
- "from": "",
- "message": {
- "en": "Click to reset your password
",
- "fr": "Cliquez pour réinitialiser votre mot de passe
",
- },
- "mimeType": "text/html",
- "subject": {
- "en": "Reset your password",
- "fr": "Réinitialisez votre mot de passe",
- },
- },
- "updatePassword": {
- "_id": "emailTemplate/updatePassword",
- "defaultLocale": "en",
- "enabled": true,
- "from": "",
- "html": {
- "en": "Verify email to update password
Update password link
",
- },
- "message": {
- "en": "Verify email to update password
Update password link
",
- },
- "mimeType": "text/html",
- "styles": "body{background-color:#324054;color:#5e6d82;padding:60px;text-align:center}a{text-decoration:none;color:#109cf1}.content{background-color:#fff;border-radius:4px;margin:0 auto;padding:48px;width:235px}",
- "subject": {
- "en": "Update your password",
- },
- },
- "welcome": {
- "_id": "emailTemplate/welcome",
- "defaultLocale": "en",
- "displayName": "Welcome",
- "enabled": true,
- "from": "saas@forgerock.com",
- "html": {
- "en": "Welcome. Your username is '{{object.userName}}'.
",
- },
- "message": {
- "en": "Welcome. Your username is '{{object.userName}}'.
",
- },
- "mimeType": "text/html",
- "styles": "body{
- background-color:#324054;
- color:#5e6d82;
- padding:60px;
- text-align:center
-}
-a{
- text-decoration:none;
- color:#109cf1
-}
-.content{
- background-color:#fff;
- border-radius:4px;
- margin:0 auto;
- padding:48px;
- width:235px
-}
-",
- "subject": {
- "en": "Your account has been created",
- },
- },
- },
- "meta": Any,
-}
-`;
-
-exports[`frodo email template export "frodo email template export --all-separate": should export all email templates to separate files 1`] = `""`;
-
-exports[`frodo email template export "frodo email template export --all-separate": should export all email templates to separate files 2`] = `
-{
- "emailTemplate": {
- "FraudNotification": {
- "_id": "emailTemplate/FraudNotification",
- "defaultLocale": "en",
- "displayName": "Fraud Notification",
- "enabled": true,
- "from": "saas@forgerock.com",
- "html": {
- "en": "Hello {{object.givenName}} {{object.sn}},
we blocked an attempt to access your Expanse account from a suspicious device!
Your Expanse Security Team.
",
- },
- "message": {
- "en": "Hello {{object.givenName}} {{object.sn}},
we blocked an attempt to access your Expanse account from a suspicious device!
Your Expanse Security Team.
",
- },
- "mimeType": "text/html",
- "styles": "body {
- background-color: #324054;
- color: #455469;
- padding: 60px;
- text-align: center
-}
- a {
- text-decoration: none;
- color: #109cf1;
-}
- .content {
- background-color: red;
- border-radius: 4px;
- margin: 0 auto;
- padding: 48px;
- width: 235px
-}
- ",
- "subject": {
- "en": "Fraud alert from your Expanse Account!",
- },
- },
- },
- "meta": Any,
-}
-`;
-
-exports[`frodo email template export "frodo email template export --all-separate": should export all email templates to separate files 3`] = `
-{
- "emailTemplate": {
- "MobileEmailOTP": {
- "_id": "emailTemplate/MobileEmailOTP",
- "defaultLocale": "en",
- "displayName": "Mobile Email OTP",
- "enabled": true,
- "from": "saas@forgerock.com",
- "html": {
- "en": "This is your one-time password:
{{object.frUnindexedInteger5}}
",
- },
- "message": {
- "en": "This is your one-time password:
{{object.frUnindexedInteger5}}
",
- },
- "mimeType": "text/html",
- "styles": "body {
- background-color: #324054;
- color: #455469;
- padding: 60px;
- text-align: center
-}
- a {
- text-decoration: none;
- color: #109cf1;
-}
- .content {
- background-color: #fff;
- border-radius: 4px;
- margin: 0 auto;
- padding: 48px;
- width: 235px
-}
- ",
- "subject": {
- "en": "One-Time Password for Login",
- },
- },
- },
- "meta": Any,
-}
-`;
-
-exports[`frodo email template export "frodo email template export --all-separate": should export all email templates to separate files 4`] = `
-{
- "emailTemplate": {
- "UnknownDeviceNotification": {
- "_id": "emailTemplate/UnknownDeviceNotification",
- "defaultLocale": "en",
- "displayName": "Unknown Device Notification",
- "enabled": true,
- "from": "saas@forgerock.com",
- "html": {
- "en": "Hello {{object.givenName}} {{object.sn}},
your Expanse account was accessed from an unknown device!
Your Expanse Security Team.
",
- },
- "message": {
- "en": "Hello {{object.givenName}} {{object.sn}},
your Expanse account was accessed from an unknown device!
Your Expanse Security Team.
",
- },
- "mimeType": "text/html",
- "styles": "body {
- background-color: #324054;
- color: black;
- padding: 60px;
- text-align: center
-}
- a {
- text-decoration: none;
- color: #109cf1;
-}
- .content {
- background-color: orange;
- border-radius: 4px;
- margin: 0 auto;
- padding: 48px;
- width: 235px
-}
- ",
- "subject": {
- "en": "Your Expanse account was accessed from an unknown device!",
- },
- },
- },
- "meta": Any,
-}
-`;
-
-exports[`frodo email template export "frodo email template export --all-separate": should export all email templates to separate files 5`] = `
-{
- "emailTemplate": {
- "Welcome": {
- "_id": "emailTemplate/Welcome",
- "defaultLocale": "en",
- "displayName": "Welcome",
- "enabled": true,
- "from": "saas@forgerock.com",
- "html": {
- "en": "Welcome to Expanse, {{object.givenName}}!
Access your account with your new username: {{object.userName}}
We are looking forward to servicing all your banking needs!
Your Expanse Team.
",
- },
- "message": {
- "en": "Welcome to Expanse, {{object.givenName}}!
Access your account with your new username: {{object.userName}}
We are looking forward to servicing all your banking needs!
Your Expanse Team.
",
- },
- "mimeType": "text/html",
- "styles": "body {
- background-color: #324054;
- color: black;
- padding: 10px;
- text-align: left
-}
- a {
- text-decoration: none;
- color: #109cf1;
-}
- .content {
- background-color: #ffffff;
- border-radius: 4px;
- margin: 0 auto;
- padding: 10px;
- width: 300px
-}
- ",
- "subject": {
- "en": "Your registration with Expanse",
- },
- },
- },
- "meta": Any,
-}
-`;
-
-exports[`frodo email template export "frodo email template export --all-separate": should export all email templates to separate files 6`] = `
-{
- "emailTemplate": {
- "activation": {
- "_id": "emailTemplate/activation",
- "defaultLocale": "en",
- "displayName": "Activation",
- "enabled": true,
- "from": ""ForgeRock Identity Cloud Team" ",
- "html": {
- "en": "Welcome {{object.givenName}}.
Your username is '{{object.userName}}'.
",
- },
- "message": {
- "en": "Welcome {{object.givenName}}.
Your username is '{{object.userName}}'.
",
- },
- "mimeType": "text/html",
- "styles": "body {
- background-color: #324054;
- color: #455469;
- padding: 60px;
- text-align: center
-}
-
-a {
- text-decoration: none;
- color: #109cf1;
-}
-
-.content {
- background-color: #fff;
- border-radius: 4px;
- margin: 0 auto;
- padding: 48px;
- width: 235px
-}
-",
- "subject": {
- "en": "Your J.P. Morgan account has been activated",
- },
- "templateId": "activation",
- },
- },
- "meta": Any,
-}
-`;
-
-exports[`frodo email template export "frodo email template export --all-separate": should export all email templates to separate files 7`] = `
-{
- "emailTemplate": {
- "arvestUnknownDeviceNotification": {
- "_id": "emailTemplate/arvestUnknownDeviceNotification",
- "defaultLocale": "en",
- "description": "",
- "displayName": "Arvest Unknown Device Notification",
- "enabled": true,
- "from": ""Arvest IT Security " ",
- "html": {
- "en": "Hello {{object.givenName}} {{object.sn}},
your Arvest account was accessed from an unknown device!
Your Arvest Cyber Security Team.
",
- },
- "message": {
- "en": "Hello {{object.givenName}} {{object.sn}},
your Arvest account was accessed from an unknown device!
Your Arvest Cyber Security Team.
",
- },
- "mimeType": "text/html",
- "styles": "body {
- background-color: #324054;
- color: black;
- padding: 60px;
- text-align: center
-}
- a {
- text-decoration: none;
- color: #109cf1;
-}
- .content {
- background-color: orange;
- border-radius: 4px;
- margin: 0 auto;
- padding: 48px;
- width: 235px
-}
- ",
- "subject": {
- "en": "Your Arvest Bank account was accessed from an unknown device!",
- },
- "templateId": "arvestUnknownDeviceNotification",
- },
- },
- "meta": Any,
-}
-`;
-
-exports[`frodo email template export "frodo email template export --all-separate": should export all email templates to separate files 8`] = `
-{
- "emailTemplate": {
- "arvestWelcome": {
- "_id": "emailTemplate/arvestWelcome",
- "defaultLocale": "en",
- "description": "",
- "displayName": "ArvestWelcome",
- "enabled": true,
- "from": ""Arvest Admin" ",
- "html": {
- "en": "Welcome to Arvest Bank, {{object.givenName}}!
Access your account with your new username: {{object.userName}}
We are looking forward to servicing all your banking needs!
Your Arvest Team
",
- },
- "message": {
- "en": "Welcome to Arvest Bank, {{object.givenName}}!
Access your account with your new username: {{object.userName}}
We are looking forward to servicing all your banking needs!
Your Arvest Team
",
- },
- "mimeType": "text/html",
- "name": "Welcome",
- "styles": "body {
- background-color: #324054;
- color: black;
- padding: 10px;
- text-align: left
-}
- a {
- text-decoration: none;
- color: #109cf1;
-}
- .content {
- background-color: #ffffff;
- border-radius: 4px;
- margin: 0 auto;
- padding: 10px;
- width: 300px
-}
- ",
- "subject": {
- "en": "Your registration with Arvest Bank",
- },
- "templateId": "arvestWelcome",
- },
- },
- "meta": Any,
-}
-`;
-
-exports[`frodo email template export "frodo email template export --all-separate": should export all email templates to separate files 9`] = `
-{
- "emailTemplate": {
- "ebInvitation": {
- "_id": "emailTemplate/ebInvitation",
- "advancedEditor": true,
- "defaultLocale": "en",
- "description": "",
- "displayName": "EBInvitation",
- "enabled": true,
- "from": ""J.P Morgan " <>",
- "html": {
- "en": "",
- },
- "message": {
- "en": "
-
-
-
-
Dear {{object.givenName}},
-
You have been invited to join
- JPMC Embedded Banking
-
-
-
Copyright © 2022 of J.P. Morgan Chase & Co.
-
-
-
- ",
- },
- "mimeType": "text/html",
- "name": "invitation",
- "styles": "body {
- margin: 0;
- padding: 0;
- color: #455469;
- font-family: 'Open Sans';
-}
- table {
- width:100%;
- border-collapse:collapse;
- border:0;
- border-spacing:0;
- background:#ffffff;
- text-align: center;
-}
- tbody {
-}
- ",
- "subject": {
- "en": "You're invited to join the JPMC Embedded Banking",
- },
- "templateId": "ebInvitation",
- },
- },
- "meta": Any,
-}
-`;
-
-exports[`frodo email template export "frodo email template export --all-separate": should export all email templates to separate files 10`] = `
-{
- "emailTemplate": {
- "forgottenUsername": {
- "_id": "emailTemplate/forgottenUsername",
- "defaultLocale": "en",
- "enabled": true,
- "from": "",
- "html": {
- "en": "{{#if object.userName}}Your username is '{{object.userName}}'.
{{else}}If you received this email in error, please disregard.{{/if}}Click here to login
",
- "fr": "{{#if object.userName}}Votre nom d'utilisateur est '{{object.userName}}'.
{{else}}Si vous avez reçu cet e-mail par erreur, veuillez ne pas en tenir compte.{{/if}}Cliquez ici pour vous connecter
",
- },
- "message": {
- "en": "{{#if object.userName}}Your username is '{{object.userName}}'.
{{else}}If you received this email in error, please disregard.{{/if}}
Click here to login
",
- "fr": "{{#if object.userName}}
Votre nom d'utilisateur est '{{object.userName}}'.
{{else}}Si vous avez reçu cet e-mail par erreur, veuillez ne pas en tenir compte.{{/if}}
Cliquez ici pour vous connecter
",
- },
- "mimeType": "text/html",
- "styles": "body{background-color:#324054;color:#5e6d82;padding:60px;text-align:center}a{text-decoration:none;color:#109cf1}.content{background-color:#fff;border-radius:4px;margin:0 auto;padding:48px;width:235px}",
- "subject": {
- "en": "Account Information - username",
- "fr": "Informations sur le compte - nom d'utilisateur",
- },
- },
- },
- "meta": Any,
-}
-`;
-
-exports[`frodo email template export "frodo email template export --all-separate": should export all email templates to separate files 11`] = `
-{
- "emailTemplate": {
- "multiFactorEmailLink": {
- "_id": "emailTemplate/multiFactorEmailLink",
- "defaultLocale": "en",
- "enabled": true,
- "from": "",
- "message": {
- "en": "You started a login or profile update that requires MFA.
",
- },
- "mimeType": "text/html",
- "subject": {
- "en": "Multi-Factor Email for Identity Cloud login",
- },
- },
- },
- "meta": Any,
-}
-`;
-
-exports[`frodo email template export "frodo email template export --all-separate": should export all email templates to separate files 12`] = `
-{
- "emailTemplate": {
- "oneTimePassword": {
- "_id": "emailTemplate/oneTimePassword",
- "defaultLocale": "en",
- "enabled": true,
- "from": "",
- "message": {
- "en": "This is your one-time password:
{{object.description}}
",
- },
- "mimeType": "text/html",
- "subject": {
- "en": "One-Time Password for login",
- },
- },
- },
- "meta": Any,
-}
-`;
-
-exports[`frodo email template export "frodo email template export --all-separate": should export all email templates to separate files 13`] = `
-{
- "emailTemplate": {
- "profileUpdateNotification": {
- "_id": "emailTemplate/profileUpdateNotification",
- "defaultLocale": "en",
- "displayName": "Profile Update Notification",
- "enabled": true,
- "from": "saas@forgerock.com",
- "html": {
- "en": "Hello {{object.givenName}},
your user profile has been updated. If you did not make those changes yourself or requested them, please contact us immediately.
Kindest regards.
",
- },
- "message": {
- "en": "Hello {{object.givenName}},
your user profile has been updated. If you did not make those changes yourself or requested them, please contact us immediately.
Kindest regards.
",
- },
- "mimeType": "text/html",
- "styles": "body {
- background-color: #324054;
- color: #455469;
- padding: 60px;
- text-align: center
-}
- a {
- text-decoration: none;
- color: #109cf1;
-}
- .content {
- background-color: #fff;
- border-radius: 4px;
- margin: 0 auto;
- padding: 48px;
- width: 235px
-}
- ",
- "subject": {
- "en": "Your user profile has been updated",
- },
- },
- },
- "meta": Any,
-}
-`;
-
-exports[`frodo email template export "frodo email template export --all-separate": should export all email templates to separate files 14`] = `
-{
- "emailTemplate": {
- "profileUpdateNotificationEmailChange": {
- "_id": "emailTemplate/profileUpdateNotificationEmailChange",
- "defaultLocale": "en",
- "displayName": "Email Address Change Notification",
- "enabled": true,
- "from": "saas@forgerock.com",
- "html": {
- "en": "Hello {{object.givenName}},
your user profile has been updated and your email address has changed. This email is sent to the old address we had on file. If you did not make those changes yourself or requested them, please contact us immediately.
Old: {{object.frUnindexedString5}}
-New: {{object.mail}}
Kindest regards.
",
- },
- "message": {
- "en": "Hello {{object.givenName}},
your user profile has been updated and your email address has changed. This email is sent to the old address we had on file. If you did not make those changes yourself or requested them, please contact us immediately.
Old: {{object.frUnindexedString5}}
-New: {{object.mail}}
Kindest regards.
",
- },
- "mimeType": "text/html",
- "styles": "body {
- background-color: #324054;
- color: #455469;
- padding: 60px;
- text-align: left
-}
- a {
- text-decoration: none;
- color: #109cf1;
-}
- .content {
- background-color: #fff;
- border-radius: 4px;
- margin: 0 auto;
- padding: 48px;
- width: 235px
-}
- ",
- "subject": {
- "en": "You email address and profile has been updated",
- },
- },
- },
- "meta": Any,
-}
-`;
-
-exports[`frodo email template export "frodo email template export --all-separate": should export all email templates to separate files 15`] = `
-{
- "emailTemplate": {
- "registration": {
- "_id": "emailTemplate/registration",
- "advancedEditor": true,
- "defaultLocale": "en",
- "displayName": "registration",
- "enabled": true,
- "from": ""J.P Morgan" ",
- "html": {
- "en": "",
- "fr": "",
- },
- "message": {
- "en": "
-
-
-
-
You have been invited to join
-
- JPMC Developer Console
-
-
- ACCEPT INVITE
-
-
Copyright © 2022 of J.P. Morgan Chase & Co.
-
-
-",
- "fr": "Ceci est votre mail d'inscription.
Lien de vérification email
",
- },
- "mimeType": "text/html",
- "styles": "body {
- color: #455469;
- text-align: center;
- font-family: 'Open Sans';
- width: 400px;
- margin: auto;
-}
- td {
- text-decoration: none;
- color: white;
- background: #155C93;
- font-style: normal;
- font-weight: 700;
- font-size: 14px;
- line-height: 22px;
- border-radius: 3px;
- padding: 15px;
-}
- .content {
- background-color: #fff;
- border-radius: 4px;
-}
- h2 {
- margin: 50px;
-}
- h3 {
- text-align: left;
-}
- h4 {
- font-style: normal;
- font-weight: 400;
-}
- h5 {
- color: #666666;
- font-family: 'Inter';
- font-style: normal;
- font-weight: 400;
- font-size: 16px;
- line-height: 24px;
-}
- h6 {
- color: #999999;
- font-family: 'Inter';
- -font-style: normal;
- font-weight: 400;
- font-size: 12px;
- line-height: 16px;
-}
- table {
- margin: auto;
- background-color: #dedddc;
-}
- tr {
- background-color: #dedddc;
-}
-
-a {
- text-decoration: none;
- color: white;
-} ",
- "subject": {
- "en": "You're invited to join JPMC Embedded Banking",
- "fr": "Créer un nouveau compte",
- },
- "templateId": "registration",
- },
- },
- "meta": Any,
-}
-`;
-
-exports[`frodo email template export "frodo email template export --all-separate": should export all email templates to separate files 16`] = `
-{
- "emailTemplate": {
- "resetPassword": {
- "_id": "emailTemplate/resetPassword",
- "defaultLocale": "en",
- "enabled": true,
- "from": "",
- "message": {
- "en": "Click to reset your password
",
- "fr": "Cliquez pour réinitialiser votre mot de passe
",
- },
- "mimeType": "text/html",
- "subject": {
- "en": "Reset your password",
- "fr": "Réinitialisez votre mot de passe",
- },
- },
- },
- "meta": Any,
-}
-`;
-
-exports[`frodo email template export "frodo email template export --all-separate": should export all email templates to separate files 17`] = `
-{
- "emailTemplate": {
- "updatePassword": {
- "_id": "emailTemplate/updatePassword",
- "defaultLocale": "en",
- "enabled": true,
- "from": "",
- "html": {
- "en": "Verify email to update password
Update password link
",
- },
- "message": {
- "en": "Verify email to update password
Update password link
",
- },
- "mimeType": "text/html",
- "styles": "body{background-color:#324054;color:#5e6d82;padding:60px;text-align:center}a{text-decoration:none;color:#109cf1}.content{background-color:#fff;border-radius:4px;margin:0 auto;padding:48px;width:235px}",
- "subject": {
- "en": "Update your password",
- },
- },
- },
- "meta": Any,
-}
-`;
-
-exports[`frodo email template export "frodo email template export --all-separate": should export all email templates to separate files 18`] = `
-{
- "emailTemplate": {
- "welcome": {
- "_id": "emailTemplate/welcome",
- "defaultLocale": "en",
- "displayName": "Welcome",
- "enabled": true,
- "from": "saas@forgerock.com",
- "html": {
- "en": "Welcome. Your username is '{{object.userName}}'.
",
- },
- "message": {
- "en": "Welcome. Your username is '{{object.userName}}'.
",
- },
- "mimeType": "text/html",
- "styles": "body{
- background-color:#324054;
- color:#5e6d82;
- padding:60px;
- text-align:center
-}
-a{
- text-decoration:none;
- color:#109cf1
-}
-.content{
- background-color:#fff;
- border-radius:4px;
- margin:0 auto;
- padding:48px;
- width:235px
-}
-",
- "subject": {
- "en": "Your account has been created",
- },
- },
- },
- "meta": Any,
-}
-`;
-
exports[`frodo email template export "frodo email template export --template-id activation": should export the email template with email id "activation" 1`] = `""`;
exports[`frodo email template export "frodo email template export --template-id activation": should export the email template with email id "activation" 2`] = `
@@ -1339,6 +9,7 @@ exports[`frodo email template export "frodo email template export --template-id
"_id": "emailTemplate/activation",
"defaultLocale": "en",
"displayName": "Activation",
+ "emailTemplate": {},
"enabled": true,
"from": ""ForgeRock Identity Cloud Team" ",
"html": {
@@ -1512,39 +183,39 @@ exports[`frodo email template export "frodo email template export -A": should ex
exports[`frodo email template export "frodo email template export -A": should export all email templates to separate files 5`] = `
{
"emailTemplate": {
- "Welcome": {
- "_id": "emailTemplate/Welcome",
+ "welcome": {
+ "_id": "emailTemplate/welcome",
"defaultLocale": "en",
"displayName": "Welcome",
"enabled": true,
"from": "saas@forgerock.com",
"html": {
- "en": "Welcome to Expanse, {{object.givenName}}!
Access your account with your new username: {{object.userName}}
We are looking forward to servicing all your banking needs!
Your Expanse Team.
",
+ "en": "Welcome. Your username is '{{object.userName}}'.
",
},
"message": {
- "en": "Welcome to Expanse, {{object.givenName}}!
Access your account with your new username: {{object.userName}}
We are looking forward to servicing all your banking needs!
Your Expanse Team.
",
+ "en": "Welcome. Your username is '{{object.userName}}'.
",
},
"mimeType": "text/html",
- "styles": "body {
- background-color: #324054;
- color: black;
- padding: 10px;
- text-align: left
+ "styles": "body{
+ background-color:#324054;
+ color:#5e6d82;
+ padding:60px;
+ text-align:center
}
- a {
- text-decoration: none;
- color: #109cf1;
+a{
+ text-decoration:none;
+ color:#109cf1
}
- .content {
- background-color: #ffffff;
- border-radius: 4px;
- margin: 0 auto;
- padding: 10px;
- width: 300px
+.content{
+ background-color:#fff;
+ border-radius:4px;
+ margin:0 auto;
+ padding:48px;
+ width:235px
}
- ",
+",
"subject": {
- "en": "Your registration with Expanse",
+ "en": "Your account has been created",
},
},
},
@@ -1559,6 +230,7 @@ exports[`frodo email template export "frodo email template export -A": should ex
"_id": "emailTemplate/activation",
"defaultLocale": "en",
"displayName": "Activation",
+ "emailTemplate": {},
"enabled": true,
"from": ""ForgeRock Identity Cloud Team" ",
"html": {
@@ -1920,6 +592,7 @@ exports[`frodo email template export "frodo email template export -A": should ex
"advancedEditor": true,
"defaultLocale": "en",
"displayName": "registration",
+ "emailTemplate": {},
"enabled": true,
"from": ""J.P Morgan" ",
"html": {
@@ -2064,52 +737,9 @@ exports[`frodo email template export "frodo email template export -A": should ex
}
`;
-exports[`frodo email template export "frodo email template export -A": should export all email templates to separate files 18`] = `
-{
- "emailTemplate": {
- "welcome": {
- "_id": "emailTemplate/welcome",
- "defaultLocale": "en",
- "displayName": "Welcome",
- "enabled": true,
- "from": "saas@forgerock.com",
- "html": {
- "en": "Welcome. Your username is '{{object.userName}}'.
",
- },
- "message": {
- "en": "Welcome. Your username is '{{object.userName}}'.
",
- },
- "mimeType": "text/html",
- "styles": "body{
- background-color:#324054;
- color:#5e6d82;
- padding:60px;
- text-align:center
-}
-a{
- text-decoration:none;
- color:#109cf1
-}
-.content{
- background-color:#fff;
- border-radius:4px;
- margin:0 auto;
- padding:48px;
- width:235px
-}
-",
- "subject": {
- "en": "Your account has been created",
- },
- },
- },
- "meta": Any,
-}
-`;
-
-exports[`frodo email template export "frodo email template export -a --file test.json": should export all email templates to a single file named test.json 1`] = `""`;
+exports[`frodo email template export "frodo email template export -a --file my-allEmailTemplates.template.email.json": should export all email templates to a single file named my-allEmailTemplates.template.email.json 1`] = `""`;
-exports[`frodo email template export "frodo email template export -a --file test.json": should export all email templates to a single file named test.json 2`] = `
+exports[`frodo email template export "frodo email template export -a --file my-allEmailTemplates.template.email.json": should export all email templates to a single file named my-allEmailTemplates.template.email.json 2`] = `
{
"emailTemplate": {
"FraudNotification": {
@@ -2256,6 +886,7 @@ exports[`frodo email template export "frodo email template export -a --file test
"_id": "emailTemplate/activation",
"defaultLocale": "en",
"displayName": "Activation",
+ "emailTemplate": {},
"enabled": true,
"from": ""ForgeRock Identity Cloud Team" ",
"html": {
@@ -2545,6 +1176,7 @@ New: {{object.mail}}Kindest regards.