|
2 | 2 |
|
3 | 3 | require 'spec_helper'
|
4 | 4 |
|
| 5 | +# |
| 6 | +# testing cluster/kueyen & cluster/kueyen/variant/r440 |
| 7 | +# |
5 | 8 | describe 'kueyen01.dev.lsst.org', :sitepp do
|
6 | 9 | on_supported_os.each do |os, os_facts|
|
7 | 10 | next unless os =~ %r{almalinux-9-x86_64}
|
|
19 | 22 | end
|
20 | 23 | let(:node_params) do
|
21 | 24 | {
|
22 |
| - role: 'rke', |
| 25 | + role: 'rke2server', |
23 | 26 | site: 'dev',
|
24 | 27 | cluster: 'kueyen',
|
| 28 | + variant: 'r440', |
25 | 29 | }
|
26 | 30 | end
|
27 | 31 |
|
28 | 32 | it { is_expected.to compile.with_all_deps }
|
29 | 33 |
|
30 |
| - include_examples 'docker', docker_version: '24.0.9' |
31 | 34 | include_examples 'baremetal'
|
32 | 35 | include_examples 'ceph cluster'
|
33 |
| - include_context 'with nm interface' |
| 36 | + |
| 37 | + it do |
| 38 | + expect(catalogue.resource('class', 'rke2')[:config]).to include( |
| 39 | + 'node-label' => ['role=storage-node'] |
| 40 | + ) |
| 41 | + end |
34 | 42 |
|
35 | 43 | it do
|
36 | 44 | is_expected.to contain_class('profile::core::sysctl::rp_filter').with_enable(false)
|
|
51 | 59 | end
|
52 | 60 |
|
53 | 61 | it do
|
54 |
| - is_expected.to contain_class('rke').with( |
55 |
| - version: '1.7.6' |
| 62 | + is_expected.to contain_class('rke2').with( |
| 63 | + node_type: 'server', |
| 64 | + release_series: '1.31', |
| 65 | + version: '1.31.8~rke2r1' |
56 | 66 | )
|
57 | 67 | end
|
58 | 68 |
|
59 |
| - it do |
60 |
| - is_expected.to contain_class('cni::plugins').with( |
61 |
| - version: '1.2.0', |
62 |
| - checksum: 'f3a841324845ca6bf0d4091b4fc7f97e18a623172158b72fc3fdcdb9d42d2d37', |
63 |
| - enable: %w[macvlan static] |
64 |
| - ) |
65 |
| - end |
| 69 | + it { is_expected.to contain_class('cni::plugins::dhcp::service') } |
66 | 70 |
|
67 |
| - it { is_expected.to contain_class('cni::plugins::dhcp') } |
68 |
| - |
69 |
| - it { is_expected.to contain_class('profile::core::ospl').with_enable_rundir(true) } |
| 71 | + include_context 'with nm interface' |
70 | 72 |
|
71 | 73 | it { is_expected.to have_nm__connection_resource_count(6) }
|
72 | 74 |
|
73 | 75 | %w[
|
74 |
| - em1 |
75 |
| - em2 |
| 76 | + eno1 |
| 77 | + eno2 |
76 | 78 | ens2f0
|
77 | 79 | ].each do |i|
|
78 | 80 | context "with #{i}" do
|
|
0 commit comments