clearJSONMapping()

in common-utils/network/test-fixture-handler.js [35:47]


  clearJSONMapping(filename) {
    this.testRunner.readFile(filename, 'utf8').then((str) => {
      const strSplit = str.split('\n\n')
      strSplit.forEach((element) => {
          const json = JSON.parse(element)
          if (json.type === 'index') {
            const index = json.value.index
            this.testRunner.request({ method: 'DELETE', url: `${this.openSearchUrl}/${index}`, failOnStatusCode: false }).then((response) => {
            })
          }
      })
    })
  }