This repository was archived by the owner on Nov 24, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +22
-14
lines changed Expand file tree Collapse file tree 1 file changed +22
-14
lines changed Original file line number Diff line number Diff line change 11
11
} ,
12
12
}
13
13
end
14
-
15
- it { is_expected . to compile . and_raise_error ( /Either 'org_name' or 'enterprise_name' is required to create runner instances/ ) }
16
14
17
- let ( :params ) do
18
- {
19
- 'org_name' => 'github_org' ,
20
- 'instances' => {
21
- 'first_runner' => {
22
- 'labels' => [ 'test_label1' , 'test_label2' ] ,
23
- 'repo_name' => 'test_repo' ,
24
- } ,
25
- } ,
26
- }
15
+ context 'is expected compile and raise error' do
16
+ it do
17
+ is_expected . to compile . and_raise_error ( %r{Either 'org_name' or 'enterprise_name' is required to create runner instances} )
18
+ end
27
19
end
28
20
29
- it { is_expected . to compile . with_all_deps }
30
- it { is_expected . to contain_class ( 'github_actions_runner' ) }
21
+ context 'is expected compile' do
22
+ let ( :params ) do
23
+ super ( ) . merge (
24
+ 'org_name' => 'github_org' ,
25
+ 'instances' => {
26
+ 'first_runner' => {
27
+ 'labels' => [ 'test_label1' , 'test_label2' ] ,
28
+ 'repo_name' => 'test_repo' ,
29
+ } ,
30
+ } ,
31
+ )
32
+ end
33
+
34
+ it do
35
+ it { is_expected . to compile . with_all_deps }
36
+ it { is_expected . to contain_class ( 'github_actions_runner' ) }
37
+ end
38
+ end
31
39
32
40
context 'is expected to create a github_actions_runner root directory' do
33
41
it do
You can’t perform that action at this time.
0 commit comments