Skip to content

Commit

Permalink
[Obs AI Assistant] Add route privilege tests for serverless (#204884)
Browse files Browse the repository at this point in the history
  • Loading branch information
viduni94 committed Dec 27, 2024
1 parent a446a2f commit ed525be
Showing 1 changed file with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -296,9 +296,9 @@ export default function ApiTest({ getService }: FtrProviderContext) {
},
},
});
// throw new ForbiddenApiError(
// 'Expected slsUnauthorized() to throw a 403 Forbidden error'
// );
throw new ForbiddenApiError(
'Expected slsUnauthorized() to throw a 403 Forbidden error'
);
} catch (e) {
expect(e.status).to.be(403);
}
Expand All @@ -309,9 +309,9 @@ export default function ApiTest({ getService }: FtrProviderContext) {
await observabilityAIAssistantAPIClient.slsUnauthorized({
endpoint: 'POST /internal/observability_ai_assistant/conversations',
});
// throw new ForbiddenApiError(
// 'Expected slsUnauthorized() to throw a 403 Forbidden error'
// );
throw new ForbiddenApiError(
'Expected slsUnauthorized() to throw a 403 Forbidden error'
);
} catch (e) {
expect(e.status).to.be(403);
}
Expand All @@ -332,9 +332,9 @@ export default function ApiTest({ getService }: FtrProviderContext) {
},
},
});
// throw new ForbiddenApiError(
// 'Expected slsUnauthorized() to throw a 403 Forbidden error'
// );
throw new ForbiddenApiError(
'Expected slsUnauthorized() to throw a 403 Forbidden error'
);
} catch (e) {
expect(e.status).to.be(403);
}
Expand All @@ -350,9 +350,9 @@ export default function ApiTest({ getService }: FtrProviderContext) {
},
},
});
// throw new ForbiddenApiError(
// 'Expected slsUnauthorized() to throw a 403 Forbidden error'
// );
throw new ForbiddenApiError(
'Expected slsUnauthorized() to throw a 403 Forbidden error'
);
} catch (e) {
expect(e.status).to.be(403);
}
Expand Down

0 comments on commit ed525be

Please sign in to comment.