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

Add basic acceptance tests #16

Merged
merged 2 commits into from
Feb 27, 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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ concurrency:
jobs:
puppet:
name: Puppet
uses: voxpupuli/gha-puppet/.github/workflows/basic.yml@v2
uses: voxpupuli/gha-puppet/.github/workflows/beaker.yml@v2
3 changes: 3 additions & 0 deletions .sync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
spec/spec_helper_acceptance.rb:
unmanaged: false
2 changes: 1 addition & 1 deletion manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
repos => 'main',
key => {
server => $key_server,
id => 'EE727D4449467F0E',
id => '78D6517AB92E22947F577996A0546A43624A8331',
},
}

Expand Down
16 changes: 16 additions & 0 deletions spec/acceptance/basic_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# frozen_string_literal: true

require 'spec_helper_acceptance'

describe 'aptly class' do
context 'default parameters' do
it_behaves_like 'an idempotent resource' do
let(:manifest) do
<<-PUPPET
include apt
include aptly
PUPPET
end
end
end
end
2 changes: 1 addition & 1 deletion spec/classes/init_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
is_expected.to contain_apt__source('aptly').with(
key: {
'server' => 'keyserver.ubuntu.com',
'id' => 'EE727D4449467F0E'
'id' => '78D6517AB92E22947F577996A0546A43624A8331'
}
)
end
Expand Down
10 changes: 10 additions & 0 deletions spec/spec_helper_acceptance.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# frozen_string_literal: true

# Managed by modulesync - DO NOT EDIT
# https://voxpupuli.org/docs/updating-files-managed-with-modulesync/

require 'voxpupuli/acceptance/spec_helper_acceptance'

configure_beaker(modules: :metadata)

Dir['./spec/support/acceptance/**/*.rb'].sort.each { |f| require f }
19 changes: 0 additions & 19 deletions spec/spec_helper_system.rb

This file was deleted.

26 changes: 0 additions & 26 deletions spec/system/basic_spec.rb

This file was deleted.