Stub fixture puppet repo
This commit is contained in:
Родитель
0be32abe2f
Коммит
50da9f51d3
|
@ -0,0 +1,10 @@
|
|||
---
|
||||
classes:
|
||||
- test::before_callers
|
||||
- test::before_targets
|
||||
- test::notify_callers
|
||||
- test::notify_targets
|
||||
- test::require_callers
|
||||
- test::require_targets
|
||||
- test::subscribe_callers
|
||||
- test::subscribe_targets
|
|
@ -0,0 +1,6 @@
|
|||
class test::before_callers {
|
||||
exec { 'before caller':
|
||||
command => '/bin/true',
|
||||
before => Exec['before target'],
|
||||
}
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
class test::before_targets {
|
||||
exec { 'before target':
|
||||
command => '/bin/true',
|
||||
}
|
||||
}
|
|
@ -4,21 +4,4 @@ class test {
|
|||
file { '/tmp/test-main':
|
||||
content => 'it works',
|
||||
}
|
||||
|
||||
# Targets for require, before, subscribe, notify
|
||||
exec { 'target 1':
|
||||
command => '/bin/true',
|
||||
}
|
||||
|
||||
exec { 'target 2':
|
||||
command => '/bin/true',
|
||||
}
|
||||
|
||||
exec { 'target 3':
|
||||
command => '/bin/true',
|
||||
}
|
||||
|
||||
exec { 'target 4':
|
||||
command => '/bin/true',
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
class test::notify_callers {
|
||||
exec { 'notify caller':
|
||||
command => '/bin/true',
|
||||
notify => Exec['notify target'],
|
||||
}
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
class test::notify_targets {
|
||||
exec { 'notify target':
|
||||
command => '/bin/true',
|
||||
}
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
class test::require_callers {
|
||||
exec { 'require caller':
|
||||
command => '/bin/true',
|
||||
require => Exec['require target'],
|
||||
}
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
class test::require_targets {
|
||||
exec { 'require target':
|
||||
command => '/bin/true',
|
||||
}
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
class test::subscribe_callers {
|
||||
exec { 'subscribe caller':
|
||||
command => '/bin/true',
|
||||
subscribe => Exec['subscribe target'],
|
||||
}
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
class test::subscribe_targets {
|
||||
exec { 'subscribe target':
|
||||
command => '/bin/true',
|
||||
}
|
||||
}
|
|
@ -41,7 +41,16 @@ end
|
|||
|
||||
describe 'validation of references' do
|
||||
context 'with valid catalog' do
|
||||
it 'should not throw error' do
|
||||
before(:all) do
|
||||
@result = OctocatalogDiff::Spec.reference_validation_catalog('all', %w(before require subscribe notify))
|
||||
end
|
||||
|
||||
it 'should succeed' do
|
||||
expect(@result.exitcode).to eq(2)
|
||||
end
|
||||
|
||||
it 'should not raise any exceptions' do
|
||||
expect(@result.exception).to be_nil, OctocatalogDiff::Integration.format_exception(@result)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче