Commit graph

847 commits

Author SHA1 Message Date
Scott Schneider
d1c8bcdbcc RSpec mocking for TCPSocket.new 2015-09-17 11:31:31 -07:00
Scott Schneider
5b6985c3a7 (QENG-2952) Check that SSH is available
SSH should be available before a VM is moved from the 'pending' queue to
'ready'.

`check_ssh` should probably be a function in the tradition of DRY; I'm
going to hopefully follow up this PR with a `Vmpooler::Utility` library.
2015-09-17 11:12:51 -07:00
Colin
0c1e89f047 Merge pull request #127 from sschneid/duplicate_ok
(maint) Remove duplicate (nested) "ok" responses
2015-09-04 11:36:57 -07:00
Michael Stahnke
3fdf1685ba Merge pull request #128 from sschneid/license_update
(maint) Update license copyright
2015-08-22 14:13:30 -07:00
Scott Schneider
40b13e2b22 Update license copyright 2015-08-21 18:07:07 -07:00
Scott Schneider
906ae89987 Remove duplicate (nested) "ok" responses
As we approach an "official" v1.0.0 of the API I'd like to remove some old
nested "ok" responses.  These were left in as the Beaker vmpooler
hypervisor used them, but I long-ago patched that code and I think it's
time to deprecate these.
2015-08-21 13:58:07 -07:00
Colin
f7ad3bb7e8 Merge pull request #126 from sschneid/missing_docs
(maint) Documentation updates
2015-08-21 13:11:06 -07:00
Scott Schneider
fd6a707b15 /api/v1 2015-08-20 22:41:19 -07:00
Scott Schneider
5e30932900 Snapshot route documentation 2015-08-20 22:39:48 -07:00
Scott Schneider
825ade9e12 'clone_target' is overridable pool-level
You know, like for a cluster of Mac Minis, maybe.
2015-08-20 22:25:42 -07:00
Justin Stoller
9ae19e0d4d Merge pull request #125 from sschneid/token_last
Track token use times
2015-08-20 20:31:33 -07:00
Scott Schneider
89ce70dba9 Track token use times
* rename the Redis token 'timestamp' var to 'created'
* update the Redis token 'last' var when token is successfully validataed
* expose the Redis token 'last' var in GET /token route
2015-08-20 19:54:59 -07:00
Justin Stoller
ce158d9fec Merge pull request #123 from sschneid/user_token_list
User token list
2015-08-20 19:15:20 -07:00
Scott Schneider
e4f2777889 Spec tests for GET /token 2015-08-20 18:50:55 -07:00
Scott Schneider
47deddcc46 Split API spec into /token and /token/:token 2015-08-20 18:50:55 -07:00
Scott Schneider
492cfb06a3 List tokens via GET /token 2015-08-20 18:50:51 -07:00
Colin
ed63c56724 Merge pull request #124 from sschneid/docs_update
Docs update
2015-08-20 10:54:18 -07:00
Scott Schneider
91ca5c282b Description tweak 2015-08-19 16:24:58 -07:00
Scott Schneider
969e479d47 This sentence always bugged me 2015-08-18 19:39:29 -07:00
Scott Schneider
3f83f52f90 Docs for GET /token 2015-08-18 19:37:50 -07:00
Scott Schneider
5ce08b907f Split API docs into separate markdown file 2015-08-18 19:33:23 -07:00
Colin
7cd8c9a8c1 Merge pull request #122 from sschneid/scripts
(maint) Additional utility and reporting scripts
2015-08-18 14:28:04 -07:00
Scott Schneider
7546904db7 Additional utility and reporting scripts 2015-08-07 14:52:24 -07:00
Colin
4e7dc236b9 Merge pull request #121 from sschneid/syntax
(maint) Syntax fixup
2015-08-07 10:20:16 -07:00
Scott Schneider
243eba7820 Whitespace, ;; 2015-08-07 10:12:26 -07:00
Scott Schneider
3c3172615b Merge pull request #120 from colinPL/main_less_redis
(MAINT) Reduce redis Calls in API
2015-08-03 09:42:16 -07:00
Colin
5b6a60ca3e Merge pull request #119 from sschneid/rspec_cleanup
(maint) Use expect_json helper method for determining JSON response status
2015-07-28 15:37:23 -07:00
Scott Schneider
2d514f53bf Use expect_json helper method for determining JSON response status 2015-07-28 14:54:28 -07:00
Colin
acb95d34c8 (MAINT) Reduce redis Calls in API
The return values from most redis calls inform the caller of whether a
key or hash value exists. Several exists() calls can be removed in
favor of this approach.

Updated spec tests to account for a removal of exists() and ismember()
calls in API tests.
2015-07-28 14:47:01 -07:00
Colin
5789d2c708 Merge pull request #118 from sschneid/qeng_1304
(QENG-1304) vmpooler should require an auth key for VM destruction
2015-07-28 14:08:07 -07:00
Scott Schneider
add88c7bba (QENG-1304) vmpooler should require an auth key for VM destruction 2015-07-28 12:03:14 -07:00
Colin
7fddaf86e0 Merge pull request #117 from sschneid/host_snapshots
(QENG-2636) Host snapshots
2015-07-27 11:19:13 -07:00
Scott Schneider
85aad61192 Fix snapshort revert functionality 2015-07-16 11:41:00 -07:00
Scott Schneider
1689133b19 Require an auth token to use snapshots 2015-07-16 10:59:30 -07:00
Scott Schneider
fe65d5b11b Merge branch 'master' into host_snapshots 2015-07-16 10:42:16 -07:00
Scott Schneider
93acc8327b Host snapshot rspec tests 2015-07-16 10:35:44 -07:00
Scott Schneider
1c3045fd65 Host snapshot functionality 2015-07-16 10:29:49 -07:00
Colin
ea5c1aff3d Merge pull request #112 from sschneid/log_empty_pools
Log empty pools
2015-07-14 11:13:04 -07:00
Roger Ignazio
68d02f50a2 Merge pull request #115 from sschneid/readme_build_status
(maint) Include travis-ci build status in README
2015-07-07 13:37:57 -07:00
Roger Ignazio
a475517857 Merge pull request #116 from sschneid/travis-ci_containers
(maint) Use dep caching and containers
2015-07-07 13:33:00 -07:00
Scott Schneider
705644756f Use dep caching and containers 2015-07-07 12:52:55 -07:00
Scott Schneider
d19b2f1d62 Include travis-ci build status in README 2015-07-07 12:36:06 -07:00
Roger Ignazio
aeed05365f Merge pull request #114 from sschneid/rspec_dash_fd
Show test contexts and names
2015-07-07 11:18:55 -07:00
Scott Schneider
821ffd866a Log empty pools
Make a note in the logfile when a pool is detected to be empty.

Also:

- vmpooler__empty__<pool> Redis key to determine when to log
- lifetime/TTL checks moved to `_check_running_vm` method
  - no longer pay attention to VMware-based 'host.runtime.bootTime'

This PR implements a bunch of other stuff to account for rspec testing:

- Thread creation and looping in `check_pool`
- Everything else in `_check_pool`
2015-07-07 11:12:46 -07:00
Scott Schneider
534cc91b0f Show test contexts and names 2015-07-06 15:40:02 -07:00
Scott Schneider
d1a9dd67cd Merge pull request #113 from colinPL/qeng_2246_deftask
(QENG-2246) Add Default Rake Task
2015-07-06 15:12:12 -07:00
Colin
7d77e76fc0 (QENG-2246) Add Default Rake Task
Add a default task that calls test.
2015-07-06 13:10:24 -07:00
Scott Schneider
1d483b1374 Merge pull request #111 from colinPL/qeng_2246_travci
(QENG-2246) Add Travis CI
2015-07-06 11:30:29 -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
Roger Ignazio
9e092fd148 Merge pull request #110 from sschneid/tagging_restriction
(QENG-2388) Tagging restrictions
2015-07-01 09:08:14 -07:00