Skip to content

Commit

Permalink
fix payload.isDeprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
tsullivan committed Jun 30, 2021
1 parent 5f57901 commit 73ea0ad
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ const apiResponseFields = [
'jobtype',
'max_attempts',
'meta',
'payload.isDeprecated',
'payload.title',
'payload.type',
'status',
'isDeprecated',
];

// TODO: clean up the /list and /info endpoints to return ReportApiJSON interface data
Expand All @@ -33,10 +33,10 @@ const documentResponseFields = [
'_source.jobtype',
'_source.max_attempts',
'_source.meta',
'_source.payload.isDeprecated',
'_source.payload.title',
'_source.payload.type',
'_source.status',
'_source.isDeprecated',
];

// eslint-disable-next-line import/no-default-export
Expand All @@ -60,6 +60,8 @@ export default function ({ getService }: FtrProviderContext) {
expect(resStatus).to.be(200);

const result: { job: ReportApiJSON; path: string } = JSON.parse(resText);
expect(result.job.payload.isDeprecated).to.not.be(true);

return result;
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ const apiResponseFields = [
'jobtype',
'max_attempts',
'meta',
'payload.isDeprecated',
'payload.title',
'payload.type',
'status',
'isDeprecated',
];

// TODO: clean up the /list and /info endpoints to return ReportApiJSON interface data
Expand All @@ -34,10 +34,10 @@ const documentResponseFields = [
'_source.jobtype',
'_source.max_attempts',
'_source.meta',
'_source.payload.isDeprecated',
'_source.payload.title',
'_source.payload.type',
'_source.status',
'_source.isDeprecated',
];

// eslint-disable-next-line import/no-default-export
Expand Down Expand Up @@ -77,6 +77,7 @@ export default function ({ getService }: FtrProviderContext) {
"max_attempts": 1,
"meta": Object {},
"payload": Object {
"isDeprecated": true,
"title": "A Saved Search With a DATE FILTER",
"type": "search",
},
Expand Down Expand Up @@ -120,6 +121,7 @@ export default function ({ getService }: FtrProviderContext) {
"max_attempts": 1,
"meta": Object {},
"payload": Object {
"isDeprecated": true,
"title": "A Saved Search With a DATE FILTER",
"type": "search",
},
Expand Down Expand Up @@ -157,6 +159,7 @@ export default function ({ getService }: FtrProviderContext) {
"max_attempts": 1,
"meta": Object {},
"payload": Object {
"isDeprecated": true,
"title": "A Saved Search With a DATE FILTER",
"type": "search",
},
Expand Down Expand Up @@ -190,6 +193,7 @@ export default function ({ getService }: FtrProviderContext) {
"max_attempts": 1,
"meta": Object {},
"payload": Object {
"isDeprecated": true,
"title": "A Saved Search With a DATE FILTER",
"type": "search",
},
Expand Down

0 comments on commit 73ea0ad

Please sign in to comment.