Skip to content

Commit 6cd25c2

Browse files
authored
Merge pull request #91 from voxpupuli/add-acceptance-tests
add elastic_stack::repo acceptance test
2 parents 8664033 + e87ea9f commit 6cd25c2

File tree

3 files changed

+21
-1
lines changed

3 files changed

+21
-1
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ concurrency:
1919
jobs:
2020
puppet:
2121
name: Puppet
22-
uses: voxpupuli/gha-puppet/.github/workflows/basic.yml@v3
22+
uses: voxpupuli/gha-puppet/.github/workflows/beaker.yml@v3

spec/acceptance/repo_spec.rb

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# frozen_string_literal: true
2+
3+
require 'spec_helper_acceptance'
4+
5+
describe 'elastic_stack::repo' do
6+
context 'with defaults' do
7+
it_behaves_like 'an idempotent resource' do
8+
let(:manifest) do
9+
<<-PUPPET
10+
class { 'elastic_stack::repo': }
11+
PUPPET
12+
end
13+
end
14+
end
15+
end

spec/spec_helper_acceptance.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# frozen_string_literal: true
2+
3+
require 'voxpupuli/acceptance/spec_helper_acceptance'
4+
5+
configure_beaker(modules: :metadata)

0 commit comments

Comments
 (0)