Commit Graph

8 Commits

Author SHA1 Message Date
Agnes Lin 8d93eb38c7 update Travis MySQL config
- 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>
2019-05-23 12:20:41 -04:00
Agnes Lin a12558e8a4 chore: update copyrights years 2019-05-07 13:37:19 -04:00
Sakib Hasan a45e22eeb8 Add docker setup (#278)
* 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
2017-05-12 10:13:15 -04:00
Simon Ho a004b03d0f Fix pretest and init test configs
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
2016-08-19 10:56:19 -07:00
Loay 9c9b61e7dc Update eslint infrastructure 2016-08-10 20:04:26 -04:00
Ryan Graham 2533fe8404
test: use dump of original test DB as seed 2016-08-09 19:14:51 -07:00
Ryan Graham 3954709bbc
test: accept alternate test db credentials
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.
2016-08-09 19:00:07 -07:00
Ryan Graham acaa6b0bb9
test: seed test DB with example
Only run if the environment defines a test database to connect to.
2016-08-08 17:37:09 -07:00