[ARVADOS] updated: 68483f1bc4d5d170471d02a60cebc28e794501b2

git at public.curoverse.com git at public.curoverse.com
Mon Mar 16 11:23:06 EDT 2015


Summary of changes:
 services/api/test/unit/arvados_model_test.rb | 10 ++++++++++
 1 file changed, 10 insertions(+)

       via  68483f1bc4d5d170471d02a60cebc28e794501b2 (commit)
      from  00c2e9b28c1228b2ba327223d5576d44e4fdae4d (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 68483f1bc4d5d170471d02a60cebc28e794501b2
Author: Radhika Chippada <radhika at curoverse.com>
Date:   Mon Mar 16 11:20:42 2015 -0400

    5383: add test that creates an object and does a lookup using that object's created_at timestamp.

diff --git a/services/api/test/unit/arvados_model_test.rb b/services/api/test/unit/arvados_model_test.rb
index 09dece2..44c8742 100644
--- a/services/api/test/unit/arvados_model_test.rb
+++ b/services/api/test/unit/arvados_model_test.rb
@@ -167,4 +167,14 @@ class ArvadosModelTest < ActiveSupport::TestCase
     assert_includes(attr_a, "uuid")
     refute_includes(attr_a, "success")
   end
+
+  test 'create and retrieve using created_at time' do
+    set_user_from_auth :active
+    group = Group.create! name: 'test create and retrieve group'
+    assert group.valid?, "group is not valid"
+
+    results = Group.where(created_at: group.created_at)
+    assert_equal true, results.any?, "Expected one or more groups when searched with created time"
+    assert_equal group.uuid, results.first.uuid, "Expected group uuid in results"
+  end
 end

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list