4533: Reset fixtures after each test case by default.
[arvados.git] / services / api / test / integration / remote_reset_test.rb
index 81f341a75de94f82f06c171e5091ce47c9cd4728..9cd9d0ff1a550d7fae3649d58349a5efc93e528e 100644 (file)
@@ -17,8 +17,14 @@ class RemoteResetTest < ActionDispatch::IntegrationTest
     assert_response :success
     post '/arvados/v1/specimens', {specimen: '{}'}, active_auth
     assert_response :success
-
     new_uuid = json_response['uuid']
+
+    # Perhaps redundant: confirm the above changes are observable from
+    # here using get(). Otherwise, the assertions below would not be
+    # informative. (Aside from confirming that integration-testing
+    # features work, this confirms that /database/reset didn't somehow
+    # put the database into a "don't persist any changes" mode -- not
+    # that I can think of a way for that to happen.)
     get '/arvados/v1/specimens/'+new_uuid, {}, active_auth
     assert_response :success
     get '/arvados/v1/specimens/'+old_uuid, {}, active_auth