Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(role/fiberspec) add dco class to fiberspec role #1138

Merged
merged 3 commits into from
May 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions hieradata/role/fiberspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
classes:
- "profile::core::common"
- "profile::core::fiberspec"
- "profile::ts::dco"
2 changes: 2 additions & 0 deletions spec/classes/core/fiberspec_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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 }

Expand Down
35 changes: 35 additions & 0 deletions spec/hosts/roles/fiberspec_spec.rb
Original file line number Diff line number Diff line change
@@ -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'
dtapiacl marked this conversation as resolved.
Show resolved Hide resolved
include_examples 'fiberspec'
end # host
end # lsst_sites
end # on os
end # on_supported_os
end # role
Loading