Fix mysql column name being ignored on dataType change or new column
being added
Fix mysql column name ignored if index changed
Add column name case on autoupdate test
Fix test case scheme error
Fix describe test
* Add connectorCapabilities global object (#201) (Nicholas Duffy)
* Remove unused prefix for test env vars (#203) (Simon Ho)
* Update translation files - round#2 (#199) (Candy)
* Add CI fixes (#197) (Loay)
* Add translated files (gunjpan)
* Update deps to loopback 3.0.0 RC (Miroslav Bajtoš)
* Remove Makefile in favour of NPM test scripts (Simon Ho)
* Fixing lint errors (Ron Lloyd)
* Autoupdate mysql.columnName bug fix (Ron Lloyd)
* Tests for autoupdate mysql.columnName bug fix (Ron Lloyd)
* Use juggler@3 for running the tests (Miroslav Bajtoš)
* Explictly set forceId:false in test model (Miroslav Bajtoš)
* Fix pretest and init test configs (Simon Ho)
* Fix to configure model index in keys field (deepakrkris)
* Update eslint infrastructure (Loay)
* test: use dump of original test DB as seed (Ryan Graham)
* test: skip cardinality, update sub_part (Ryan Graham)
* test: accept alternate test db credentials (Ryan Graham)
* test: use should for easier debugging (Ryan Graham)
* test: account for mysql version differences (Ryan Graham)
* test: match case with example/table.sql (Ryan Graham)
* test: separate assertions from test flow control (Ryan Graham)
* test: update tests to use example DB (Ryan Graham)
* test: seed test DB with example (Ryan Graham)
* test: fix undefined password (Ryan Graham)
* Add special handling of zero date/time entries (Carl Fürstenberg)
* Add globalization (Candy)
* Update URLs in CONTRIBUTING.md (#176) (Ryan Graham)
* TEST_ prefix is not used by CI anymore and there for serve no purpose
* Part of overall goal to standardize env var injection to
MODULE_VARNAME (ie. MYSQL_HOST for example) convention
Environment variables set in pretest.js and test/init.js were silently
being converted to Strings. For example, when TEST_MYSQL_USER is
undefined, it's value was automatically converted to the String
'undefined'. This is documented a side effect of assigning values to
process.env. See https://nodejs.org/api/process.html#process_process_env
for more details
Index cardinality is actually a metric that is based on MySQL analyzing
the table contents, so its value here has more to do with whether the
tests are running against a new table, an old table, or whether it has
any data in it.
The Sub_part field is similarly unimportant for the purposes of these
tests since it refers to indexing internals based on data type and
partial indexing.
See: https://dev.mysql.com/doc/refman/5.5/en/show-index.html
Allow the tests to run on ci.strongloop.com using the credentials that
are given there, but translate them to the form that is used on
cis-jenkins, which is actually the correct format.
If no password is given, '+ password' stringifies to 'undefined', which
generates a URL that has 'undefined' as the password instead of leaving
out the password.
Per MySQL docs
(http://dev.mysql.com/doc/refman/5.7/en/date-and-time-types.html):
"MySQL permits you to store a “zero” value of '0000-00-00' as a
“dummy date.” This is in some cases more convenient than using NULL
values, and uses less data and index space. To disallow '0000-00-00',
enable the NO_ZERO_DATE mode.
“Zero” date or time values used through Connector/ODBC are converted
automatically to NULL because ODBC cannot handle such values."
As we are not using Connector/ODBC we need to handle this ourself.