Add Bad Request test

This commit is contained in:
Adam Harvey
2021-01-14 10:30:55 -05:00
parent a1f587c861
commit 38545afbfa
@@ -197,6 +197,27 @@ describe('KubernetesClientProvider', () => {
});
// they're in testErrorResponse
// eslint-disable-next-line jest/expect-expect
it('should return pods, bad request error', async () => {
await testErrorResponse(
{
response: {
statusCode: 400,
request: {
uri: {
pathname: '/some/path',
},
},
},
},
{
errorType: 'BAD_REQUEST',
resourcePath: '/some/path',
statusCode: 400,
},
);
});
// they're in testErrorResponse
// eslint-disable-next-line jest/expect-expect
it('should return pods, unauthorized error', async () => {
await testErrorResponse(
{