Skip to content

Commit

Permalink
migrate api_integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
alisonelizabeth committed Jan 26, 2021
1 parent b204850 commit 4657b0c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ describe('cluster checkup API', () => {

it('returns an 403 error if it throws forbidden', async () => {
const e: any = new Error(`you can't go here!`);
e.status = 403;
e.statusCode = 403;

MigrationApis.getUpgradeAssistantStatus.mockRejectedValue(e);
const resp = await routeDependencies.router.getHandler({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export function registerClusterCheckupRoutes({ cloud, router, licensing, log }:
body: status,
});
} catch (e) {
if (e.status === 403) {
if (e.statusCode === 403) {
return response.forbidden(e.message);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { FtrProviderContext } from '../../ftr_provider_context';
import { reindexOperationWithLargeErrorMessage } from './reindex_operation_with_large_error_message';

export default function ({ getService }: FtrProviderContext) {
const es = getService('legacyEs');
const es = getService('es');

describe('Reindex operation saved object', function () {
const dotKibanaIndex = '.kibana';
Expand Down

0 comments on commit 4657b0c

Please sign in to comment.