Merge commit '3b735dd9330e0989f51a76771c3303031154154e' into 21158-wf-page-list
[arvados.git] / services / api / test / helpers / container_test_helper.rb
1 # Copyright (C) The Arvados Authors. All rights reserved.
2 #
3 # SPDX-License-Identifier: AGPL-3.0
4
5 module ContainerTestHelper
6   def secret_string
7     'UNGU3554BL3'
8   end
9
10   def assert_no_secrets_logged
11     Log.all.map(&:properties).each do |props|
12       refute_match /secret\/6x9|#{secret_string}/, SafeJSON.dump(props)
13     end
14   end
15 end