ci: make mapping test work for new mappings

This commit is contained in:
Wieland Schöbl
2019-11-05 13:26:33 +01:00
parent 8f7201e2cf
commit 19ef656289
5 changed files with 30735 additions and 31669 deletions

View File

@@ -65,12 +65,7 @@ mapping:
alias: elasticsearch
script:
- npm install @openstapps/core
- node lib/cli.js mapping ./node_modules/@openstapps/core/src mapping.json "pattern,see,minlength,tjs-format"
- curl http://elasticsearch:9200/_template --upload-file mapping.json -o response.json
- cat response.json
- grep -q "\"acknowledged\":true" response.json
# - curl --show-error --fail http://elasticsearch:9200/stapps --upload-file mapping.json
- node lib/cli.js put-es-templates ./node_modules/@openstapps/core/src http://elasticsearch:9200/ "pattern,see,minlength,tjs-format"
package:
dependencies: