-
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.
(node/observer01.cp.lsst.org) provision host as EL9 & add test
- Loading branch information
Showing
2 changed files
with
58 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,15 @@ | ||
--- | ||
nm::connections: | ||
enp10s0: | ||
content: | ||
connection: | ||
id: "enp10s0" | ||
uuid: "d0b09602-d300-4485-b005-3851181ee549" | ||
type: "ethernet" | ||
interface-name: "enp10s0" | ||
ethernet: {} | ||
ipv4: | ||
method: "auto" | ||
ipv6: | ||
method: "disabled" | ||
proxy: {} |
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,43 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'spec_helper' | ||
|
||
describe 'observer01.cp.lsst.org', :sitepp do | ||
on_supported_os.each do |os, os_facts| | ||
next unless os =~ %r{almalinux-9-x86_64} | ||
|
||
context "on #{os}" do | ||
let(:facts) do | ||
lsst_override_facts(os_facts, | ||
is_virtual: false, | ||
virtual: 'physical', | ||
dmi: { | ||
'product' => { | ||
'name' => 'MS-7E07', | ||
}, | ||
}) | ||
end | ||
let(:node_params) do | ||
{ | ||
role: 'generic', | ||
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(1) } | ||
|
||
context 'with enp10s0' do | ||
let(:interface) { 'enp10s0' } | ||
|
||
it_behaves_like 'nm enabled interface' | ||
it_behaves_like 'nm ethernet interface' | ||
it_behaves_like 'nm dhcp interface' | ||
end | ||
end # on os | ||
end # on_supported_os | ||
end |