Skip to content

Commit

Permalink
(spec) add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dtapiacl committed Nov 15, 2023
1 parent f7d485c commit 8e80041
Showing 1 changed file with 62 additions and 0 deletions.
62 changes: 62 additions & 0 deletions spec/hosts/nodes/auxtel-hcu02.cp.lsst.org_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
# frozen_string_literal: true

require 'spec_helper'

describe 'auxtel-hcu02.cp.lsst.org', :sitepp do
on_supported_os.each do |os, facts|
next if os =~ %r{centos-7-x86_64}

context "on #{os}" do
let(:facts) do
override_facts(facts,
fqdn: 'auxtel-hcu02.cp.lsst.org',
is_virtual: false,
virtual: 'physical',
dmi: {
'product' => {
'name' => 'UNO-1483G-434AE',
},
})
end
let(:node_params) do
{
role: 'atshcu',
site: 'cp',
}
end

it { is_expected.to compile.with_all_deps }

include_examples 'baremetal no bmc'
include_context 'with nm interface'
it { is_expected.to have_nm__connection_resource_count(4) }

context 'with eno1' do
let(:interface) { 'eno1' }

it_behaves_like 'nm enabled interface'
it_behaves_like 'nm dhcp interface'
it_behaves_like 'nm ethernet interface'
end

context 'with enp8s0' do
let(:interface) { 'enp8s0' }

it_behaves_like 'nm disabled interface'
end

context 'with enp7s0' do
let(:interface) { 'enp7s0' }

it_behaves_like 'nm disabled interface'
end

context 'with enp6s0' do
let(:interface) { 'enp6s0' }

it_behaves_like 'nm enabled interface'
it_behaves_like 'nm ethernet interface'
end
end # on os
end # on_supported_os
end

0 comments on commit 8e80041

Please sign in to comment.