Skip to content

Commit

Permalink
(node/comcam-dc01.cp) add nfs mount and tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dtapiacl committed Nov 15, 2024
1 parent 366df55 commit 3ee600f
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
4 changes: 4 additions & 0 deletions hieradata/node/comcam-dc01.cp.lsst.org.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -102,3 +102,7 @@ nfs::client_mounts:
share: "/ccs-data"
server: "comcam-fp01.cp.lsst.org"
atboot: true
/repo:
share: "comcam"
server: "nfs3.cp.lsst.org"
atboot: true
16 changes: 16 additions & 0 deletions spec/hosts/nodes/comcam-dc01.cp.lsst.org_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,22 @@
it_behaves_like 'nm dhcp interface'
it_behaves_like 'nm bridge interface'
end

it do
is_expected.to contain_nfs__client__mount('/net/ccs-data').with(
share: '/ccs-data',
server: 'comcam-fp01.cp.lsst.org',
atboot: true
)
end

it do

Check failure on line 97 in spec/hosts/nodes/comcam-dc01.cp.lsst.org_spec.rb

View workflow job for this annotation

GitHub Actions / rake_checks

comcam-dc01.cp.lsst.org on almalinux-9-x86_64 is expected to contain Nfs::Client::Mount[/repo] with share => "/export/comcam", server => "nfs3.cp.lsst.org" and atboot => true Failure/Error: is_expected.to contain_nfs__client__mount('/repo').with( share: '/export/comcam', server: 'nfs3.cp.lsst.org', atboot: true ) expected that the catalogue would contain Nfs::Client::Mount[/repo] with share set to "/export/comcam" but it is set to "comcam"
is_expected.to contain_nfs__client__mount('/repo').with(
share: '/export/comcam',
server: 'nfs3.cp.lsst.org',
atboot: true
)
end
end
end # on os
end # on_supported_os

0 comments on commit 3ee600f

Please sign in to comment.