-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Fleet] Remove deprecated epm APIs (#198434)
- Loading branch information
Showing
31 changed files
with
2,502 additions
and
10,884 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0; you may not use this file except in compliance with the Elastic License | ||
* 2.0. | ||
*/ | ||
|
||
import { epmRouteService } from './routes'; | ||
|
||
describe('Route services', () => { | ||
describe('epmRouteService', () => { | ||
describe('getInfoPath', () => { | ||
it('should generate path with pkgVersion', () => { | ||
expect(epmRouteService.getInfoPath('test', '1.0.0')).toBe( | ||
'/api/fleet/epm/packages/test/1.0.0' | ||
); | ||
}); | ||
it('should generate path without pkgVersion', () => { | ||
expect(epmRouteService.getInfoPath('test')).toBe('/api/fleet/epm/packages/test'); | ||
}); | ||
}); | ||
describe('getInstallPath', () => { | ||
it('should generate path with pkgVersion', () => { | ||
expect(epmRouteService.getInstallPath('test', '1.0.0')).toBe( | ||
'/api/fleet/epm/packages/test/1.0.0' | ||
); | ||
}); | ||
it('should generate path without pkgVersion', () => { | ||
expect(epmRouteService.getInstallPath('test')).toBe('/api/fleet/epm/packages/test'); | ||
}); | ||
}); | ||
describe('getRemovePath', () => { | ||
it('should generate path with pkgVersion', () => { | ||
expect(epmRouteService.getRemovePath('test', '1.0.0')).toBe( | ||
'/api/fleet/epm/packages/test/1.0.0' | ||
); | ||
}); | ||
it('should generate path without pkgVersion', () => { | ||
expect(epmRouteService.getRemovePath('test')).toBe('/api/fleet/epm/packages/test'); | ||
}); | ||
}); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.