Skip to content
Closed
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 @@
Recording,
} from './PollyUtils';

const FRODO_TEST_NAME = process.env.FRODO_TEST_NAME

Check warning on line 17 in src/utils/SetupPollyForFrodoLib.ts

View workflow job for this annotation

GitHub Actions / Build

Delete `·`
? process.env.FRODO_TEST_NAME
: null

Check warning on line 19 in src/utils/SetupPollyForFrodoLib.ts

View workflow job for this annotation

GitHub Actions / Build

Insert `;`

const FRODO_MOCK_HOSTS = process.env.FRODO_MOCK_HOSTS
? process.env.FRODO_MOCK_HOSTS.split(',')
: [
Expand Down Expand Up @@ -102,7 +106,13 @@
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('_');

Check warning on line 109 in src/utils/SetupPollyForFrodoLib.ts

View workflow job for this annotation

GitHub Actions / Build

Replace `(process.env.FRODO_TEST_NAME)·?·FRODO_TEST_NAME` with `process.env.FRODO_TEST_NAME⏎····?·FRODO_TEST_NAME⏎···`
if(process.env.FRODO_TEST_NAME) {

Check warning on line 110 in src/utils/SetupPollyForFrodoLib.ts

View workflow job for this annotation

GitHub Actions / Build

Insert `·`
debugMessage({
message: `FRODO_TEST_NAME=${FRODO_TEST_NAME}`,
state

Check warning on line 113 in src/utils/SetupPollyForFrodoLib.ts

View workflow job for this annotation

GitHub Actions / Build

Insert `,`
})

Check warning on line 114 in src/utils/SetupPollyForFrodoLib.ts

View workflow job for this annotation

GitHub Actions / Build

Insert `;`
}
if (mode !== MODES.RECORD)
debugMessage({
message: `SetupPollyForFrodoLib.getFrodoArgsId: argsId=${argsId}`,
Expand Down
Loading