Commit d4c9881
committed
Move version check into PreCheck to fix unit tests
Moved the getCloudStackVersion() call from the test function body into the PreCheck
function. This ensures the version check only runs during acceptance tests (when TF_ACC
is set), not during unit tests. Previously, the version check would fail unit tests
when CloudStack environment variables were not set.
This follows the standard pattern where all environment-dependent setup happens in
PreCheck functions, which are only called by the test framework during acceptance tests.1 parent 827c08d commit d4c9881
1 file changed
Lines changed: 10 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | 57 | | |
66 | 58 | | |
67 | 59 | | |
68 | | - | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
69 | 70 | | |
70 | 71 | | |
71 | 72 | | |
| |||
0 commit comments