Skip to content

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

Merged
merged 1 commit into from
Oct 7, 2016

Conversation

superkhau
Copy link
Contributor

  • 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

Connect to https://github.com/strongloop-internal/scrum-loopback/issues/1096

cc @bajtos @rmg @strongloop/fa-db-connectors

* 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
@superkhau superkhau self-assigned this Oct 7, 2016
Copy link
Member

@bajtos bajtos left a 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',
Copy link
Member

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?

Copy link
Contributor Author

@superkhau superkhau Oct 7, 2016

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).

Copy link
Contributor Author

@superkhau superkhau Oct 7, 2016

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

@superkhau superkhau merged commit 737496a into master Oct 7, 2016
@superkhau superkhau deleted the remove-unused-prefix-from-test-env-vars branch October 7, 2016 18:55
@superkhau superkhau removed the #review label Oct 7, 2016
superkhau added a commit that referenced this pull request Oct 7, 2016
* 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
superkhau added a commit that referenced this pull request Oct 7, 2016
* 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
0candy added a commit that referenced this pull request Oct 14, 2016
 * 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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants