13996: Migrate tests to new config
[arvados.git] / services / api / test / tasks / delete_old_job_logs_test.rb
index b922fb3b0255e4135f464c76cbf054c8bf86ebc9..6a793e1e0e9aaae29b24b60c096bb76c1021d251 100644 (file)
@@ -1,3 +1,7 @@
+# Copyright (C) The Arvados Authors. All rights reserved.
+#
+# SPDX-License-Identifier: AGPL-3.0
+
 require 'test_helper'
 require 'rake'
 
@@ -12,7 +16,7 @@ class DeleteOldJobLogsTaskTest < ActiveSupport::TestCase
   end
 
   def run_with_expiry(clean_after)
-    Rails.configuration.clean_job_log_rows_after = clean_after
+    Rails.configuration.Containers["Logging"]["MaxAge"] = clean_after
     Rake::Task[TASK_NAME].reenable
     Rake.application.invoke_task TASK_NAME
   end