Skip to content

Commit

Permalink
Change scope to owner
Browse files Browse the repository at this point in the history
  • Loading branch information
cnasikas committed Apr 2, 2021
1 parent 3aa4c9a commit 0aeef60
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions x-pack/plugins/cases/server/connectors/case/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -981,7 +981,7 @@ describe('case connector', () => {
settings: {
syncAlerts: true,
},
scope: 'securitySolution',
owner: 'securitySolution',
};

mockCasesClient.create.mockReturnValue(Promise.resolve(createReturn));
Expand Down Expand Up @@ -1078,7 +1078,7 @@ describe('case connector', () => {
settings: {
syncAlerts: true,
},
scope: 'securitySolution',
owner: 'securitySolution',
},
];

Expand Down Expand Up @@ -1170,7 +1170,7 @@ describe('case connector', () => {
settings: {
syncAlerts: true,
},
scope: 'securitySolution',
owner: 'securitySolution',
};

mockCasesClient.addComment.mockReturnValue(Promise.resolve(commentReturn));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export const mockCases: Array<SavedObject<ESCaseAttributes>> = [
settings: {
syncAlerts: true,
},
scope: 'securitySolution',
owner: 'securitySolution',
},
references: [],
updated_at: '2019-11-25T21:54:48.952Z',
Expand Down Expand Up @@ -97,7 +97,7 @@ export const mockCases: Array<SavedObject<ESCaseAttributes>> = [
settings: {
syncAlerts: true,
},
scope: 'securitySolution',
owner: 'securitySolution',
},
references: [],
updated_at: '2019-11-25T22:32:00.900Z',
Expand Down Expand Up @@ -140,7 +140,7 @@ export const mockCases: Array<SavedObject<ESCaseAttributes>> = [
settings: {
syncAlerts: true,
},
scope: 'securitySolution',
owner: 'securitySolution',
},
references: [],
updated_at: '2019-11-25T22:32:17.947Z',
Expand Down Expand Up @@ -187,7 +187,7 @@ export const mockCases: Array<SavedObject<ESCaseAttributes>> = [
settings: {
syncAlerts: true,
},
scope: 'securitySolution',
owner: 'securitySolution',
},
references: [],
updated_at: '2019-11-25T22:32:17.947Z',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export const newCase: CasePostRequest = {
settings: {
syncAlerts: true,
},
scope: 'securitySolution',
owner: 'securitySolution',
};

export const getActions = (): FindActionResult[] => [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const sampleData: CasePostRequest = {
settings: {
syncAlerts: true,
},
scope: 'securitySolution',
owner: 'securitySolution',
};

export const sampleConnectorData = { loading: false, connectors: [] };
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ describe('Case Configuration API', () => {
settings: {
syncAlerts: true,
},
scope: 'securitySolution',
owner: 'securitySolution',
};

test('check url, method, signal', async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ export const basicCaseSnake: CaseResponse = {
external_service: null,
updated_at: basicUpdatedAt,
updated_by: elasticUserSnake,
scope: 'securitySolution',
owner: 'securitySolution',
} as CaseResponse;

export const casesStatusSnake: CasesStatusResponse = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ describe('usePostCase', () => {
settings: {
syncAlerts: true,
},
scope: 'securitySolution',
owner: 'securitySolution',
};
beforeEach(() => {
jest.clearAllMocks();
Expand Down

0 comments on commit 0aeef60

Please sign in to comment.