Skip to content

feat: update QuotasExceededError message with clearer instructions #5162

feat: update QuotasExceededError message with clearer instructions

feat: update QuotasExceededError message with clearer instructions #5162

Triggered via pull request March 4, 2025 15:55
Status Failure
Total duration 2m 31s
Artifacts

run-tests.yml

on: pull_request
Matrix: test
Fit to window
Zoom out
Zoom in

Annotations

15 errors and 10 warnings
packages/clients/src/scw/errors/non-standard/__tests__/index.test.ts > InvalidRequestError > transforms to QuotasExceededError when message includes a specific text: packages/clients/src/scw/errors/non-standard/__tests__/index.test.ts#L52
AssertionError: expected 'quota(s) exceeded: Quotas reached: Yo…' to be 'quota(s) exceeded: Quotas reached: Yo…' // Object.is equality Expected: "quota(s) exceeded: Quotas reached: You have reached the maximum number of compute_snapshots_type_b_ssd_available authorized by your Organization. Access the quotas page from your Organization dashboard to manage quotas." Received: "quota(s) exceeded: Quotas reached: You have reached the maximum number of compute_snapshots_type_b_ssd_available authorized by your Organization. Access the quotas page from your Organization dashboard to manage quotas." ❯ packages/clients/src/scw/errors/non-standard/__tests__/index.test.ts:52:27
packages/clients/src/scw/errors/standard/__tests__/index.test.ts > QuotasExceededError > parses a valid input: packages/clients/src/scw/errors/standard/__tests__/index.test.ts#L96
AssertionError: expected 'QuotasExceededError: quota(s) exceede…' to be 'quota(s) exceeded: Quotas reached: Yo…' // Object.is equality Expected: "quota(s) exceeded: Quotas reached: You have reached the maximum number of compute_snapshots_type_b_ssd_available authorized by your Organization. Access the quotas page from your Organization dashboard to manage quotas." Received: "QuotasExceededError: quota(s) exceeded: Quotas reached: You have reached the maximum number of instance_volume authorized by your Organization. Access the quotas page from your Organization dashboard to manage quotas. for project 'b7a1cf21-1e90-464c-a9f6-375c4d1f4b64'; Quotas reached: You have reached the maximum number of instance_volumes_l_ssd_total_gb authorized by your Organization. Access the quotas page from your Organization dashboard to manage quotas. for organization '72dd6741-d748-42e7-ba65-acd07447d3e9'; Quotas reached: You have reached the maximum number of instance_volumes_l_ssd_total_gb authorized by your Organization. Access the quotas page from your Organization dashboard to manage quotas." ❯ packages/clients/src/scw/errors/standard/__tests__/index.test.ts:96:54
test (jsdom, 18)
Process completed with exit code 1.
test (node, 20)
The job was canceled because "jsdom_18" failed.
packages/clients/src/scw/errors/non-standard/__tests__/index.test.ts > InvalidRequestError > transforms to QuotasExceededError when message includes a specific text: packages/clients/src/scw/errors/non-standard/__tests__/index.test.ts#L52
AssertionError: expected 'quota(s) exceeded: Quotas reached: Yo…' to be 'quota(s) exceeded: Quotas reached: Yo…' // Object.is equality Expected: "quota(s) exceeded: Quotas reached: You have reached the maximum number of compute_snapshots_type_b_ssd_available authorized by your Organization. Access the quotas page from your Organization dashboard to manage quotas." Received: "quota(s) exceeded: Quotas reached: You have reached the maximum number of compute_snapshots_type_b_ssd_available authorized by your Organization. Access the quotas page from your Organization dashboard to manage quotas." ❯ packages/clients/src/scw/errors/non-standard/__tests__/index.test.ts:52:27
packages/clients/src/scw/errors/standard/__tests__/index.test.ts > QuotasExceededError > parses a valid input: packages/clients/src/scw/errors/standard/__tests__/index.test.ts#L96
AssertionError: expected 'QuotasExceededError: quota(s) exceede…' to be 'quota(s) exceeded: Quotas reached: Yo…' // Object.is equality Expected: "quota(s) exceeded: Quotas reached: You have reached the maximum number of compute_snapshots_type_b_ssd_available authorized by your Organization. Access the quotas page from your Organization dashboard to manage quotas." Received: "QuotasExceededError: quota(s) exceeded: Quotas reached: You have reached the maximum number of instance_volume authorized by your Organization. Access the quotas page from your Organization dashboard to manage quotas. for project 'b7a1cf21-1e90-464c-a9f6-375c4d1f4b64'; Quotas reached: You have reached the maximum number of instance_volumes_l_ssd_total_gb authorized by your Organization. Access the quotas page from your Organization dashboard to manage quotas. for organization '72dd6741-d748-42e7-ba65-acd07447d3e9'; Quotas reached: You have reached the maximum number of instance_volumes_l_ssd_total_gb authorized by your Organization. Access the quotas page from your Organization dashboard to manage quotas." ❯ packages/clients/src/scw/errors/standard/__tests__/index.test.ts:96:54
test (node, 20)
Process completed with exit code 1.
test (jsdom, 20)
The job was canceled because "jsdom_18" failed.
packages/clients/src/scw/errors/non-standard/__tests__/index.test.ts > InvalidRequestError > transforms to QuotasExceededError when message includes a specific text: packages/clients/src/scw/errors/non-standard/__tests__/index.test.ts#L52
AssertionError: expected 'quota(s) exceeded: Quotas reached: Yo…' to be 'quota(s) exceeded: Quotas reached: Yo…' // Object.is equality Expected: "quota(s) exceeded: Quotas reached: You have reached the maximum number of compute_snapshots_type_b_ssd_available authorized by your Organization. Access the quotas page from your Organization dashboard to manage quotas." Received: "quota(s) exceeded: Quotas reached: You have reached the maximum number of compute_snapshots_type_b_ssd_available authorized by your Organization. Access the quotas page from your Organization dashboard to manage quotas." ❯ packages/clients/src/scw/errors/non-standard/__tests__/index.test.ts:52:27
packages/clients/src/scw/errors/standard/__tests__/index.test.ts > QuotasExceededError > parses a valid input: packages/clients/src/scw/errors/standard/__tests__/index.test.ts#L96
AssertionError: expected 'QuotasExceededError: quota(s) exceede…' to be 'quota(s) exceeded: Quotas reached: Yo…' // Object.is equality Expected: "quota(s) exceeded: Quotas reached: You have reached the maximum number of compute_snapshots_type_b_ssd_available authorized by your Organization. Access the quotas page from your Organization dashboard to manage quotas." Received: "QuotasExceededError: quota(s) exceeded: Quotas reached: You have reached the maximum number of instance_volume authorized by your Organization. Access the quotas page from your Organization dashboard to manage quotas. for project 'b7a1cf21-1e90-464c-a9f6-375c4d1f4b64'; Quotas reached: You have reached the maximum number of instance_volumes_l_ssd_total_gb authorized by your Organization. Access the quotas page from your Organization dashboard to manage quotas. for organization '72dd6741-d748-42e7-ba65-acd07447d3e9'; Quotas reached: You have reached the maximum number of instance_volumes_l_ssd_total_gb authorized by your Organization. Access the quotas page from your Organization dashboard to manage quotas." ❯ packages/clients/src/scw/errors/standard/__tests__/index.test.ts:96:54
test (jsdom, 20)
The operation was canceled.
test (node, 18)
The job was canceled because "jsdom_18" failed.
packages/clients/src/scw/errors/non-standard/__tests__/index.test.ts > InvalidRequestError > transforms to QuotasExceededError when message includes a specific text: packages/clients/src/scw/errors/non-standard/__tests__/index.test.ts#L52
AssertionError: expected 'quota(s) exceeded: Quotas reached: Yo…' to be 'quota(s) exceeded: Quotas reached: Yo…' // Object.is equality Expected: "quota(s) exceeded: Quotas reached: You have reached the maximum number of compute_snapshots_type_b_ssd_available authorized by your Organization. Access the quotas page from your Organization dashboard to manage quotas." Received: "quota(s) exceeded: Quotas reached: You have reached the maximum number of compute_snapshots_type_b_ssd_available authorized by your Organization. Access the quotas page from your Organization dashboard to manage quotas." ❯ packages/clients/src/scw/errors/non-standard/__tests__/index.test.ts:52:27
packages/clients/src/scw/errors/standard/__tests__/index.test.ts > QuotasExceededError > parses a valid input: packages/clients/src/scw/errors/standard/__tests__/index.test.ts#L96
AssertionError: expected 'QuotasExceededError: quota(s) exceede…' to be 'quota(s) exceeded: Quotas reached: Yo…' // Object.is equality Expected: "quota(s) exceeded: Quotas reached: You have reached the maximum number of compute_snapshots_type_b_ssd_available authorized by your Organization. Access the quotas page from your Organization dashboard to manage quotas." Received: "QuotasExceededError: quota(s) exceeded: Quotas reached: You have reached the maximum number of instance_volume authorized by your Organization. Access the quotas page from your Organization dashboard to manage quotas. for project 'b7a1cf21-1e90-464c-a9f6-375c4d1f4b64'; Quotas reached: You have reached the maximum number of instance_volumes_l_ssd_total_gb authorized by your Organization. Access the quotas page from your Organization dashboard to manage quotas. for organization '72dd6741-d748-42e7-ba65-acd07447d3e9'; Quotas reached: You have reached the maximum number of instance_volumes_l_ssd_total_gb authorized by your Organization. Access the quotas page from your Organization dashboard to manage quotas." ❯ packages/clients/src/scw/errors/standard/__tests__/index.test.ts:96:54
test (node, 18)
The operation was canceled.
lint: packages/clients/src/api/account/v2/api.gen.ts#L40
tsdoc-missing-deprecation-message: The @deprecated block must include a deprecation message, e.g. describing the recommended alternative
lint: packages/clients/src/api/account/v2/api.gen.ts#L90
tsdoc-missing-deprecation-message: The @deprecated block must include a deprecation message, e.g. describing the recommended alternative
lint: packages/clients/src/api/account/v2/api.gen.ts#L103
tsdoc-missing-deprecation-message: The @deprecated block must include a deprecation message, e.g. describing the recommended alternative
lint: packages/clients/src/api/account/v2/api.gen.ts#L123
tsdoc-missing-deprecation-message: The @deprecated block must include a deprecation message, e.g. describing the recommended alternative
lint: packages/clients/src/api/account/v2/api.gen.ts#L137
tsdoc-missing-deprecation-message: The @deprecated block must include a deprecation message, e.g. describing the recommended alternative
lint: packages/clients/src/api/account/v2/marshalling.gen.ts#L60
'defaults' is defined but never used
lint: packages/clients/src/api/account/v2/types.gen.ts#L25
Use an `interface` instead of a `type`
lint: packages/clients/src/api/account/v2/types.gen.ts#L34
Use an `interface` instead of a `type`
lint: packages/clients/src/api/account/v2/types.gen.ts#L39
Use an `interface` instead of a `type`
lint: packages/clients/src/api/account/v2/types.gen.ts#L44
Use an `interface` instead of a `type`