Skip to content

Commit

Permalink
lightspeed: drop permission_denied__org_ready_user_has_no_seat error …
Browse files Browse the repository at this point in the history
…check

The `permission_denied__org_ready_user_has_no_seat` error code is not deprecated, we don't need to check this key anymore.
  • Loading branch information
goneri committed Jul 18, 2024
1 parent bd33e95 commit 3980ae8
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 19 deletions.
7 changes: 0 additions & 7 deletions packages/ansible-language-server/src/errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,13 +194,6 @@ ERRORS.addError(
"Your organization does not have a subscription. Please contact your administrator.",
),
);
ERRORS.addError(
403,
new Error(
"permission_denied__org_ready_user_has_no_seat",
"You do not have a licensed seat for Ansible Lightspeed and your organization is using the paid commercial service. Contact your Red Hat Organization's administrator for more information on how to get a licensed seat.",
),
);
ERRORS.addError(
403,
new Error(
Expand Down
12 changes: 0 additions & 12 deletions packages/ansible-language-server/test/utils/handleApiError.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,18 +105,6 @@ describe("testing the error handling", () => {
// =================================
// HTTP 403
// ---------------------------------
it("err Forbidden - Org ready, No seat", () => {
const error = mapError(
createError(403, {
code: "permission_denied__org_ready_user_has_no_seat",
}),
);
assert.equal(
error.message,
"You do not have a licensed seat for Ansible Lightspeed and your organization is using the paid commercial service. Contact your Red Hat Organization's administrator for more information on how to get a licensed seat.",
);
});

it("err Forbidden - No Seat", () => {
const error = mapError(
createError(403, {
Expand Down

0 comments on commit 3980ae8

Please sign in to comment.