Sha256: 9e901827b00f7541595715bd35dd0faa702ed74bac76064a826f68f3f0f88838

Contents?: true

Size: 641 Bytes

Versions: 9

Compression:

Stored size: 641 Bytes

Contents

# frozen_string_literal: true

require 'test_plugin_helper'

module Host
  class ManagedTest < ActiveSupport::TestCase
    include ForemanBootdiskTestHelper

    setup do
      User.current = users(:admin)
      setup_bootdisk
    end

    context 'with host' do
      let(:host) { FactoryBot.create(:host, :managed, :with_subnet, build: true) }

      test 'finds the bootdisk_template specified in settings' do
        assert_kind_of ProvisioningTemplate, host.bootdisk_template
      end

      test 'renders the host bootdisk template' do
        assert_includes host.bootdisk_template_render, 'loop_success'
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
foreman_bootdisk-18.1.0 test/models/host/managed_test.rb
foreman_bootdisk-18.0.0 test/models/host/managed_test.rb
foreman_bootdisk-17.1.0 test/models/host/managed_test.rb
foreman_bootdisk-17.0.2 test/models/host/managed_test.rb
foreman_bootdisk-16.1.0 test/models/host/managed_test.rb
foreman_bootdisk-16.0.0 test/models/host/managed_test.rb
foreman_bootdisk-15.1.0 test/models/host/managed_test.rb
foreman_bootdisk-15.0.0 test/models/host/managed_test.rb
foreman_bootdisk-14.0.0 test/models/host/managed_test.rb