- updated copyright - several tempalate changes for the docs - added a config for grunt-contrib-watch - updated nock commit number - fixed the coverage script - removed the export_docs script - added error message for legacy "es" users who don't have a version locked and have not upgraded - host will now add auth to urls created with `#makeUrl()` - Log class no longer looks for `config.loggers` - The log class now properly escapes single quotes in trace logs - Removed compiled yaml_tests.js from the repo - Yaml suite will only log error and warning messages unless the VERBOSE env var is set - createDefer is now a global setting, changed by modifying Transport.createDefer fubction - wrote tests for Content-Type checking - callbacks will now return the body and status of the request (if the request has completed) when an error occurs - Stdio logger now adds "Elasticsearch " to the front of log messages to distinguish it from other output to stdout.
23 lines
617 B
Bash
Executable File
23 lines
617 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# let the dust settle and ensure that es is ready for us.
|
|
sleep 15s
|
|
|
|
# generate the latest version of the yaml-tests
|
|
node scripts/generate/ --no-api 2>&1 > /dev/null
|
|
|
|
export VERBOSE="true"
|
|
|
|
# unit tests
|
|
./node_modules/.bin/mocha test/unit/test_*.js \
|
|
--require should \
|
|
--reporter ../../../test/utils/jenkins-reporter.js \
|
|
2> test/junit-node-unit.xml
|
|
|
|
# run the integration tests
|
|
./node_modules/.bin/mocha test/integration/yaml_suite/index.js \
|
|
--require should \
|
|
--host localhost \
|
|
--port $es_port \
|
|
--reporter ../../../test/utils/jenkins-reporter.js \
|
|
2> test/junit-node-integration.xml |