Skip to content

Commit

Permalink
Revert unnecessary version fields in tests, fix schema
Browse files Browse the repository at this point in the history
  • Loading branch information
jen-huang committed Jul 3, 2020
1 parent 87e6362 commit 8a83e27
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ describe('Ingest Manager - storedPackageConfigsToAgentInputs', () => {
namespace: 'default',
inputs: [],
revision: 1,
version: '',
};

const mockInput: PackageConfigInput = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ jest.mock('../../services/package_config', (): {
...newData,
id: '1',
revision: 1,
version: 'xxxx',
updated_at: new Date().toISOString(),
updated_by: 'elastic',
created_at: new Date().toISOString(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,11 @@ export const NewPackageConfigSchema = schema.object({

export const UpdatePackageConfigSchema = schema.object({
...PackageConfigBaseSchema,
version: schema.string(),
version: schema.maybe(schema.string()),
});

export const PackageConfigSchema = schema.object({
...PackageConfigBaseSchema,
id: schema.string(),
version: schema.string(),
version: schema.maybe(schema.string()),
});
Original file line number Diff line number Diff line change
Expand Up @@ -1054,7 +1054,6 @@ export class EndpointDocGenerator {
version: '1.0.0',
},
revision: 1,
version: 'xxxx',
};
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ describe('policy details: ', () => {
version: '',
},
revision: 1,
version: 'xxxx',
},
},
});
Expand Down

0 comments on commit 8a83e27

Please sign in to comment.