Skip to content

Commit

Permalink
(spec/flat-fiberspecred.cp) add EL9 network tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dtapiacl committed Oct 22, 2024
1 parent d916337 commit 151d4d9
Showing 1 changed file with 59 additions and 0 deletions.
59 changes: 59 additions & 0 deletions spec/hosts/nodes/flat-fiberspecred.cp.lsst.org_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# frozen_string_literal: true

require 'spec_helper'

describe 'flat-fiberspecred.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' => 'CBxx63',
},
})
end
let(:node_params) do
{
role: 'fiberspec',
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(3) }

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

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

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

it_behaves_like 'nm enabled interface'
it_behaves_like 'nm ethernet interface'
it_behaves_like 'nm bridge slave interface', master: 'dds'
end

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

it_behaves_like 'nm enabled interface'
it_behaves_like 'nm bridge interface'
it_behaves_like 'nm manual interface'
it { expect(nm_keyfile['ipv4']['address1']).to eq('139.229.170.157/24') }
end
end # on os
end # on_supported_os
end

0 comments on commit 151d4d9

Please sign in to comment.