Skip to content
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
- {puppet_version: '8', ruby: 'jruby-9.4.2.0'}
env:
PUPPET_GEM_VERSION: ~> ${{ matrix.cfg.puppet_version }}
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
steps:
- name: Checkout current PR
uses: actions/checkout@v4
Expand Down
8 changes: 4 additions & 4 deletions spec/acceptance/get_calls_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@
stdout_str, _status = Open3.capture2e("puppet apply #{common_args} -e \"test_get_calls_basic { foo: } test_get_calls_basic { bar: }\"")
expect(stdout_str).to match(/Notice: test_get_calls_basic: Provider get called 1 times/)
expect(stdout_str).not_to match(/Notice: test_get_calls_basic: Provider get called 2 times/)
expect(stdout_str).not_to match(/Creating/)
expect(stdout_str).not_to match(/\]: Creating/)
end

it 'calls get 1 time with resource purging' do
stdout_str, _status = Open3.capture2e("puppet apply #{common_args} -e \"test_get_calls_basic { foo: } test_get_calls_basic { bar: } resources { test_get_calls_basic: purge => true }\"")
expect(stdout_str).to match(/Notice: test_get_calls_basic: Provider get called 1 times/)
expect(stdout_str).not_to match(/Notice: test_get_calls_basic: Provider get called 2 times/)
expect(stdout_str).not_to match(/Creating/)
expect(stdout_str).not_to match(/\]: Creating/)
end
end

Expand All @@ -46,14 +46,14 @@
expect(stdout_str).to match(/Notice: test_get_calls_sgf: Provider get called 1 times/)
expect(stdout_str).to match(/Notice: test_get_calls_sgf: Provider get called 2 times/)
expect(stdout_str).not_to match(/Notice: test_get_calls_sgf: Provider get called 3 times/)
expect(stdout_str).not_to match(/Creating/)
expect(stdout_str).not_to match(/\]: Creating/)
end

it 'calls get 1 time when resource purging' do
stdout_str, _status = Open3.capture2e("puppet apply #{common_args} -e \"test_get_calls_sgf { foo: } test_get_calls_sgf { bar: } resources { test_get_calls_sgf: purge => true }\"")
expect(stdout_str).to match(/Notice: test_get_calls_sgf: Provider get called 1 times/)
expect(stdout_str).not_to match(/Notice: test_get_calls_sgf: Provider get called 2 times/)
expect(stdout_str).not_to match(/Creating/)
expect(stdout_str).not_to match(/\]: Creating/)
end
end
end
Loading