Commit a2373e5
authored
test: cleanup leftover logs from db management E2Es (cloudnative-pg#7217)
Closes cloudnative-pg#6411
Usually, at the end of a green test, `cleanupNamespace()` will take care
of deleting the testing logs captured and issuing an `objects.Delete`
request (we do not actually wait for the namespace to be gone though).
This Database management E2E is an exception to the usual way we
create/destroy testing namespaces.
Here we want to test that Database object finalizers do not prevent the
deletion of a namespace, hence we need to ensure the namespace is
properly gone before declaring that the test succeded. After doing that,
we now cleanup the testing logs.
Signed-off-by: Niccolò Fei <niccolo.fei@enterprisedb.com>1 parent 19e0a64 commit a2373e5
File tree
2 files changed
+18
-6
lines changed- tests
- e2e
- utils/namespaces
2 files changed
+18
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
226 | 226 | | |
227 | 227 | | |
228 | 228 | | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
229 | 232 | | |
230 | 233 | | |
231 | 234 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
67 | 79 | | |
68 | 80 | | |
69 | 81 | | |
| |||
79 | 91 | | |
80 | 92 | | |
81 | 93 | | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
88 | 97 | | |
89 | 98 | | |
90 | 99 | | |
| |||
0 commit comments