[ARVADOS] updated: 706abfc3fe0788584d930ae2297b2b01dab8cf36
Git user
git at public.curoverse.com
Thu Sep 8 16:53:28 EDT 2016
Summary of changes:
.../test/functional/arvados/v1/containers_controller_test.rb | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
via 706abfc3fe0788584d930ae2297b2b01dab8cf36 (commit)
from 8eaed3be04eb6356920b764f8ae370ddf8ace94c (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit 706abfc3fe0788584d930ae2297b2b01dab8cf36
Author: Tom Clegg <tom at curoverse.com>
Date: Thu Sep 8 16:53:24 2016 -0400
9898: Fix broken test.
diff --git a/services/api/test/functional/arvados/v1/containers_controller_test.rb b/services/api/test/functional/arvados/v1/containers_controller_test.rb
index 3a22de8..cf1f576 100644
--- a/services/api/test/functional/arvados/v1/containers_controller_test.rb
+++ b/services/api/test/functional/arvados/v1/containers_controller_test.rb
@@ -52,9 +52,10 @@ class Arvados::V1::ContainersControllerTest < ActionController::TestCase
test "lock container" do
authorize_with :dispatch1
- post :lock, {id: containers(:queued).uuid}
+ uuid = containers(:queued).uuid
+ post :lock, {id: uuid}
assert_response :success
- container = Container.where(uuid: containers(:queued).uuid).first
+ container = Container.where(uuid: uuid).first
assert_equal 'Locked', container.state
assert_not_nil container.locked_by_uuid
assert_not_nil container.auth_uuid
@@ -62,9 +63,10 @@ class Arvados::V1::ContainersControllerTest < ActionController::TestCase
test "unlock container" do
authorize_with :dispatch1
- post :unlock, {id: containers(:locked).uuid}
+ uuid = containers(:locked).uuid
+ post :unlock, {id: uuid}
assert_response :success
- container = Container.where(uuid: container.uuid).first
+ container = Container.where(uuid: uuid).first
assert_equal 'Queued', container.state
assert_nil container.locked_by_uuid
assert_nil container.auth_uuid
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list