Commit 556f8ee
The @after deleteIndices() method runs unconditionally, even when
setup() skips via Assume.assumeNotNull due to missing AWS credentials.
Since iris_data was never created, the DELETE returns 404, which
combines with the AssumptionViolatedException to produce a
TestCouldNotBeSkippedException — turning a skip into a hard failure.
Guard the teardown with the same credential check used in setup().
(cherry picked from commit 9df8682)
Signed-off-by: Tyler Ohlsen <ohltyler@amazon.com>
Co-authored-by: Tyler Ohlsen <ohltyler@amazon.com>
1 parent a26f87f commit 556f8ee
File tree
1 file changed
+3
-1
lines changed- plugin/src/test/java/org/opensearch/ml/rest
1 file changed
+3
-1
lines changedLines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
69 | 71 | | |
70 | 72 | | |
71 | 73 | | |
| |||
0 commit comments