Skip to content
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.

Seed options - logResults #957

Merged
merged 3 commits into from
Oct 15, 2015
Merged

Commits on Oct 9, 2015

  1. Seed options - logResults

    Added an options object to the database seed configuration. Currently,
    the only option implemented is `logResults`; set using the seedDB env
    config
    options (default to "true").
    
    Modified the definition of the env config for seedDB. It's now an
    object, with
    options.
    
    Setting the logResults option is set to `false` in the core
    configuration server test suite.
    
    Also, fixed an issue with how env configs were reading the seedDB
    setting from the env variables. Previously, the config was getting set
    by
    looking for merely the existence of the env variable (MONGO_SEED).
    However,
    if this setting existed but was set to "false", the seedDB would be
    turned on.
    
    Added the SeedDB user details to the env config, and seedDB options.
    
    Added tests to the core server config test suite
    
    should have seedDB configuration set for "regular" user
    should have seedDB configuration set for admin user
    should seed admin, and "regular" user accounts when NODE_ENV is set to
    "test" when they already exist
    should ONLY seed admin user account when NODE_ENV is set to "production"
    with custom admin
    should seed admin, and "regular" user accounts when NODE_ENV is set to
    "test" with custom options
    should NOT seed admin user account if it already exists when NODE_ENV is
    set to "production"
    should NOT seed "regular" user account if missing email when NODE_ENV
    set to "test"
    
    Added support for environment variables to seedDB env configs; currently
    only supporting username & email.
    
    Refactored how the SeedDB rejects were being handled
    mleanos committed Oct 9, 2015
    Configuration menu
    Copy the full SHA
    0560062 View commit details
    Browse the repository at this point in the history
  2. Formatting and Indentation

    Changes to formatting and indentation.
    mleanos committed Oct 9, 2015
    Configuration menu
    Copy the full SHA
    75cf745 View commit details
    Browse the repository at this point in the history
  3. Synchronous tests

    Removed the done() callback method from the config tests that aren't
    truly asynchronous.
    mleanos committed Oct 9, 2015
    Configuration menu
    Copy the full SHA
    32e0d12 View commit details
    Browse the repository at this point in the history