Commit 5a6bed0
committed
(gh-19) Track pdb integration in acceptance suite
Because some older platforms may not have postgresql packages,
we may not be able to setup openvoxdb for testing alongside
openvox-server, and the pre-suite step 95_install_pdb skips if
postgresql is not available.
Two later tests, 00_smoke/puppetdb_integration and catalog/v4_catalog
are affected by this. The former made the same test as 95_install_pdb to
determine whether to skip, and the later just checked for existence of
pdb configuration files as evidence it should execute with pdb
integration. This would work because the install_pdb step formerly gated
withether a pdb package was installed at all.
Since the suite now expects to be able to run with openvoxdb installed
before Beaker executes, I'm changing how this works. The
pre-suite/foss/95_install_pdb still gates whether pdb is configured
based on postgresql gems, but now marks a class instance variable to
indicate that pdb integration should be expected by later tests.
Both the puppetdb_integration and the v4_catalog tests now use the
test_with_pdb? method to check whether they should skip/run with pdb
integration.1 parent be39892 commit 5a6bed0
4 files changed
Lines changed: 27 additions & 9 deletions
File tree
- acceptance
- lib
- suites
- pre_suite/foss
- tests
- 00_smoke
- catalog
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
74 | 91 | | |
75 | 92 | | |
76 | 93 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
2 | 3 | | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
3 | 7 | | |
4 | | - | |
5 | 8 | | |
6 | 9 | | |
7 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | | - | |
20 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
| 35 | + | |
39 | 36 | | |
40 | 37 | | |
41 | 38 | | |
| |||
0 commit comments