Skip to content

Commit

Permalink
Renaming interface
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathan-buttner committed Jul 29, 2020
1 parent 37b884d commit 4801974
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
EndpointDocGenerator,
Event,
} from '../../../../plugins/security_solution/common/endpoint/generate_data';
import { GeneratedEvents } from '../../services/resolver';
import { InsertedEvents } from '../../services/resolver';

export default function resolverAPIIntegrationTests({ getService }: FtrProviderContext) {
const supertest = getService('supertest');
Expand All @@ -26,7 +26,7 @@ export default function resolverAPIIntegrationTests({ getService }: FtrProviderC
describe('Resolver handling of entity ids', () => {
describe('entity api', () => {
let origin: Event;
let genData: GeneratedEvents;
let genData: InsertedEvents;
before(async () => {
origin = generator.generateEvent({ parentEntityID: 'a' });
origin.process.entity_id = '';
Expand Down Expand Up @@ -68,7 +68,7 @@ export default function resolverAPIIntegrationTests({ getService }: FtrProviderC
let childNoEntityID: Event;
let childWithEntityID: Event;
let events: Event[];
let genData: GeneratedEvents;
let genData: InsertedEvents;

before(async () => {
// construct a tree with an origin and two direct children. One child will not have an entity_id. That child
Expand Down Expand Up @@ -109,7 +109,7 @@ export default function resolverAPIIntegrationTests({ getService }: FtrProviderC
let ancestor2: Event;
let ancestorNoEntityID: Event;
let events: Event[];
let genData: GeneratedEvents;
let genData: InsertedEvents;

before(async () => {
// construct a tree with an origin that has two ancestors. The origin will have an empty string as one of the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export interface GeneratedTrees {
/**
* Structure containing the events inserted into ES and the index they live in
*/
export interface GeneratedEvents {
export interface InsertedEvents {
events: Event[];
indices: string[];
}
Expand All @@ -53,7 +53,7 @@ export function ResolverGeneratorProvider({ getService }: FtrProviderContext) {
async insertEvents(
events: Event[],
eventsIndex: string = processIndex
): Promise<GeneratedEvents> {
): Promise<InsertedEvents> {
const body = events.reduce((array: Array<BulkCreateHeader | Event>, doc) => {
array.push({ create: { _index: eventsIndex } }, doc);
return array;
Expand Down

0 comments on commit 4801974

Please sign in to comment.