Sha256: fc74ddfb8df5c7757d3687731ef6956fb02e87bb3f36d7937c4a55728cff78d8
Contents?: true
Size: 822 Bytes
Versions: 4
Compression:
Stored size: 822 Bytes
Contents
require 'test_plugin_helper' class ForemanBootdisk::Api::V2::SubnetDisksControllerTest < ActionController::TestCase include ForemanBootdiskTestHelper setup :setup_bootdisk describe "#subnet_host" do setup :setup_referer 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, params: {:id => @host.subnet.id} assert_response :success assert_equal "ISO image", @response.body end end end
Version data entries
4 entries across 4 versions & 1 rubygems