Skip to content

Commit

Permalink
(roles/rucio_spec.rb) add role tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dtapiacl committed Oct 4, 2024
1 parent ffe4d9e commit 57112a3
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions spec/hosts/roles/rucio_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# frozen_string_literal: true

require 'spec_helper'

role = 'rucio'

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,

Check failure on line 15 in spec/hosts/roles/rucio_spec.rb

View workflow job for this annotation

GitHub Actions / rake_checks

Style/HashSyntax: Omit the hash value. (https://rubystyle.guide#hash-literals)
site: site,

Check failure on line 16 in spec/hosts/roles/rucio_spec.rb

View workflow job for this annotation

GitHub Actions / rake_checks

Style/HashSyntax: Omit the hash value. (https://rubystyle.guide#hash-literals)
}
end

lsst_sites.each do |site|
fqdn = "#{role}.#{site}.lsst.org"
override_facts(os_facts, fqdn: fqdn, networking: { fqdn => fqdn })

Check failure on line 22 in spec/hosts/roles/rucio_spec.rb

View workflow job for this annotation

GitHub Actions / rake_checks

Style/HashSyntax: Omit the hash value. (https://rubystyle.guide#hash-literals)

describe fqdn, :sitepp do
let(:site) { site }

it { is_expected.to compile.with_all_deps }
end # host
end # lsst_sites
end # on os
end # on_supported_os
end # role

0 comments on commit 57112a3

Please sign in to comment.