Archived
1
0
Fork 0
Sample Rails application for testing https://github.com/atomaka/psenv
This repository has been archived on 2023-03-14. You can view files and clone it, but cannot push or open issues or pull requests.
Find a file
Andrew Tomaka 4d2661ec5e
Setup project for testing
* Remove unecessary parts of Rails
* Write tests
* Document usage
2019-10-04 23:08:40 -04:00
app/services Setup project for testing 2019-10-04 23:08:40 -04:00
bin Initial commit 2019-10-03 22:39:54 -04:00
config Setup project for testing 2019-10-04 23:08:40 -04:00
lib/tasks Initial commit 2019-10-03 22:39:54 -04:00
log Initial commit 2019-10-03 22:39:54 -04:00
public Initial commit 2019-10-03 22:39:54 -04:00
test Setup project for testing 2019-10-04 23:08:40 -04:00
tmp Initial commit 2019-10-03 22:39:54 -04:00
vendor Initial commit 2019-10-03 22:39:54 -04:00
.gitignore Initial commit 2019-10-03 22:39:54 -04:00
.ruby-version Initial commit 2019-10-03 22:39:54 -04:00
config.ru Initial commit 2019-10-03 22:39:54 -04:00
Gemfile Setup project for testing 2019-10-04 23:08:40 -04:00
Gemfile.lock Setup project for testing 2019-10-04 23:08:40 -04:00
Rakefile Initial commit 2019-10-03 22:39:54 -04:00
README.md Setup project for testing 2019-10-04 23:08:40 -04:00

psenv-test

Used for testing the psenv-rails gem to validate.

Usage

  • Generate new parameter store variable in AWS
    • /psenv/test/API_KEY with value "api_key_value"
  • PARAMETER_STORE_PATH=/psenv/test bundle exec rails test

New Versions

To test new versions of the gem, you can install the psenv-rails gem locally and reference it:

  1. Clone psenv and complete work
    1. Likely updating Railtie requirements
  2. Update psenv lib/psenv/version.rb
    1. Example version name: 0.5.16-local
  3. Run bundle exec rake install in psenv directory
  4. Note new gem version installed locally
    1. Example gem version: 0.5.16.pre.local
  5. Open psenv-test project
  6. Update Gemfile with test version
    1. gem 'psenv-rails', '0.5.16.pre.local'
    2. bundle install
  7. PARAMETER_STORE_PATH=/psenv/test bundle exec rails test