feat: support for organization discovery strategies #202
pr-builder.yml
on: pull_request
Matrix: 🚧 Build
Matrix: ⬣ ESLint (STATIC ANALYSIS)
Matrix: 👾 Unit Test (TESTING)
Matrix: ʦ Typecheck (STATIC ANALYSIS)
Annotations
11 errors and 24 warnings
|
⬣ ESLint (STATIC ANALYSIS) (lts/*)
Process completed with exit code 1.
|
|
src/utils/__tests__/deriveRootOrganizationHandleFromBaseUrl.test.ts > deriveRootOrganizationHandleFromBaseUrl > Invalid URLs - Custom Domains > should throw error for URLs without /t/ pattern:
packages/javascript/src/utils/__tests__/deriveRootOrganizationHandleFromBaseUrl.test.ts#L75
AssertionError: expected function to throw an error, but it didn't
❯ src/utils/__tests__/deriveRootOrganizationHandleFromBaseUrl.test.ts:75:10
|
|
src/utils/__tests__/deriveRootOrganizationHandleFromBaseUrl.test.ts > deriveRootOrganizationHandleFromBaseUrl > Invalid URLs - Custom Domains > should throw error for custom domain without asgardeo.io:
packages/javascript/src/utils/__tests__/deriveRootOrganizationHandleFromBaseUrl.test.ts#L65
AssertionError: expected function to throw an error, but it didn't
❯ src/utils/__tests__/deriveRootOrganizationHandleFromBaseUrl.test.ts:65:10
|
|
src/api/__tests__/getUserInfo.test.ts > getUserInfo > should throw AsgardeoAPIError for empty string URL:
packages/javascript/src/api/__tests__/getUserInfo.test.ts#L137
AssertionError: expected 'Invalid endpoint URL provided' to be '🛡️ Asgardeo - @asgardeo/javascript: …' // Object.is equality
- Expected
+ Received
- 🛡️ Asgardeo - @asgardeo/javascript: Invalid endpoint URL provided
-
- (code="getUserInfo-ValidationError-001")
-
+ Invalid endpoint URL provided
❯ src/api/__tests__/getUserInfo.test.ts:137:27
|
|
src/api/__tests__/getUserInfo.test.ts > getUserInfo > should throw AsgardeoAPIError for undefined URL:
packages/javascript/src/api/__tests__/getUserInfo.test.ts#L125
AssertionError: expected 'Invalid endpoint URL provided' to be '🛡️ Asgardeo - @asgardeo/javascript: …' // Object.is equality
- Expected
+ Received
- 🛡️ Asgardeo - @asgardeo/javascript: Invalid endpoint URL provided
-
- (code="getUserInfo-ValidationError-001")
-
+ Invalid endpoint URL provided
❯ src/api/__tests__/getUserInfo.test.ts:125:27
|
|
src/api/__tests__/getUserInfo.test.ts > getUserInfo > should throw AsgardeoAPIError for invalid URL:
packages/javascript/src/api/__tests__/getUserInfo.test.ts#L113
AssertionError: expected 'Invalid endpoint URL provided' to be '🛡️ Asgardeo - @asgardeo/javascript: …' // Object.is equality
- Expected
+ Received
- 🛡️ Asgardeo - @asgardeo/javascript: Invalid endpoint URL provided
-
- (code="getUserInfo-ValidationError-001")
-
+ Invalid endpoint URL provided
❯ src/api/__tests__/getUserInfo.test.ts:113:27
|
|
src/api/__tests__/getScim2Me.test.ts:
packages/javascript/src/api/__tests__/getScim2Me.test.ts#L21
Error: Cannot find module '../../../errors/AsgardeoAPIError' imported from '/home/runner/work/javascript/javascript/packages/javascript/src/api/__tests__/getScim2Me.test.ts'
❯ src/api/__tests__/getScim2Me.test.ts:21:1
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'ERR_MODULE_NOT_FOUND' }
Caused by: Caused by: Error: Failed to load url ../../../errors/AsgardeoAPIError (resolved id: ../../../errors/AsgardeoAPIError) in /home/runner/work/javascript/javascript/packages/javascript/src/api/__tests__/getScim2Me.test.ts. Does the file exist?
❯ loadAndTransform ../../node_modules/.pnpm/vite@6.3.5_@types+node@22.15.30_jiti@2.4.2_lightningcss@1.30.1_sass@1.89.0_terser@5.39.2_yaml@2.8.0/node_modules/vite/dist/node/chunks/dep-DBxKXgDP.js:35725:17
|
|
src/api/__tests__/getBrandingPreference.test.ts > getBrandingPreference > should pass through custom headers:
packages/javascript/src/api/__tests__/getBrandingPreference.test.ts#L226
AssertionError: expected "spy" to be called with arguments: [ …(2) ]
Received:
1st spy call:
[
- "https://api.asgardeo.io/t/dxlab/api/server/v1/branding-preference",
+ "https://api.asgardeo.io/t/dxlab/api/server/v1/branding-preference/resolve",
{
"headers": {
+ "Accept": "application/json",
"Authorization": "***",
+ "Content-Type": "application/json",
"X-Custom-Header": "custom-value",
},
"method": "GET",
},
]
Number of calls: 1
❯ src/api/__tests__/getBrandingPreference.test.ts:226:19
|
|
src/api/__tests__/getBrandingPreference.test.ts > getBrandingPreference > should handle custom fetcher:
packages/javascript/src/api/__tests__/getBrandingPreference.test.ts#L163
AssertionError: expected "spy" to be called with arguments: [ …(2) ]
Received:
1st spy call:
@@ -1,7 +1,7 @@
[
- "https://api.asgardeo.io/t/dxlab/api/server/v1/branding-preference",
+ "https://api.asgardeo.io/t/dxlab/api/server/v1/branding-preference/resolve",
{
"headers": {
"Accept": "application/json",
"Content-Type": "application/json",
},
Number of calls: 1
❯ src/api/__tests__/getBrandingPreference.test.ts:163:27
|
|
src/api/__tests__/getBrandingPreference.test.ts > getBrandingPreference > should fetch branding preference with query parameters:
packages/javascript/src/api/__tests__/getBrandingPreference.test.ts#L137
AssertionError: expected "spy" to be called with arguments: [ …(2) ]
Received:
1st spy call:
@@ -1,7 +1,7 @@
[
- "https://api.asgardeo.io/t/dxlab/api/server/v1/branding-preference?locale=en-US&name=custom&type=org",
+ "https://api.asgardeo.io/t/dxlab/api/server/v1/branding-preference/resolve?locale=en-US&name=custom&type=org",
{
"headers": {
"Accept": "application/json",
"Content-Type": "application/json",
},
Number of calls: 1
❯ src/api/__tests__/getBrandingPreference.test.ts:137:19
|
|
src/api/__tests__/getBrandingPreference.test.ts > getBrandingPreference > should fetch branding preference successfully:
packages/javascript/src/api/__tests__/getBrandingPreference.test.ts#L107
AssertionError: expected "spy" to be called with arguments: [ …(2) ]
Received:
1st spy call:
@@ -1,7 +1,7 @@
[
- "https://api.asgardeo.io/t/dxlab/api/server/v1/branding-preference",
+ "https://api.asgardeo.io/t/dxlab/api/server/v1/branding-preference/resolve",
{
"headers": {
"Accept": "application/json",
"Content-Type": "application/json",
},
Number of calls: 1
❯ src/api/__tests__/getBrandingPreference.test.ts:107:19
|
|
⬣ ESLint (STATIC ANALYSIS) (lts/*)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
|
⬣ ESLint (STATIC ANALYSIS) (lts/*)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
|
⬣ ESLint (STATIC ANALYSIS) (lts/*)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
|
⬣ ESLint (STATIC ANALYSIS) (lts/*)
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
|
⬣ ESLint (STATIC ANALYSIS) (lts/*)
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
|
⬣ ESLint (STATIC ANALYSIS) (lts/*)
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
|
👾 Unit Test (TESTING) (lts/*)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
|
👾 Unit Test (TESTING) (lts/*)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
|
👾 Unit Test (TESTING) (lts/*)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
|
👾 Unit Test (TESTING) (lts/*)
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
|
👾 Unit Test (TESTING) (lts/*)
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
|
👾 Unit Test (TESTING) (lts/*)
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
|
🚧 Build (lts/*)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
|
🚧 Build (lts/*)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
|
🚧 Build (lts/*)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
|
🚧 Build (lts/*)
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
|
🚧 Build (lts/*)
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
|
🚧 Build (lts/*)
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
|
ʦ Typecheck (STATIC ANALYSIS) (lts/*)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
|
ʦ Typecheck (STATIC ANALYSIS) (lts/*)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
|
ʦ Typecheck (STATIC ANALYSIS) (lts/*)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
|
ʦ Typecheck (STATIC ANALYSIS) (lts/*)
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
|
ʦ Typecheck (STATIC ANALYSIS) (lts/*)
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
|
ʦ Typecheck (STATIC ANALYSIS) (lts/*)
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|