20300: Update test to new Rails API.
authorTom Clegg <tom@curii.com>
Tue, 19 Sep 2023 03:55:46 +0000 (23:55 -0400)
committerTom Clegg <tom@curii.com>
Fri, 29 Sep 2023 14:14:14 +0000 (10:14 -0400)
Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom@curii.com>

services/api/test/functional/arvados/v1/management_controller_test.rb

index ab57c995dfe55ca4e86118b19012f736d9ebe62e..d8d2d52c89699f56ea615283650efd4741ec6eb2 100644 (file)
@@ -39,7 +39,8 @@ class Arvados::V1::ManagementControllerTest < ActionController::TestCase
     @request.headers['Authorization'] = "Bearer configuredmanagementtoken"
     get :metrics
     assert_response :success
-    assert_equal 'text/plain; charset=utf-8', @response.content_type
+    assert_equal 'text/plain', @response.media_type
+    assert_equal 'utf-8', @response.charset
 
     assert_match /\narvados_config_source_timestamp_seconds{sha256="#{hash}"} #{Regexp.escape mtime.utc.to_f.to_s}\n/, @response.body