Skip to content

Commit

Permalink
fix api_integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
alisonelizabeth committed Jul 9, 2020

Verified

This commit was signed with the committer’s verified signature.
mrcnski Marcin S.
1 parent 8215718 commit bd1c949
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -14,7 +14,12 @@ export const registerHelpers = ({ supertest }) => {
const getOneTemplate = (name, isLegacy = false) =>
supertest.get(`${API_BASE_PATH}/index_templates/${name}?legacy=${isLegacy}`);

const getTemplatePayload = (name, indexPatterns = INDEX_PATTERNS, isLegacy = false) => {
const getTemplatePayload = (
name,
indexPatterns = INDEX_PATTERNS,
isLegacy = false,
type = 'default'
) => {
const baseTemplate = {
name,
indexPatterns,
@@ -48,6 +53,7 @@ export const registerHelpers = ({ supertest }) => {
},
_kbnMeta: {
isLegacy,
type,
},
};

0 comments on commit bd1c949

Please sign in to comment.