Commit 64c9f1f
Fix install-package-422 test to not depend on external packages.linkeddatahub.com
Use a local URL for the nonexistent package URI so the test doesn't fail when
the external server is unreachable. Also catch NotFoundException and
ProcessingException in getPackage() so any HTTP/connection failure reliably
returns null and triggers the 422 response.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 9835967 commit 64c9f1f
File tree
2 files changed
+15
-2
lines changed- http-tests/admin/packages
- src/main/java/com/atomgraph/linkeddatahub/resource/admin/pkg
2 files changed
+15
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
Lines changed: 14 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| 58 | + | |
| 59 | + | |
58 | 60 | | |
59 | 61 | | |
60 | 62 | | |
| |||
250 | 252 | | |
251 | 253 | | |
252 | 254 | | |
253 | | - | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
254 | 267 | | |
255 | 268 | | |
256 | 269 | | |
| |||
0 commit comments