Commit 751b8c7
committed
Clean up SELinux handling in acceptance testing.
This attempts to unify SELinux handling in the tests. It moves the
package installation to the acceptance spec helper to reduce
duplication. It then makes the set_apache_defaults line idempotent and
restorecon_apache correctly chained. This works around [PUP-10548] which
is that Puppet doesn't reload file contexts within a run. That means it
must first create the file(s) and then run restorecon to get correct
contexts.
[PUP-10548]: https://tickets.puppetlabs.com/browse/PUP-105481 parent 3d81219 commit 751b8c7
File tree
4 files changed
+42
-44
lines changed- spec
- acceptance
4 files changed
+42
-44
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
428 | 428 | | |
429 | 429 | | |
430 | 430 | | |
431 | | - | |
432 | | - | |
433 | | - | |
434 | | - | |
435 | | - | |
436 | | - | |
437 | | - | |
| 431 | + | |
438 | 432 | | |
439 | | - | |
| 433 | + | |
| 434 | + | |
440 | 435 | | |
441 | | - | |
442 | 436 | | |
443 | 437 | | |
444 | | - | |
445 | | - | |
446 | | - | |
447 | | - | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
448 | 444 | | |
449 | 445 | | |
450 | | - | |
451 | | - | |
| 446 | + | |
| 447 | + | |
452 | 448 | | |
453 | 449 | | |
454 | 450 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
| 44 | + | |
51 | 45 | | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
56 | 49 | | |
57 | 50 | | |
58 | 51 | | |
59 | 52 | | |
60 | 53 | | |
61 | | - | |
| 54 | + | |
62 | 55 | | |
63 | 56 | | |
64 | 57 | | |
65 | 58 | | |
66 | | - | |
67 | | - | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
68 | 62 | | |
69 | 63 | | |
70 | 64 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1171 | 1171 | | |
1172 | 1172 | | |
1173 | 1173 | | |
1174 | | - | |
1175 | | - | |
1176 | | - | |
1177 | | - | |
1178 | | - | |
1179 | | - | |
1180 | | - | |
| 1174 | + | |
1181 | 1175 | | |
1182 | | - | |
| 1176 | + | |
| 1177 | + | |
1183 | 1178 | | |
1184 | | - | |
1185 | 1179 | | |
1186 | 1180 | | |
1187 | 1181 | | |
1188 | 1182 | | |
1189 | | - | |
1190 | | - | |
| 1183 | + | |
| 1184 | + | |
| 1185 | + | |
| 1186 | + | |
1191 | 1187 | | |
1192 | 1188 | | |
1193 | 1189 | | |
1194 | 1190 | | |
1195 | | - | |
| 1191 | + | |
1196 | 1192 | | |
1197 | 1193 | | |
1198 | | - | |
| 1194 | + | |
1199 | 1195 | | |
1200 | 1196 | | |
1201 | 1197 | | |
1202 | | - | |
1203 | | - | |
| 1198 | + | |
| 1199 | + | |
| 1200 | + | |
1204 | 1201 | | |
1205 | 1202 | | |
1206 | 1203 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
21 | 32 | | |
22 | 33 | | |
23 | 34 | | |
| |||
0 commit comments