Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/utils/ForgeRockUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export type FRUtils = {
getCurrentRealmName(): string;
getCurrentRealmManagedUser(): string;
getRealmName(realm: string): string;
getRealmUsingExportFormat(realm: string): string;
/**
* Gets the list of realms to be used for exports in special format.
* e.g. if the realm is normally '/first/second', then it will return 'root-first-second'.
Expand Down Expand Up @@ -80,7 +81,6 @@ export default (state: State): FRUtils => {
getIdmBaseUrl(): string {
return getIdmBaseUrl(state);
},

// deprecated

getHostBaseUrl(url: string): string {
Expand Down
12 changes: 11 additions & 1 deletion src/utils/SetupPollyForFrodoLib.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ import {
Recording,
} from './PollyUtils';

const FRODO_TEST_NAME = process.env.FRODO_TEST_NAME
? process.env.FRODO_TEST_NAME
: null

const FRODO_MOCK_HOSTS = process.env.FRODO_MOCK_HOSTS
? process.env.FRODO_MOCK_HOSTS.split(',')
: [
Expand Down Expand Up @@ -102,7 +106,13 @@ function getFrodoArgsId({ start, state }: { start: number; state: State }) {
result.push(`${args.length}`);
const paramsId = params.join('_');
if (paramsId) result.push(paramsId);
const argsId = result.join('_');
const argsId = (process.env.FRODO_TEST_NAME) ? FRODO_TEST_NAME : result.join('_');
if(process.env.FRODO_TEST_NAME) {
debugMessage({
message: `FRODO_TEST_NAME=${FRODO_TEST_NAME}`,
state
})
}
if (mode !== MODES.RECORD)
debugMessage({
message: `SetupPollyForFrodoLib.getFrodoArgsId: argsId=${argsId}`,
Expand Down
Loading