diff --git a/hieradata/role/fiberspec.yaml b/hieradata/role/fiberspec.yaml index 4b6c078785..0da65be8d9 100644 --- a/hieradata/role/fiberspec.yaml +++ b/hieradata/role/fiberspec.yaml @@ -2,3 +2,4 @@ classes: - "profile::core::common" - "profile::core::fiberspec" + - "profile::ts::dco" diff --git a/spec/classes/core/fiberspec_spec.rb b/spec/classes/core/fiberspec_spec.rb index fdbc5413ef..4493aa5b53 100644 --- a/spec/classes/core/fiberspec_spec.rb +++ b/spec/classes/core/fiberspec_spec.rb @@ -4,6 +4,8 @@ describe 'profile::core::fiberspec' do on_supported_os.each do |os, os_facts| + next unless os =~ %r{almalinux-9-x86_64} + context "on #{os}" do let(:facts) { os_facts } diff --git a/spec/hosts/roles/fiberspec_spec.rb b/spec/hosts/roles/fiberspec_spec.rb new file mode 100644 index 0000000000..7cff766f30 --- /dev/null +++ b/spec/hosts/roles/fiberspec_spec.rb @@ -0,0 +1,35 @@ +# frozen_string_literal: true + +require 'spec_helper' + +role = 'fiberspec' + +describe "#{role} role" do + on_supported_os.each do |os, os_facts| + next unless os =~ %r{almalinux-9-x86_64} + + context "on #{os}" do + let(:facts) { os_facts } + let(:node_params) do + { + role: role, + site: site, + } + end + + lsst_sites.each do |site| + fqdn = "#{role}.#{site}.lsst.org" + override_facts(os_facts, fqdn: fqdn, networking: { fqdn => fqdn }) + + describe fqdn, :sitepp do + let(:site) { site } + + it { is_expected.to compile.with_all_deps } + + include_examples 'dco' + include_examples 'fiberspec' + end # host + end # lsst_sites + end # on os + end # on_supported_os +end # role