projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
15306: Adds integration tests with query string & form encoded params.
[arvados.git]
/
services
/
api
/
test
/
unit
/
log_test.rb
diff --git
a/services/api/test/unit/log_test.rb
b/services/api/test/unit/log_test.rb
index 5a78f25235047f485a5416aefe818dec6207bd85..8a878ada91a9b9f0afe6da60f60036eaca3450e6 100644
(file)
--- a/
services/api/test/unit/log_test.rb
+++ b/
services/api/test/unit/log_test.rb
@@
-282,7
+282,7
@@
class LogTest < ActiveSupport::TestCase
end
test "non-empty configuration.unlogged_attributes" do
end
test "non-empty configuration.unlogged_attributes" do
- Rails.configuration.
unlogged_a
ttributes = ["manifest_text"]
+ Rails.configuration.
AuditLogs.UnloggedA
ttributes = ["manifest_text"]
txt = ". acbd18db4cc2f85cedef654fccc4a4d8+3 0:3:foo\n"
act_as_system_user do
txt = ". acbd18db4cc2f85cedef654fccc4a4d8+3 0:3:foo\n"
act_as_system_user do
@@
-297,7
+297,7
@@
class LogTest < ActiveSupport::TestCase
end
test "empty configuration.unlogged_attributes" do
end
test "empty configuration.unlogged_attributes" do
- Rails.configuration.
unlogged_a
ttributes = []
+ Rails.configuration.
AuditLogs.UnloggedA
ttributes = []
txt = ". acbd18db4cc2f85cedef654fccc4a4d8+3 0:3:foo\n"
act_as_system_user do
txt = ". acbd18db4cc2f85cedef654fccc4a4d8+3 0:3:foo\n"
act_as_system_user do
@@
-332,8
+332,8
@@
class LogTest < ActiveSupport::TestCase
test 'retain old audit logs with default settings' do
assert_no_logs_deleted do
AuditLogs.delete_old(
test 'retain old audit logs with default settings' do
assert_no_logs_deleted do
AuditLogs.delete_old(
- max_age: Rails.configuration.
max_audit_log_a
ge,
- max_batch: Rails.configuration.
max_audit_log_delete_b
atch)
+ max_age: Rails.configuration.
AuditLogs.MaxA
ge,
+ max_batch: Rails.configuration.
AuditLogs.MaxDeleteB
atch)
end
end
end
end
@@
-362,8
+362,8
@@
class LogTest < ActiveSupport::TestCase
test 'delete old audit logs in thread' do
begin
test 'delete old audit logs in thread' do
begin
- Rails.configuration.
max_audit_log_a
ge = 20
- Rails.configuration.
max_audit_log_delete_b
atch = 100000
+ Rails.configuration.
AuditLogs.MaxA
ge = 20
+ Rails.configuration.
AuditLogs.MaxDeleteB
atch = 100000
Rails.cache.delete 'AuditLogs'
initial_log_count = Log.unscoped.all.count + 1
act_as_system_user do
Rails.cache.delete 'AuditLogs'
initial_log_count = Log.unscoped.all.count + 1
act_as_system_user do