X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/8f8a99ce94818a5dbe372d8704ab396bff897489..a69a1cb084e6feb9e4e9c6538a52289e7c56700b:/services/api/test/integration/remote_reset_test.rb diff --git a/services/api/test/integration/remote_reset_test.rb b/services/api/test/integration/remote_reset_test.rb index 81f341a75d..9cd9d0ff1a 100644 --- a/services/api/test/integration/remote_reset_test.rb +++ b/services/api/test/integration/remote_reset_test.rb @@ -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