Sha256: 8f911edacc05c2cd292c452bb1cdfb4a24874305a1270d2a363e2ef38a8ffeb0
Contents?: true
Size: 753 Bytes
Versions: 7
Compression:
Stored size: 753 Bytes
Contents
require 'test_plugin_helper' class ForemanBootdisk::Api::V2::SubnetDisksControllerTest < ActionController::TestCase setup :setup_bootdisk describe "#subnet_host" do setup :setup_org_loc setup :setup_subnet setup :setup_host test "should generate subnet generic host image" do ForemanBootdisk::ISOGenerator.expects(:generate).with(has_entry(:ipxe => regexp_matches(/disk generic host template/))).yields("temp ISO") ForemanBootdisk::Renderer.any_instance.stubs(:bootdisk_chain_url).yields("http://smart-proxy.lan") File.expects(:read).with("temp ISO").returns("ISO image") get :subnet, {:id => @host.subnet.id} assert_response :success assert_equal "ISO image", @response.body end end end
Version data entries
7 entries across 7 versions & 1 rubygems