Ok this is weird, some of our discovery tests were failing and after long investigation I was able to identify this:
require 'test_helper'
class AlphanumericValidatorTest < ActiveSupport::TestCase
test "validation passes on alphanumeric input" do
(1..500).each do
@hostgroup = FactoryBot.create(:hostgroup, :with_rootpass)
puts @hostgroup.name
assert_match /\$\d+\$.*/, @hostgroup.root_pass
end
end
end
When you run this test, it will fail after several rounds (for me it’s always hostgroup7). Root password is set to “*0” and I have no idea why. Any ideas?