Commit graph

15 commits

Author SHA1 Message Date
kirby@puppetlabs.com
0a21ac563d Update travis tests to use latest ruby versions
This commit updates travis to use ruby 2.4.9, 2.5.7, and jruby 9.2.9.0
for tests.
Test with latest z releases of ruby versions
2020-02-13 12:00:09 -08:00
kirby@puppetlabs.com
49ec06e151 (POOLER-138) Support multiple pools per alias
This change updates handling of pool aliases to allow for more than a
single pool to be configured as an alias pool. Without this change if
multiple pools are configured as an alias the last one to configure it
is set as the alias for that pool.

Additionally, redis testing requirements are removed in favor of
mock_redis. Without this change a redis server is required to run
vmpooler tests.
2019-02-01 09:05:23 -08:00
kirby@puppetlabs.com
db1e90d893 Stop testing ruby 2.3.x
This commit updates travis configuration to stop testing 2.3.x and jruby 9.1.x. Without this change tests fail due to library incompatibilities with ruby 2.3.x.
2019-01-18 14:29:14 -08:00
kirby@puppetlabs.com
12df6830f5 (MAINT) Update travis to test latest ruby
This commit updates travis to test latest ruby versions for vmpooler. Without this change we test out of date versions of ruby with vmpooler.
2018-12-19 12:49:08 -08:00
kirby@puppetlabs.com
dd6af73abd (maint) Remove ruby 2.2.10 from travis config
This commit removes ruby 2.2.10 from travis configuration. Without this change travis tests fail since vmpooler has dropped ruby 2.2.10 support.
2018-07-16 17:11:30 -07:00
kirby@puppetlabs.com
bc4bf32638 Add jruby 9.2 to travis testing
This commit adds jruby 9.2 to travis testing. Without this change vmpooler is not tested against jruby 9.2.
2018-07-05 17:17:24 -07:00
mattkirby
e781ed258b Update ruby versions for travis (#259)
This commit updates ruby versions specified for use when testing in
travis.yml. Specifically, ruby 2.4.x and 2.5.x are added, while 2.2 is
updated to 2.2.10, and 2.3 is updated to 2.3.7. Additionally, jruby
testing is updated to use 9.1.17.0. Without this change we do not test
ruby 2.4.x or 2.5.x with vmpooler.
2018-06-14 15:21:35 -05:00
kirby@puppetlabs.com
82f141793b Update jruby version for travis to 9.1.13.0
This commit updates travis configuration to replace jruby 1.7.13 with 9.1.13.0. Without this change the jruby version tested is out of date and does not support features like safe_load, which affects issue #243.
2018-01-11 11:04:42 -08:00
Samuel
62643b237f (POOLER-96) Setting the Rubygems version (#246)
* (POOLER-96) Setting the Rubygems version

travis uses the latest bundler 1.16 which installs the newer rubygems and I think that might be why it's failing now when downgrading only bundler to version 1.12
This is a test to see if travis will pass.

* also update bundler to 1.15.4

* Update .travis.yml

* update jruby to 1.7.13

* print bundle version

* specify bundler version 1.15.4
2017-11-28 10:43:45 -08:00
Glenn Sarti
36310e381a (maint) Add rubocop checks to Travis
This commit adds rubocop checks to Travis for PR CI.  Any rubocop failures will
not fail the build yet.  Fixes for rubocop violations will happen in later
commits.
2017-02-10 13:33:36 -08:00
Glenn Sarti
926eb47940 (maint) Remove Ruby 1.9.3 testing from Travis
Ruby 1.9.3 is end of life, and now longer bundles due to later Nokogiri 1.7.0.1
requiring Ruby 2.1 or above.  This commit removes ruby 1.9.3 from Travis
testing.
2017-01-24 14:59:14 -08:00
Rick Bradley
9b44c2ffc4 (maint) Add a temporary shim to fix jruby travis build
This is necessary until the bundler + Jruby issues are resolved:

 - https://github.com/bundler/bundler/issues/4975
 - https://github.com/bundler/bundler/issues/4984
2016-09-14 15:45:36 -07:00
Rick Bradley
26ca390b4c Improved tests for vmpooler (#152)
* Add redis to our travis runs

* De-mockistify v1/token specs; use real redis.

Open questions:

 - Do we need to do better cleanup here?
 - Should we be using a separate database to prevent clobbering other local db's?

* Remove mockist tests from main suite.

* (MAINT) gitignore some common files

* (maint) Clean up some of the /vm/ tests

* (maint) Convert specs for /vm/template

* (maint) Clean up, reorganize specs

* (maint) Move extracted spec helper methods to spec_helper

* (maint) rename create_vm -> create_ready_vm

* (WIP) add partially-converted /vm/hostname specs

* (maint) clean up vm_spec

* (WIP) notes for next steps

* (maint) Define :config in token tests

Miscellaneous whitespace cleanup.

* (maint) Lift #redis definition into spec helper library

* (maint) drop unneeded clear_pool helper

Given the way we're flushing redis (which seems super performant), we don't
need to clear pools any more at the beginning of tests.

* (maint) Drop clear_pool from vm/template specs

* (maint) Update vm/hostname tag and lifetime specs

* (maint) Convert vm deletion specs

* (maint) Convert specs for vm snapshot operations

* (maint) Drop now-obsolete v1_spec.rb

* (maint) cosmetic cleanup in spec helper

* (maint) begin de-mockistifying api_spec.rb

* (maint) repair incorrect test

The mockist version of the test allows redis' scard to return nil, which
it does not actually do in real life. Verified the behavior in the code
via a debugger. Fixed the test.

* (maint) finish converting dashboard specs

* (maint) rename api_spec to dashboard_spec

* (maint) Don't clobber default redis database when running specs
2016-06-07 16:13:39 -05:00
Scott Schneider
705644756f Use dep caching and containers 2015-07-07 12:52:55 -07:00
Colin
e57ee075f2 (QENG-2246) Add Travis CI
This commit adds a Rakefile, Gemfile, and Travis CI config file.

The Rakefile contains two tasks: test and junit. Both targets execute
the spec tests, with the difference being how the results are presented.

The Gemfile defines dependencies and a test group. To install just the
gems needed for running the application, execute:
  * `bundle install --without test`

The new .travis.yml file is for Travis CI and targets the major ruby
versions.
2015-07-06 11:24:31 -07:00