Skip to content

Commit

Permalink
K8S contextName for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarof2 committed Oct 9, 2023
1 parent 30a2c6a commit 2153393
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 1,013 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ yargs
let blockchainProvider: string
switch (contextName) {
case 'alfajoresstaging':
case 'alfajoresstaging-k8s':
case 'alfajores':
blockchainProvider = 'https://alfajores-forno.celo-testnet.org'
break
Expand Down
13 changes: 13 additions & 0 deletions packages/sdk/identity/src/odis/query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,12 @@ export interface ServiceContext {
}

export const ODIS_STAGING_CONTEXT: ServiceContext = {
odisUrl: 'https://us-central1-celo-phone-number-privacy.cloudfunctions.net/combinerGen2',
odisPubKey:
'7FsWGsFnmVvRfMDpzz95Np76wf/1sPaK0Og9yiB+P8QbjiC8FV67NBans9hzZEkBaQMhiapzgMR6CkZIZPvgwQboAxl65JWRZecGe5V3XO4sdKeNemdAZ2TzQuWkuZoA',
}

export const ODIS_STAGING_CONTEXT_K8S: ServiceContext = {
odisUrl: 'https://odis-combiner-test.integration-tests.celo-networks-dev.org',
odisPubKey:
'7FsWGsFnmVvRfMDpzz95Np76wf/1sPaK0Og9yiB+P8QbjiC8FV67NBans9hzZEkBaQMhiapzgMR6CkZIZPvgwQboAxl65JWRZecGe5V3XO4sdKeNemdAZ2TzQuWkuZoA',
Expand Down Expand Up @@ -88,6 +94,7 @@ export enum OdisAPI {

export enum OdisContextName {
STAGING = 'alfajoresstaging',
STAGING_K8S = 'alfajoresstaging-k8s',
ALFAJORES = 'alfajores',
MAINNET = 'mainnet',
}
Expand All @@ -108,6 +115,12 @@ export function getServiceContext(
[OdisAPI.PNP]: ODIS_STAGING_CONTEXT,
[OdisAPI.DOMAIN]: ODIS_STAGING_CONTEXT,
}[api]
case OdisContextName.STAGING_K8S:
return {
// Intentionally the same on staging
[OdisAPI.PNP]: ODIS_STAGING_CONTEXT_K8S,
[OdisAPI.DOMAIN]: ODIS_STAGING_CONTEXT_K8S,
}[api]
case OdisContextName.MAINNET:
return {
[OdisAPI.PNP]: ODIS_MAINNET_CONTEXT_PNP,
Expand Down
Loading

0 comments on commit 2153393

Please sign in to comment.