Skip to content

Commit 0827a65

Browse files
author
Daniel Carabas
committed
Allow local testing with vagrant bento/ubuntu-18.04 box
1 parent 25c1d4e commit 0827a65

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

spec/acceptance/init_spec.rb

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,13 @@
88
MANIFEST
99

1010
# Run it twice and test for idempotency
11-
expect(apply_manifest(pp).exit_code).not_to eq(1)
12-
expect(apply_manifest(pp).exit_code).not_to eq(1)
1311
idempotent_apply(pp)
1412
end
1513
end
14+
15+
describe 'check pe_databases script directory' do
16+
it 'scripts folder exists' do
17+
file('/opt/puppetlabs/pe_databases/scripts').should be_directory
18+
end
19+
end
1620
end

spec/spec_helper_acceptance_local.rb

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,17 @@
33
require 'singleton'
44
require 'serverspec'
55
require 'puppetlabs_spec_helper/module_spec_helper'
6+
7+
class LitmusHelper
8+
include Singleton
9+
include PuppetLitmus
10+
end
11+
12+
pp = <<-MANIFEST
13+
package { 'crontab':
14+
ensure => installed,
15+
name => 'crontab'
16+
}
17+
MANIFEST
18+
19+
LitmusHelper.instance.apply_manifest(pp)

0 commit comments

Comments
 (0)