13996: Update tests for cleaner config access
[arvados.git] / services / api / test / functional / arvados / v1 / nodes_controller_test.rb
index 435764baa405db1c39cf8cf6eb0c007745ed765c..c61a57ecc835212860dfdc18e5018b1d07428bae 100644 (file)
@@ -223,7 +223,7 @@ class Arvados::V1::NodesControllerTest < ActionController::TestCase
   end
 
   test "node should fail ping with invalid hostname config format" do
-    Rails.configuration.Containers["SLURM"]["Managed"]["AssignNodeHostname"] = 'compute%<slot_number>04'  # should end with "04d"
+    Rails.configuration.Containers.SLURM.Managed.AssignNodeHostname = 'compute%<slot_number>04'  # should end with "04d"
     post :ping, params: {
       id: nodes(:new_with_no_hostname).uuid,
       ping_secret: nodes(:new_with_no_hostname).info['ping_secret'],