Sha256: 4448cfa7fa05cd2bd5e67b0bc4f875e262792db5b45c24da769c7135f1319d55
Contents?: true
Size: 606 Bytes
Versions: 4
Compression:
Stored size: 606 Bytes
Contents
require 'test_helper' class ForemanSetupProvisionerTest < ActiveSupport::TestCase test '#interfaces returns hash' do prov = FactoryBot.create(:setup_provisioner, :step1) assert_equal({'eth0' => {:ip => '192.168.1.20', :mask => '255.255.255.0', :network => '192.168.1.0', :cidr => '192.168.1.0/24'}}, prov.interfaces) end test '#provision_interface_data returns hash' do prov = FactoryBot.create(:setup_provisioner, :step1) assert_equal({:ip => '192.168.1.20', :mask => '255.255.255.0', :network => '192.168.1.0', :cidr => '192.168.1.0/24'}, prov.provision_interface_data) end end
Version data entries
4 entries across 4 versions & 1 rubygems