Skip to content

Commit e367838

Browse files
committed
(PUP-9747) Reenable resource api tests, test against hotfix branch
1 parent fa5a7d9 commit e367838

File tree

5 files changed

+24
-2
lines changed

5 files changed

+24
-2
lines changed

Gemfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ gem "puppetlabs_spec_helper",
2121
git: 'https://github.com/puppetlabs/puppetlabs_spec_helper.git',
2222
ref: '96a633ebf1a1e88062bf726d4271a3251baf082e'
2323

24+
gem "puppet-resource_api",
25+
git: 'https://github.com/DavidS/puppet-resource_api.git',
26+
ref: 'pup-9747-bolt-attribute-filtering'
27+
28+
2429
group(:test) do
2530
gem "beaker-hostgenerator"
2631
gem "gettext-setup", '~> 0.28', require: false
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"puppet_task_version": 1,
3+
"supports_noop": false,
4+
"description": "A short description of this task",
5+
"parameters": {
6+
}
7+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash
2+
3+
cd /tmp
4+
5+
git clone -b pup-9747-bolt-attribute-filtering https://github.com/DavidS/puppet-resource_api.git
6+
7+
cd puppet-resource_api
8+
9+
/opt/puppetlabs/puppet/bin/gem build puppet-resource_api
10+
11+
/opt/puppetlabs/puppet/bin/gem install puppet-resource_api*gem

spec/integration/device_spec.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ def agent_version_inventory
6868
end
6969

7070
it 'runs a plan that collects facts' do
71-
pending "puppet-resource_api 1.8.3 has incorrect validation that causes these tests to fail"
7271
with_tempfile_containing('inventory', YAML.dump(device_inventory), '.yaml') do |inv|
7372
results = run_cli_json(%W[plan run device_test::facts --nodes device_targets
7473
--modulepath #{modulepath} --inventoryfile #{inv.path}])
@@ -82,7 +81,6 @@ def agent_version_inventory
8281
end
8382

8483
it 'runs a plan that applies resources' do
85-
pending "puppet-resource_api 1.8.3 has incorrect validation that causes these tests to fail"
8684
with_tempfile_containing('inventory', YAML.dump(device_inventory), '.yaml') do |inv|
8785
results = run_cli_json(%W[plan run device_test::set_a_val
8886
--nodes device_targets

spec/lib/bolt_spec/puppet_agent.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ def install(target, collection: nil, inventory: nil)
3939
task_params = collection ? { 'collection' => collection } : {}
4040

4141
result = run_task('puppet_agent::install', target, task_params, config: config, inventory: inventory)
42+
result = run_task('device_test::rsapigem', target, {}, config: config, inventory: inventory)
4243

4344
expect(result.count).to eq(1)
4445
expect(result[0]).to include('status' => 'success')

0 commit comments

Comments
 (0)