Sha256: 23939b8217ca41c678bc7f1d0c172cc1032f05054c949a8f2405f6c346ed49fe
Contents?: true
Size: 644 Bytes
Versions: 4
Compression:
Stored size: 644 Bytes
Contents
FactoryBot.define do factory :openscap_feature, :class => Feature do name { 'Openscap' } end factory :openscap_proxy, :class => SmartProxy do sequence(:name) { |n| "openscap_proxy#{n}" } sequence(:url) { |n| "https://anywhere#{n}.net:8443" } features { |sp| [sp.association(:openscap_feature)] } end factory :compliance_host, :class => Host::Managed do sequence(:name) { |n| "host#{n}" } sequence(:hostname) { |n| "hostname#{n}" } root_pass { 'xybxa6JUkz63w' } openscap_proxy { SmartProxy.unscoped.with_features('Openscap').first || FactoryBot.create(:openscap_proxy) } policies { [] } end end
Version data entries
4 entries across 4 versions & 1 rubygems