Scott Schneider
1c3045fd65
Host snapshot functionality
2015-07-16 10:29:49 -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
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
Roger Ignazio
0a8258725e
Merge pull request #95 from colinPL/qeng_2208
...
(QENG-2208) Add more helper tests
2015-04-22 10:39:54 -07:00
Scott Schneider
bad1ce65a1
Spec tests for /token routes
2015-04-21 17:12:36 -07:00
Scott Schneider
e447b754c3
Add basic HTTP authentication and /token routes
...
- the only initial backend option for auth is LDAP
2015-04-21 11:44:38 -07:00
Colin
bc5c3a889f
(QENG-2208) Add more helper tests
...
Add tests for more Helper methods. This moves line coverage to 59%,
leaving only get_task_metrics remaining.
2015-04-15 14:00:13 -07:00
Scott Schneider
331ac33b53
Merge pull request #94 from colinPL/move_helpers
...
(QENG-2208) Move Sinatra Helpers to own file
2015-04-15 12:59:29 -07:00
Colin
ab990e2081
(QENG-2208) Move Sinatra Helpers to own file
...
This moves the inline Helpers contained in V1.rb to their own file:
helpers.rb. In making this change, any API.settings call was removed
from the helper method itself and passed through from V1.
This also adds tests for hostname shortener and validate date string.
2015-04-15 12:44:12 -07:00
Colin
86a3a7a4ba
Merge pull request #93 from sschneid/fix_broken_rspec_tests
...
Fix rspec tests broken in f9de28236b
2015-04-10 11:03:19 -07:00
Scott Schneider
b9124b9a22
Fix rspec tests broken in f9de28236b
2015-04-10 10:28:52 -07:00
Colin
10c5c6e287
Merge pull request #92 from sschneid/redirect_/_to_/dashboard
...
Redirect / to /dashboard
2015-04-10 10:16:16 -07:00
Scott Schneider
6224a20792
Add spec tests for dashboard redirect
2015-04-10 10:13:24 -07:00