Skip to content

Commit

Permalink
[CI] Auto-commit changed files from 'node scripts/eslint --no-cache -…
Browse files Browse the repository at this point in the history
…-fix'
  • Loading branch information
kibanamachine committed Jul 17, 2023
1 parent 1de7ec7 commit 4460a2d
Showing 1 changed file with 27 additions and 9 deletions.
36 changes: 27 additions & 9 deletions x-pack/plugins/fleet/server/services/output.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,9 @@ describe('Output Service', () => {
mockedAppContextService.getEncryptedSavedObjectsSetup.mockReturnValue({
canEncrypt: true,
} as any);
mockedAgentPolicyService.list.mockResolvedValue(mockedAgentPolicyWithFleetServerResolvedValue);
mockedAgentPolicyService.list.mockResolvedValue(
mockedAgentPolicyWithFleetServerResolvedValue
);
mockedAgentPolicyService.hasFleetServerIntegration.mockReturnValue(true);

await outputService.create(
Expand Down Expand Up @@ -540,7 +542,9 @@ describe('Output Service', () => {
mockedAppContextService.getEncryptedSavedObjectsSetup.mockReturnValue({
canEncrypt: true,
} as any);
mockedAgentPolicyService.list.mockResolvedValue(mockedAgentPolicyWithFleetServerResolvedValue);
mockedAgentPolicyService.list.mockResolvedValue(
mockedAgentPolicyWithFleetServerResolvedValue
);
mockedAgentPolicyService.hasFleetServerIntegration.mockReturnValue(true);

await outputService.create(
Expand Down Expand Up @@ -586,7 +590,9 @@ describe('Output Service', () => {
mockedAppContextService.getEncryptedSavedObjectsSetup.mockReturnValue({
canEncrypt: true,
} as any);
mockedAgentPolicyService.list.mockResolvedValue(mockedAgentPolicyWithFleetServerResolvedValue);
mockedAgentPolicyService.list.mockResolvedValue(
mockedAgentPolicyWithFleetServerResolvedValue
);
mockedAgentPolicyService.hasFleetServerIntegration.mockReturnValue(true);

await outputService.create(
Expand Down Expand Up @@ -648,7 +654,9 @@ describe('Output Service', () => {
mockedAppContextService.getEncryptedSavedObjectsSetup.mockReturnValue({
canEncrypt: true,
} as any);
mockedAgentPolicyService.list.mockResolvedValue(mockedAgentPolicyWithFleetServerResolvedValue);
mockedAgentPolicyService.list.mockResolvedValue(
mockedAgentPolicyWithFleetServerResolvedValue
);
mockedAgentPolicyService.hasFleetServerIntegration.mockReturnValue(true);

await outputService.create(
Expand Down Expand Up @@ -1031,7 +1039,9 @@ describe('Output Service', () => {
const soClient = getMockedSoClient({
defaultOutputId: 'output-test',
});
mockedAgentPolicyService.list.mockResolvedValue(mockedAgentPolicyWithFleetServerResolvedValue);
mockedAgentPolicyService.list.mockResolvedValue(
mockedAgentPolicyWithFleetServerResolvedValue
);
mockedAgentPolicyService.hasFleetServerIntegration.mockReturnValue(true);

await outputService.update(soClient, esClientMock, 'output-test', {
Expand Down Expand Up @@ -1060,7 +1070,9 @@ describe('Output Service', () => {
const soClient = getMockedSoClient({
defaultOutputId: 'output-test',
});
mockedAgentPolicyService.list.mockResolvedValue(mockedAgentPolicyWithFleetServerResolvedValue);
mockedAgentPolicyService.list.mockResolvedValue(
mockedAgentPolicyWithFleetServerResolvedValue
);
mockedAgentPolicyService.hasFleetServerIntegration.mockReturnValue(true);

await outputService.update(
Expand Down Expand Up @@ -1161,7 +1173,9 @@ describe('Output Service', () => {

it('Should return an error if trying to change the output to logstash for fleet server policy', async () => {
const soClient = getMockedSoClient({});
mockedAgentPolicyService.list.mockResolvedValue(mockedAgentPolicyWithFleetServerResolvedValue);
mockedAgentPolicyService.list.mockResolvedValue(
mockedAgentPolicyWithFleetServerResolvedValue
);
mockedAgentPolicyService.hasFleetServerIntegration.mockReturnValue(true);

await expect(
Expand Down Expand Up @@ -1270,7 +1284,9 @@ describe('Output Service', () => {
const soClient = getMockedSoClient({
defaultOutputId: 'output-test',
});
mockedAgentPolicyService.list.mockResolvedValue(mockedAgentPolicyWithFleetServerResolvedValue);
mockedAgentPolicyService.list.mockResolvedValue(
mockedAgentPolicyWithFleetServerResolvedValue
);
mockedAgentPolicyService.hasFleetServerIntegration.mockReturnValue(true);

await outputService.update(soClient, esClientMock, 'output-test', {
Expand Down Expand Up @@ -1308,7 +1324,9 @@ describe('Output Service', () => {
const soClient = getMockedSoClient({
defaultOutputId: 'output-test',
});
mockedAgentPolicyService.list.mockResolvedValue(mockedAgentPolicyWithFleetServerResolvedValue);
mockedAgentPolicyService.list.mockResolvedValue(
mockedAgentPolicyWithFleetServerResolvedValue
);
mockedAgentPolicyService.hasFleetServerIntegration.mockReturnValue(true);

await outputService.update(
Expand Down

0 comments on commit 4460a2d

Please sign in to comment.