Skip to content

Commit

Permalink
Merge pull request #442 from vscheuber/main
Browse files Browse the repository at this point in the history
fix failing pipeline tests
  • Loading branch information
vscheuber authored Jul 17, 2024
2 parents ac1c61b + 46fed70 commit 0f77320
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions src/utils/AutoSetupPolly.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,18 +62,26 @@ switch (process.env.FRODO_POLLY_MODE) {
export function setDefaultState(
deployment = Constants.CLOUD_DEPLOYMENT_TYPE_KEY
) {
const classicHostUrl = 'http://openam-frodo-dev.classic.com:8080/am';
const classicRealm = '';
const cloudHostUrl = 'https://openam-frodo-dev.forgeblocks.com/am';
const cloudRealm = 'alpha';
switch (process.env.FRODO_DEPLOY || deployment) {
case Constants.CLASSIC_DEPLOYMENT_TYPE_KEY:
state.setHost(
process.env.FRODO_HOST || 'http://openam-frodo-dev.classic.com:8080/am'
process.env.FRODO_HOST === cloudHostUrl
? classicHostUrl
: process.env.FRODO_HOST || classicHostUrl
);
state.setRealm(
process.env.FRODO_REALM === cloudRealm
? classicRealm
: process.env.FRODO_REALM || classicRealm
);
state.setRealm(process.env.FRODO_REALM || '');
break;
default:
state.setHost(
process.env.FRODO_HOST || 'https://openam-frodo-dev.forgeblocks.com/am'
);
state.setRealm(process.env.FRODO_REALM || 'alpha');
state.setHost(process.env.FRODO_HOST || cloudHostUrl);
state.setRealm(process.env.FRODO_REALM || cloudRealm);
break;
}
state.setDeploymentType(process.env.FRODO_DEPLOY || deployment);
Expand Down

0 comments on commit 0f77320

Please sign in to comment.