Skip to content

Commit

Permalink
fixed test
Browse files Browse the repository at this point in the history
  • Loading branch information
juliaElastic committed Oct 17, 2023
1 parent 93a6e7e commit eeae806
Showing 1 changed file with 2 additions and 3 deletions.
Expand Up @@ -332,7 +332,7 @@ describe('install', () => {
expect(response.status).toEqual('already_installed');
});

it('should not allow to install fleet_server if internal.fleetServerStandalone is configured', async () => {
it('should allow to install fleet_server if internal.fleetServerStandalone is configured', async () => {
jest.mocked(appContextService.getConfig).mockReturnValueOnce({
internal: {
fleetServerStandalone: true,
Expand All @@ -347,8 +347,7 @@ describe('install', () => {
esClient: {} as ElasticsearchClient,
});

expect(response.error).toBeDefined();
expect(response.error?.message).toMatch(/fleet_server installation is not authorized/);
expect(response.status).toEqual('installed');
});
});

Expand Down

0 comments on commit eeae806

Please sign in to comment.