Skip to content

Commit

Permalink
fix(CI): eliminate randomness in rule reference factories for rswag
Browse files Browse the repository at this point in the history
  • Loading branch information
skateman committed Aug 22, 2024
1 parent de1fb85 commit 330686c
Show file tree
Hide file tree
Showing 2 changed files with 4,815 additions and 4,402 deletions.
2 changes: 1 addition & 1 deletion spec/factories/rule.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
severity { %w[low medium high].sample }
precedence { Faker::Number.between(from: 1, to: 9999) }
identifier { { label: Faker::Fantasy::Tolkien.character, href: Faker::Internet.url } }
references { rand(0..5).times.map { { label: Faker::Fantasy::Tolkien.character, href: Faker::Internet.url } } }
references { 5.times.map { { label: Faker::Fantasy::Tolkien.character, href: Faker::Internet.url } } }
remediation_available { false }
upstream { false }

Expand Down
Loading

0 comments on commit 330686c

Please sign in to comment.