Sha256: 5190e9e88c00800a217dba0790e4d91af40b7d1701b55bf3c2099275bff0bf04
Contents?: true
Size: 687 Bytes
Versions: 26
Compression:
Stored size: 687 Bytes
Contents
require 'test_plugin_helper' class OpenscapProxyExtensionsTest < ActiveSupport::TestCase setup do @host = FactoryGirl.create(:compliance_host) end test "should return proxy api for openscap" do arf = FactoryGirl.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 = FactoryGirl.create(:arf_report, :host_id => @host.id) assert_raises(Foreman::Exception) { arf.openscap_proxy_api } end end
Version data entries
26 entries across 26 versions & 1 rubygems