-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
62 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |