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
Scott Schneider
c720f12c05
Move tag-filtering and exporting to API helper methods
2015-06-30 19:45:16 -07:00
Scott Schneider
6523062b62
Allow for only a [configurable] tag set
2015-06-30 12:54:46 -07:00
Scott Schneider
3aa8389749
Discard/skip empty tags
2015-06-30 11:20:13 -07:00
Colin
b6cb20ba9f
Merge pull request #108 from sschneid/api_summary_reorg
...
API summary rework
2015-06-08 11:28:45 -07:00
Scott Schneider
d3f4f6fb77
Rerouting for new /summary routes
2015-06-04 14:55:26 -07:00
Scott Schneider
ce05c94677
Generate summaries from helpers; individual routes
...
- '/summary*' routes are now generated from helper methods
- many '/summary/...' combinations now possible
- '/summary/tag'
- '/summary/tag/beaker_version'
- '/summary/boot'
- '/summary/boot/duration'
- '/summary/clone'
- '/summary/clone/count?from=2015-06-01'
- etc.
2015-06-04 14:55:19 -07:00
Scott Schneider
d938a50ee8
Add get_tag_summary and get_task_summary helpers
2015-06-04 10:39:07 -07:00
Colin
211cc54c42
Merge pull request #106 from sschneid/tag_filtering
...
Only filter regex matches
2015-06-04 10:32:40 -07:00
Scott Schneider
1f62379be8
Only filter regex matches
...
and a spec test for it.
Previously using the example shown in vmpooler.yaml.example was failing
to tag strings WITHOUT a '/' in them.
2015-06-02 19:12:30 -07:00
Colin
ccede2780e
Merge pull request #105 from sschneid/tag_filtering
...
(QENG-2518) Tag-filtering
2015-06-02 11:33:47 -07:00
Scott Schneider
60819b9a7e
Spec tests for tagfilter
2015-06-02 10:53:20 -07:00
Scott Schneider
1ba1e0fc9b
Add example for tagfilter
2015-06-02 10:53:20 -07:00
Scott Schneider
4bed6edde4
This implements regex-based tag filtering
2015-06-02 10:53:14 -07:00
Roger Ignazio
ae91077494
Merge pull request #104 from colinPL/qeng_2360
...
(QENG-2360) check_running_vm Spec Tests
2015-05-19 15:06:46 -07:00
Colin
dec95ba693
(QENG-2360) check_running_vm Spec Tests
...
Add spec tests for pool_manager#check_running_vm. In the process of
writing these tests, the method was broken in to smaller methods for
testability reasons.
2015-05-19 10:23:31 -07:00
Colin
6d06128481
Merge pull request #102 from sschneid/tag_index_and_reporting
...
(QENG-2056) Create daily tag indexes, report in /summary
2015-05-13 10:58:26 -07:00
Scott Schneider
c255494ddd
Add spec tests for #get_tag_metrics method
2015-05-12 10:09:57 -07:00
Scott Schneider
726de893ec
Updating docs to include 'tag' in /summary
2015-05-07 23:51:04 -07:00
Scott Schneider
4cfc078684
Create daily tag indexes, report in /summary
...
- Store daily tag roll-ups in vmpooler__tag__<date>
- GET /summary will display daily tag counts and roll-up
2015-05-07 15:24:08 -07:00
Colin
640b1ef4da
Merge pull request #101 from sschneid/token_metadata_in_vm_obj
...
Store token metadata in vmpooler__vm__ Redis hash
2015-05-06 13:33:01 -07:00
Colin
cf20c418bc
Merge pull request #100 from sschneid/display_vm_state
...
Display VM state in GET /vm/:hostname route
2015-05-06 13:14:36 -07:00
Scott Schneider
64bbd7c973
Display VM state in GET /vm/:hostname route
2015-04-30 19:38:31 -07:00
Scott Schneider
7bddfdef1b
Store token metadata in vmpooler__vm__ Redis hash
2015-04-30 19:29:18 -07:00
Scott Schneider
f3979de5ef
Check for 'checkout' key if calculating 'running' time
2015-04-30 18:30:13 -07:00
Roger Ignazio
c4ad99c493
Merge pull request #98 from sschneid/tokens_ftw
...
Add basic auth token functionality
2015-04-29 09:39:00 -07:00
Scott Schneider
7ccd9433df
Token documentation and configuration examples
2015-04-28 19:27:21 -07:00
Scott Schneider
13df748cc6
Add basic auth token functionality
...
...and rspec tests, hooray!
2015-04-28 10:47:57 -07:00
Roger Ignazio
8cd49d215b
Merge pull request #97 from sschneid/basic_auth
...
Add basic HTTP authentication and /token routes
2015-04-22 11:39:24 -07:00