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
Scott Schneider
b6c53cd855
Redirect / to /dashboard
2015-04-10 09:38:55 -07:00
Colin
a2fbee55d9
Merge pull request #91 from sschneid/api_lifetime_force_int
...
Ensure 'lifetime' val returned by GET /vm/:hostname is an int
2015-04-09 16:27:10 -07:00
Colin
d3009de224
Merge pull request #90 from sschneid/vm_lifetime_fixup
...
running-to-lifetime comparison should be 'greater than or equal to'
2015-04-09 12:55:06 -07:00
Scott Schneider
798aa3f9ff
Ensure 'lifetime' val returned by GET /vm/:hostname is an int
2015-04-09 12:48:56 -07:00
Scott Schneider
818b92100b
running-to-lifetime comparison should be 'greater than or equal to'
2015-04-09 12:35:13 -07:00
Colin
6cd56f40ee
Merge pull request #89 from sschneid/remove_janitor_expire_via_redis
...
Auto-expire Redis metadata key via Redis EXPIRE
2015-04-07 15:57:17 -07:00
Scott Schneider
4878799374
Merge pull request #88 from colinPL/qeng_1906_sinatra
...
(QENG-1906) Add specs for Dashboard and root API class
2015-04-07 11:15:14 -07:00
Scott Schneider
f9de28236b
Auto-expire Redis metadata key via Redis EXPIRE
...
This commit also removed the unnecessary Vmpooler::Janitor lib
2015-04-07 11:01:37 -07:00
Scott Schneider
2b9f66b8d2
Merge pull request #86 from colinPL/qeng_1906_poolmanager
...
(QENG-1906) Break apart check_pending_vm and add spec tests
2015-04-06 16:24:03 -07:00
Colin
97879339b5
(QENG-1906) Add specs for Dashboard and root API class
...
Add spec tests for Sinatra powered Dashboard piece. This includes tests
for the homepage (/) and a nonexistent route.
2015-04-02 13:39:11 -07:00
Roger Ignazio
4e65d49020
Merge pull request #87 from colinPL/api_redis_fix
...
(maint) Fix bad redis reference
2015-04-02 11:42:47 -07:00
Colin
a5edb9bae2
(maint) Fix bad redis reference
...
This fixes a redis reference that was missed in a previous refactor.
2015-04-02 11:30:43 -07:00
Colin
e6ee6b1257
(QENG-1906) Break apart check_pending_vm and add spec tests
...
This commit breaks apart the method check_pending_vm in to three,
smaller methods that are easier to test. There are no functionality
changes or bug fixes.
This adds spec tests for the overall functionality that was
check_pending_vm.
2015-04-01 15:42:28 -07:00
Scott Schneider
6758da7f5c
Merge pull request #85 from colinPL/graphite_fix
...
Remove defined? when checking configuration for graphite server.
2015-04-01 09:39:37 -07:00
Colin
0316ddbc4a
Remove defined? when checking configuration for graphite server.
2015-04-01 09:38:04 -07:00
Scott Schneider
8facda429e
Merge pull request #78 from colinPL/qeng_1906_janitor
...
(QENG-1906) Add spec tests for Janitor
2015-03-31 15:12:26 -07:00
Colin
d0275f5fba
(QENG-1906) Add spec tests for Janitor
...
Add spec tests to verify Janitor deletes stale vms correctly. This
required a small refactor of Janitor to move the logic out of the for
loop.
2015-03-31 10:21:24 -07:00
Scott Schneider
fd90756b83
Merge pull request #77 from colinPL/qeng_1906
...
(QENG-1906) Refactor initialize to allow config passing
2015-03-31 10:10:42 -07:00
Colin
1408f35867
(QENG-1906) Refactor initialize to allow config passing
...
Prior to this commit, several pieces of vmpooler performed configuration
and initialization steps within 'initialize'. This made it difficult to
pass in mock objects for testing purposes.
This commit performs a single configuration and passes the results to
the various pieces of vmpooler.
2015-03-30 14:23:06 -07:00
Colin
34fd054a48
Merge pull request #75 from sschneid/query_destroyed_vms
...
Use 'checkout' time to calculate 'running' time
2015-03-25 13:52:15 -07:00
Scott Schneider
858d4c7541
Use 'checkout' time to calculate 'running' time
2015-03-25 13:41:26 -07:00
Colin
91563c0408
Merge pull request #71 from sschneid/historic_redis_vm_metadata
...
(QENG-2057) Historic Redis VM metadata
2015-03-25 12:48:56 -07:00
Colin
5a7b3c45de
Merge pull request #73 from sschneid/vm_tagging
...
Catch improperly-formatted data payloads
2015-03-20 13:06:53 -07:00
Scott Schneider
10db0c4c6a
Catch improperly-formatted data payloads
2015-03-20 13:03:29 -07:00