Skip to content

Commit 53050ed

Browse files
authored
Merge pull request #38 from GabrielNagy/MODULES-10953/update-metadata
2 parents 908abb6 + 0222b18 commit 53050ed

File tree

7 files changed

+92
-129
lines changed

7 files changed

+92
-129
lines changed

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ end
5151

5252
group :release do
5353
gem "puppet-blacksmith", '~> 3.4', require: false
54-
gem "pdk", platforms: [:ruby]
54+
gem "pdk", '~> 2.0', platforms: [:ruby]
5555
end
5656

5757
puppet_version = ENV['PUPPET_GEM_VERSION']

metadata.json

Lines changed: 6 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -12,55 +12,25 @@
1212
],
1313
"operatingsystem_support": [
1414
{
15-
"operatingsystem": "CentOS",
16-
"operatingsystemrelease": [
17-
"5",
18-
"6",
19-
"7",
20-
"8"
21-
]
15+
"operatingsystem": "CentOS"
2216
},
2317
{
24-
"operatingsystem": "OracleLinux",
25-
"operatingsystemrelease": [
26-
"5",
27-
"6",
28-
"7"
29-
]
18+
"operatingsystem": "OracleLinux"
3019
},
3120
{
32-
"operatingsystem": "RedHat",
33-
"operatingsystemrelease": [
34-
"5",
35-
"6",
36-
"7",
37-
"8"
38-
]
21+
"operatingsystem": "RedHat"
3922
},
4023
{
41-
"operatingsystem": "Scientific",
42-
"operatingsystemrelease": [
43-
"5",
44-
"6",
45-
"7"
46-
]
24+
"operatingsystem": "Scientific"
4725
},
4826
{
49-
"operatingsystem": "Fedora",
50-
"operatingsystemrelease": [
51-
"26",
52-
"27",
53-
"28",
54-
"29",
55-
"30",
56-
"31"
57-
]
27+
"operatingsystem": "Fedora"
5828
}
5929
],
6030
"requirements": [
6131
{
6232
"name": "puppet",
63-
"version_requirement": ">= 4.7.0 < 7.0.0"
33+
"version_requirement": ">= 6.0.0 < 8.0.0"
6434
}
6535
],
6636
"pdk-version": "1.14.0",

spec/lib/puppet_spec/compiler.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def apply_compiled_manifest(manifest, prioritizer = Puppet::Graph::SequentialPri
1919
if Puppet.version.to_f < 5.0
2020
args << 'apply'
2121
# rubocop:disable RSpec/AnyInstance
22-
Puppet::Transaction::Persistence.any_instance.stubs(:save)
22+
allow_any_instance_of(Puppet::Transaction::Persistence).to receive(:save)
2323
# rubocop:enable RSpec/AnyInstance
2424
end
2525
catalog = compile_to_ral(manifest)
@@ -37,7 +37,7 @@ def apply_compiled_manifest(manifest, prioritizer = Puppet::Graph::SequentialPri
3737

3838
def apply_with_error_check(manifest)
3939
apply_compiled_manifest(manifest) do |res|
40-
res.expects(:err).never
40+
expect(res).not_to receive(:err)
4141
end
4242
end
4343
end

spec/lib/puppet_spec/files.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def self.cleanup
1111
until @global_tempfiles.empty?
1212
path = @global_tempfiles.pop
1313
begin
14-
Dir.unstub(:entries)
14+
allow(Dir).to receive(:entries).and_call_original
1515
FileUtils.rm_rf path, secure: true
1616
end
1717
end

spec/spec_helper.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
end
3232

3333
RSpec.configure do |c|
34+
c.mock_with :rspec
3435
c.default_facts = default_facts
3536
c.before :each do
3637
# set to strictest setting for testing

0 commit comments

Comments
 (0)