Sha256: 14cf7c0b9ebcd2944c3b07ae36ab2a2a0bdafdad4610e6c950c3157401972faa
Contents?: true
Size: 849 Bytes
Versions: 5
Compression:
Stored size: 849 Bytes
Contents
# frozen_string_literal: true 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
5 entries across 5 versions & 1 rubygems