loopback-datasource-juggler/test
Miroslav Bajtoš 40286fcd28
fix: report errors from automigrate/autoupdate
Defer automigrate/autoupdate until we are connected, so that connection
errors can be reported back to callers.

Fix postInit handler to not report connection error to console.log
and via dataSource "error" event in case there is already an operation
queued. When this happens, we want the error to be handled by the
queued operation and reported to its caller.

Signed-off-by: Miroslav Bajtoš <mbajtoss@gmail.com>
2019-07-04 12:36:50 +02:00
..
fixtures/loopback-connector-throwing chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
helpers chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
kvao chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
operation-hooks.suite chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
CustomTypeForeignKey.test.js chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
allow-extended-operators.test.js chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
async-observer.test.js feat: after operation hook in case of errors 2019-05-31 17:12:42 +02:00
basic-querying.test.js chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
common.batch.js Fix manually 2016-08-22 19:20:12 -04:00
common_test.js chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
crud-with-options.test.js chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
datasource.test.js fix: report errors from automigrate/autoupdate 2019-07-04 12:36:50 +02:00
datatype.test.js chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
date-string.test.js Fix DateString ctor to accept DateString instances 2019-05-13 15:21:00 +02:00
default-scope.test.js chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
defaults.test.js chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
discovery.test.js chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
exclude-base-props.test.js chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
geo.test.js chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
hooks.test.js chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
include.test.js test: add property index to support cloudant (#1750) 2019-06-19 14:36:48 -04:00
include_util.test.js chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
init.js chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
introspection.test.js chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
json.test.js chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
kv-memory.js chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
kvao.suite.js chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
list.test.js autofix eslint errors 2018-12-07 16:46:15 +01:00
loopback-data.test.js chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
loopback-dl.test.js chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
manipulation.test.js chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
memory.test.js Test "near" queries executed in memory 2019-05-14 09:14:10 +02:00
mixins.test.js chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
mocha.opts Configure Mocha to use dot reporter 2018-07-10 12:11:46 +02:00
mock-connectors.js Fix manually 2016-08-22 19:20:12 -04:00
model-builder.test.js chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
model-definition.test.js chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
model-inheritance.test.js chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
model-utils.test.js chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
normalize-undefined.test.js chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
optional-validation.test.js chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
performance.coffee Reformat the code 2014-01-24 09:09:53 -08:00
persistence-hooks.suite.js chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
relations.test.js Fix for #1724 - Added options to attribute updates (#1725) 2019-05-27 09:49:46 -04:00
schema.test.js chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
scope.test.js chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
spec_helper.js chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
test1-schemas.json Reformat the code 2014-01-24 09:09:53 -08:00
test2-schemas.json Reformat the code 2014-01-24 09:09:53 -08:00
transaction.test.js feat: add beginTransaction API on datasource 2019-06-28 12:58:50 -04:00
transient.test.js chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
util.test.js chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00
validations.test.js chore: update copyrights years (#1737) 2019-05-08 11:45:37 -04:00