- pin mysql version to 5.7
- set necessary environment variables
- create a test user & grant it priviledges to all schemas
- change the name of the default schema
Co-authored-by: Biniam Admikew <biniam@ca.ibm.com>
* Add docker setup
Add a setup script that spawns a docker container before running test
Easy for contributors now to test, no need for a local instance
* Update readme with docs on running test
* Allow check for container status
Check for if the container is up before proceeding
* Add options for customized user,pass,port
* Fix seeding on database
Only seed the database if user specifies CI=true
OR when the tests actually run on the CI
* Update readme with windows env var
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
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.