Sha256: 2b671cc78c9023003cc35e86b163f20b3330d1dd5b1501905b3e703444531dac
Contents?: true
Size: 681 Bytes
Versions: 76
Compression:
Stored size: 681 Bytes
Contents
require 'test_plugin_helper' class OpenscapProxyExtensionsTest < ActiveSupport::TestCase setup do @host = FactoryBot.create(:compliance_host) end test "should return proxy api for openscap" do arf = FactoryBot.create(:arf_report, :host_id => @host.id, :openscap_proxy => @host.openscap_proxy) api = arf.openscap_proxy_api assert_equal (@host.openscap_proxy.url + "/compliance/"), api.url end test "should raise exception when no openscap proxy asociated" do arf = FactoryBot.create(:arf_report, :host_id => @host.id) assert_raises(Foreman::Exception) { arf.openscap_proxy_api } end end
Version data entries
76 entries across 76 versions & 1 rubygems