Skip to content

refactor: Use UserCreationService when creating new owner for new orgs #46926

refactor: Use UserCreationService when creating new owner for new orgs

refactor: Use UserCreationService when creating new owner for new orgs #46926

Triggered via pull request February 9, 2025 03:20
Status Failure
Total duration 6m 18s
Artifacts

pr.yml

on: pull_request_target
Detect changes
17s
Detect changes
Check for E2E label
1s
Check for E2E label
Install dependencies  /  Yarn install & cache
1m 46s
Install dependencies / Yarn install & cache
Production builds  /  Build Web App
Production builds / Build Web App
Production builds  /  Build API v1
Production builds / Build API v1
Production builds  /  Build API v2
Production builds / Build API v2
Type check  /  check-types
2m 3s
Type check / check-types
Linters  /  lint
1m 13s
Linters / lint
Tests  /  Unit
2m 26s
Tests / Unit
Production builds  /  Build Atoms
Production builds / Build Atoms
Production builds  /  Build Docs
Production builds / Build Docs
Analyze Build  /  analyze
Analyze Build / analyze
Matrix: Tests / e2e
Waiting for pending jobs
Tests  /  E2E App Store
Tests / E2E App Store
Tests  /  E2E Embed Core
Tests / E2E Embed Core
Tests  /  E2E Embed React
Tests / E2E Embed React
Tests  /  E2E API v2
Tests / E2E API v2
Tests  /  Integration
Tests / Integration
Merge reports  /  merge-reports
Merge reports / merge-reports
required
4s
required
Publish HTML report  /  publish-report
Publish HTML report / publish-report
Fit to window
Zoom out
Zoom in

Annotations

13 errors and 3 warnings
Linters / lint
Process completed with exit code 1.
Type check / check-types
Process completed with exit code 2.
apps/api/v1/test/lib/users/_post.test.ts > POST /api/users > should create user successfully: apps/api/v1/test/lib/users/_post.test.ts#L77
AssertionError: expected 500 to be 200 // Object.is equality - Expected + Received - 200 + 500 ❯ apps/api/v1/test/lib/users/_post.test.ts:77:28
apps/api/v1/test/lib/users/_post.test.ts > POST /api/users > should auto lock user if email is in watchlist: apps/api/v1/test/lib/users/_post.test.ts#L113
AssertionError: expected 500 to be 200 // Object.is equality - Expected + Received - 200 + 500 ❯ apps/api/v1/test/lib/users/_post.test.ts:113:28
packages/features/credentials/deleteCredential.test.ts > deleteCredential > individual credentials > Delete video credential: packages/lib/server/repository/user.ts#L596
TypeError: Cannot destructure property 'email' of 'data' as it is undefined. ❯ Function.create packages/lib/server/repository/user.ts:596:13 ❯ packages/features/credentials/deleteCredential.test.ts:41:41
packages/features/credentials/deleteCredential.test.ts > deleteCredential > individual credentials > Delete calendar credential: packages/lib/server/repository/user.ts#L596
TypeError: Cannot destructure property 'email' of 'data' as it is undefined. ❯ Function.create packages/lib/server/repository/user.ts:596:13 ❯ packages/features/credentials/deleteCredential.test.ts:77:41
packages/lib/server/service/userCreationService.test.ts > UserCreationService > should create user with transformed fields: packages/lib/server/service/userCreationService.test.ts#L59
AssertionError: expected "spy" to be called with arguments: [ ObjectContaining{…} ] Received: 1st spy call: Array [ - ObjectContaining { + Object { + "data": Object { + "creationSource": "WEBAPP", + "email": "[email protected]", "locked": false, - "organizationId": null, "username": "test", + }, }, ] Number of calls: 1 ❯ packages/lib/server/service/userCreationService.test.ts:59:35
packages/lib/server/service/userCreationService.test.ts > UserCreationService > should lock user when email is in watchlist: packages/lib/server/service/userCreationService.test.ts#L75
AssertionError: expected "spy" to be called with arguments: [ ObjectContaining {"locked": true} ] Received: 1st spy call: Array [ - ObjectContaining { + Object { + "data": Object { + "creationSource": "WEBAPP", + "email": "[email protected]", "locked": true, + "username": "test", + }, }, ] Number of calls: 1 ❯ packages/lib/server/service/userCreationService.test.ts:75:35
packages/lib/server/service/userCreationService.test.ts > UserCreationService > should hash password when provided: packages/lib/server/service/userCreationService.test.ts#L93
AssertionError: expected "spy" to be called with arguments: [ ObjectContaining{…} ] Received: 1st spy call: Array [ - ObjectContaining { + Object { + "data": Object { + "creationSource": "WEBAPP", + "email": "[email protected]", "hashedPassword": "hashed_password", + "locked": true, + "password": "password", + "username": "test", + }, }, ] Number of calls: 1 ❯ packages/lib/server/service/userCreationService.test.ts:93:35
packages/lib/server/repository/user.test.ts > UserRepository > create > Should create a user without a password: packages/lib/server/repository/user.ts#L596
TypeError: Cannot destructure property 'email' of 'data' as it is undefined. ❯ Function.create packages/lib/server/repository/user.ts:596:13 ❯ packages/lib/server/repository/user.test.ts:25:41
packages/lib/server/repository/user.test.ts > UserRepository > create > If locked param is passed, user should be locked: packages/lib/server/repository/user.ts#L596
TypeError: Cannot destructure property 'email' of 'data' as it is undefined. ❯ Function.create packages/lib/server/repository/user.ts:596:13 ❯ packages/lib/server/repository/user.test.ts:53:41
packages/lib/server/repository/user.test.ts > UserRepository > create > If organizationId is passed, user should be associated with the organization: packages/lib/server/repository/user.ts#L596
TypeError: Cannot destructure property 'email' of 'data' as it is undefined. ❯ Function.create packages/lib/server/repository/user.ts:596:13 ❯ packages/lib/server/repository/user.test.ts:81:41
required
Process completed with exit code 1.
Type check / check-types
This job failure may be caused by using an out of date self-hosted runner. You are currently using runner version 2.321.0. Please update to the latest version 2.322.0
Tests / Unit
This job failure may be caused by using an out of date self-hosted runner. You are currently using runner version 2.321.0. Please update to the latest version 2.322.0
required
This job failure may be caused by using an out of date self-hosted runner. You are currently using runner version 2.321.0. Please update to the latest version 2.322.0