Commit graph

121 commits

Author SHA1 Message Date
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
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
Scott Schneider
60819b9a7e Spec tests for tagfilter 2015-06-02 10:53:20 -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
Scott Schneider
c255494ddd Add spec tests for #get_tag_metrics method 2015-05-12 10:09:57 -07:00
Scott Schneider
7bddfdef1b Store token metadata in vmpooler__vm__ Redis hash 2015-04-30 19:29:18 -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
Scott Schneider
bad1ce65a1 Spec tests for /token routes 2015-04-21 17:12:36 -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
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
Scott Schneider
b9124b9a22 Fix rspec tests broken in f9de28236b 2015-04-10 10:28:52 -07:00
Scott Schneider
6224a20792 Add spec tests for dashboard redirect 2015-04-10 10:13:24 -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
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
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
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