From 8982a47fb82a65b33fd33dc8d0ffc12140ecedee Mon Sep 17 00:00:00 2001 From: Tim Meusel Date: Thu, 20 Jan 2022 14:05:04 +0100 Subject: [PATCH] Enable basic acceptance test --- spec/acceptance/requirements_spec.rb | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 spec/acceptance/requirements_spec.rb diff --git a/spec/acceptance/requirements_spec.rb b/spec/acceptance/requirements_spec.rb new file mode 100644 index 0000000..420c239 --- /dev/null +++ b/spec/acceptance/requirements_spec.rb @@ -0,0 +1,21 @@ +# frozen_string_literal: true + +require 'spec_helper_acceptance' + +describe 'posix_acl' do + context 'with default behaviour' do + let(:pp) do + 'include posix_acl::requirements' + end + + it 'works idempotently with no errors' do + apply_manifest(pp, catch_failures: true) + apply_manifest(pp, catch_changes: true) + end + + describe package('acl') do + it { is_expected.to be_installed } + it { is_expected.to be_running } + end + end +end