-
Notifications
You must be signed in to change notification settings - Fork 181
Remove unused prefix from test env vars #176
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
* TEST_ prefix is not used by CI anymore and therefore serve no purpose * Part of overall goal to standardize env var injection to MODULE_VARNAME (ie. MONGODB_HOST for example) convention
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One question to answer/consider, the patch LGTM.
config = { | ||
host: process.env.PGHOST, | ||
port: process.env.PGPORT, | ||
database: process.env.TEST_POSTGRESQL_DATABASE || 'emptytest', | ||
database: process.env.POSTGRESQL_DATABASE || 'emptytest', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we support PGDATABASE
too, for consistency with other PG*
env vars?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Outside the scope of this PR, but yes we should add it (I'll send another PR after landing this).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Follow up PR at #178
* TEST_ prefix is not used by CI anymore and therefore serve no purpose * Part of overall goal to standardize env var injection to MODULE_VARNAME (ie. MONGODB_HOST for example) convention Backport of #176
* Add connectorCapabilities global object (#179) (Nicholas Duffy) * Accept PGDATABASE env var in test/init.js (#178) (Simon Ho) * Remove unused prefix from test env vars (#176) (Simon Ho) * Fix #123: Set default value during autoupdate. (#167) (Samuel Reed) * Update translation files - round#2 (#170) (Candy) * Add translated files (gunjpan) * Update deps to loopback 3.0.0 RC (Miroslav Bajtoš) * Use juggler@3 for running tests (Candy) * Add eslint infrastructure (Loay) * Revert "Add eslint infrastructure" (Loay) * Fix CI Failure (Loay) * test: accept more env vars on CI (Ryan Graham) * test: use 'emptytest' database as default (Ryan Graham) * test: seed DB with test schema before running (Ryan Graham) * test: separate dbconfig from datasource (Ryan Graham) * test: replace tables.sql with full schema dump (Ryan Graham) * Refactor (jannyHou) * Upgrade version (jannyHou) * Globalize discover.js (jannyHou) * Update URLs in CONTRIBUTING.md (#150) (Ryan Graham)
MODULE_VARNAME (ie. MONGODB_HOST for example) convention
Connect to https://github.com/strongloop-internal/scrum-loopback/issues/1096
cc @bajtos @rmg @strongloop/fa-db-connectors