Skip to content

Commit 74fe590

Browse files
committed
Add dokken config and update integration tests
- Add kitchen.dokken.yml using cincproject/cinc Docker image - Update test cookbook to create a directory (matches upstream pattern) - Add directory existence check to integration spec - Update kitchen.yml platforms to ubuntu-24.04 and almalinux-9 - Enable deprecations_as_errors in kitchen.yml Signed-off-by: Lance Albertson <lance@osuosl.org>
1 parent f8fe20f commit 74fe590

4 files changed

Lines changed: 39 additions & 2 deletions

File tree

kitchen.dokken.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
driver:
3+
name: dokken
4+
privileged: true
5+
chef_image: cincproject/cinc
6+
chef_version: latest
7+
8+
provisioner:
9+
name: cinc_infra
10+
product_name: cinc
11+
deprecations_as_errors: true
12+
13+
transport:
14+
name: dokken
15+
16+
platforms:
17+
- name: ubuntu-24.04
18+
driver:
19+
image: dokken/ubuntu-24.04
20+
pid_one_command: /bin/systemd
21+
intermediate_instructions:
22+
- RUN /usr/bin/apt-get update
23+
24+
- name: almalinux-9
25+
driver:
26+
image: dokken/almalinux-9
27+
pid_one_command: /usr/lib/systemd/systemd

kitchen.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,14 @@ provisioner:
77
product_name: cinc
88
product_version: latest
99
channel: stable
10+
deprecations_as_errors: true
1011

1112
verifier:
1213
name: inspec
1314

1415
platforms:
15-
- name: ubuntu-22.04
16+
- name: ubuntu-24.04
17+
- name: almalinux-9
1618

1719
suites:
1820
- name: default
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
log "Hello from Cinc Client!"
1+
dir = windows? ? "c:\\tk_test_directory" : "/tmp/tk_test_directory"
2+
3+
directory dir
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
dir = os.windows? ? "c:\\tk_test_directory" : "/tmp/tk_test_directory"
2+
3+
describe directory(dir) do
4+
it { should exist }
5+
end
6+
17
describe command("cinc-client -v") do
28
its("stdout") { should match(/Cinc Client/) }
39
end

0 commit comments

Comments
 (0)