Skip to content

Commit

Permalink
_xpack/migration -> _migration
Browse files Browse the repository at this point in the history
  • Loading branch information
jbudz committed Jan 28, 2019
1 parent 0cc008c commit 5454245
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/legacy/core_plugins/elasticsearch/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ interface ElasticsearchClientLogging {
}

interface AssistantAPIClientParams extends GenericParams {
path: '/_xpack/migration/assistance';
path: '/_migration/assistance';
method: 'GET';
}

Expand All @@ -191,7 +191,7 @@ export interface AssistanceAPIResponse {
}

interface DeprecationAPIClientParams extends GenericParams {
path: '/_xpack/migration/deprecations';
path: '/_migration/deprecations';
method: 'GET';
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ describe('getUpgradeAssistantStatus', () => {
let deprecationsResponse: DeprecationAPIResponse;

const callWithRequest = jest.fn().mockImplementation(async (req, api, { path }) => {
if (path === '/_xpack/migration/deprecations') {
if (path === '/_migration/deprecations') {
return deprecationsResponse;
} else {
throw new Error(`Unexpected API call: ${path}`);
Expand All @@ -25,10 +25,10 @@ describe('getUpgradeAssistantStatus', () => {
deprecationsResponse = _.cloneDeep(fakeDeprecations);
});

it('calls /_xpack/migration/deprecations', async () => {
it('calls /_migration/deprecations', async () => {
await getUpgradeAssistantStatus(callWithRequest, {} as any, '/');
expect(callWithRequest).toHaveBeenCalledWith({}, 'transport.request', {
path: '/_xpack/migration/deprecations',
path: '/_migration/deprecations',
method: 'GET',
});
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export async function getUpgradeAssistantStatus(
basePath: string
): Promise<UpgradeAssistantStatus> {
const deprecations = (await callWithRequest(req, 'transport.request', {
path: '/_xpack/migration/deprecations',
path: '/_migration/deprecations',
method: 'GET',
})) as DeprecationAPIResponse;

Expand Down

0 comments on commit 5454245

Please sign in to comment.