Commit 54d28ea
committed
fix: clear cache before testCachePurged to prevent stale entry interference
AzureAppConfigurationProviderTest#testCachePurged was failing on CI
because the static OracleConfigurationCache could hold valid credentials
from a previous test run, causing the first connection to succeed from
cache instead of fetching the (intentionally wrong) credentials from
Azure App Config. Added @BeforeAll to obtain the cache reference and
a CACHE.remove() call at the start of the test, mirroring the pattern
already used in AzureAppConfigurationProviderURLParserTest.1 parent 2292e23 commit 54d28ea
1 file changed
Lines changed: 16 additions & 0 deletions
File tree
- ojdbc-provider-azure/src/test/java/oracle/jdbc/provider/azure/configuration
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
11 | 13 | | |
| 14 | + | |
12 | 15 | | |
13 | 16 | | |
14 | 17 | | |
| |||
21 | 24 | | |
22 | 25 | | |
23 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
24 | 37 | | |
25 | 38 | | |
26 | 39 | | |
| |||
113 | 126 | | |
114 | 127 | | |
115 | 128 | | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
116 | 132 | | |
117 | 133 | | |
118 | 134 | | |
| |||
0 commit comments