Skip to content

Instantly share code, notes, and snippets.

@sheldonh
Created October 13, 2015 12:12
Show Gist options
  • Save sheldonh/6d035c22582aeb5d12c1 to your computer and use it in GitHub Desktop.
Save sheldonh/6d035c22582aeb5d12c1 to your computer and use it in GitHub Desktop.
Feature: Legacy bootstrapping
As a legacy service component
In order to use the configuration service without changing hosting strategy
I want to bootstrap the configuration service from a file.
Scenario: Legacy bootstrapping
Given no environmental service configuration
And a legacy service configuration file
When I seed the environment from the file
And I bootstrap the configuration service from the environment
Then I receive a functioning configuration service
And the environmental service configuration has been scrubbed
And the seeding file has not been scrubbed
Scenario: Missing legacy bootstrapping
Given environmental service configuration
And a missing legacy service configuration file
When I seed the environment from the file
And I bootstrap the configuration service from the environment
Then the missing legacy service configuration file does not cause a problem
And I receive a functioning configuration service
And the environmental service configuration has been scrubbed
Scenario: Conflicting legacy bootstrapping
Given environmental service configuration
And a legacy service configuration file
When I seed the environment from the file
And I bootstrap the configuration service from the environment
Then I receive a functioning configuration service
And environmental service configuration overrode the legacy service configuration file
Scenario: Invalid legacy bootstrapping
Given a legacy service configuration file with invalid contents
When I seed the environment from the file
Then I am immediately interrupted and presented with an error
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment