Skip to content

Commit

Permalink
(spec/node) add el9 network tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dtapiacl committed Jul 22, 2024
1 parent bd5cb76 commit 5b14959
Showing 1 changed file with 62 additions and 0 deletions.
62 changes: 62 additions & 0 deletions spec/hosts/nodes/rucio.ls.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 'rucio.ls.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: 'rucio.ls.lsst.org',
is_virtual: true,
virtual: 'vmware',
dmi: {
'product' => {
'name' => 'VMware7,1',
},
})
end
let(:node_params) do
{
role: 'rucio',
site: 'ls',
}
end

it { is_expected.to compile.with_all_deps }

include_context 'with nm interface'

it { is_expected.to have_nm__connection_resource_count(1) }

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

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.153.160/24,139.229.153.254') }
it { expect(nm_keyfile['ipv4']['dns']).to eq('139.229.135.53;139.229.135.54;139.229.135.55;') }
it { expect(nm_keyfile['ipv4']['dns-search']).to eq('ls.lsst.org;') }
end

it do
is_expected.to contain_nfs__client__mount('/repo/LATISS').with(
share: '/auxtel/repo/LATISS',
server: 'nfs-auxtel.ls.lsst.org',
atboot: true,
)
end

it do
is_expected.to contain_nfs__client__mount('/datasets').with(
share: '/lsstdata',
server: 'nfs-lsstdata.ls.lsst.org',
atboot: true,
)
end
end # on os
end # on_supported_os
end

0 comments on commit 5b14959

Please sign in to comment.