mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-08 14:32:50 +00:00
ci: make mapping test work for new mappings
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user