Skip to content

Commit

Permalink
(spec) add network tests to support EL9 on lsstcam-fb02.cp
Browse files Browse the repository at this point in the history
  • Loading branch information
dtapiacl committed Jun 11, 2024
1 parent f7ad0cd commit 9a06181
Showing 1 changed file with 58 additions and 0 deletions.
58 changes: 58 additions & 0 deletions spec/hosts/nodes/lsstcam-fb02.cp.lsst.org_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# frozen_string_literal: true

require 'spec_helper'

describe 'lsstcam-fb02.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
override_facts(os_facts,
fqdn: 'lsstcam-fb02.cp.lsst.org',
is_virtual: false,
virtual: 'physical',
dmi: {
'product' => {
'name' => 'VersaLogic Corporation',
},
})
end
let(:node_params) do
{
role: 'ccs-hcu',
site: 'cp',
cluster: 'lsstcam-ccs',
}
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(2) }

%w[
enp3s0
].each do |i|
context "with #{i}" do
let(:interface) { i }

it_behaves_like 'nm disabled interface'
end
end

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

it_behaves_like 'nm enabled interface'
it_behaves_like 'nm ethernet interface'
it_behaves_like 'nm manual interface'
it { expect(nm_keyfile['ipv4']['address1']).to eq('139.229.175.99/26,139.229.175.126') }
it { expect(nm_keyfile['ipv4']['dns']).to eq('139.229.160.53;139.229.160.54;139.229.160.55;') }
it { expect(nm_keyfile['ipv4']['dns-search']).to eq('cp.lsst.org;') }
end
end # on os
end # on_supported_os
end

0 comments on commit 9a06181

Please sign in to comment.