Skip to content

Commit a725639

Browse files
author
Kevin Paulisse
committed
Add fixtures for validation of resources identified by aliases
1 parent 401a07a commit a725639

4 files changed

Lines changed: 49 additions & 0 deletions

File tree

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
classes:
3+
- test::alias_callers
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
classes:
3+
- test::alias_callers
4+
- test::alias_targets
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
class test::alias_callers {
2+
exec { 'before alias caller':
3+
command => '/bin/true',
4+
before => Exec['before alias target'],
5+
}
6+
7+
exec { 'notify alias caller':
8+
command => '/bin/true',
9+
before => Exec['notify alias target'],
10+
}
11+
12+
exec { 'require alias caller':
13+
command => '/bin/true',
14+
before => Exec['require alias target'],
15+
}
16+
17+
exec { 'subscribe alias caller':
18+
command => '/bin/true',
19+
before => Exec['subscribe alias target'],
20+
}
21+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
class test::alias_targets {
2+
exec { 'the before alias target':
3+
command => '/bin/true',
4+
alias => 'before alias target',
5+
}
6+
7+
exec { 'the notify alias target':
8+
command => '/bin/true',
9+
alias => 'notify alias target',
10+
}
11+
12+
exec { 'the require alias target':
13+
command => '/bin/true',
14+
alias => 'require alias target',
15+
}
16+
17+
exec { 'the subscribe alias target':
18+
command => '/bin/true',
19+
alias => 'subscribe alias target',
20+
}
21+
}

0 commit comments

Comments
 (0)