Respond with 404 when connection not found 48/142648/3
authorFiete Ostkamp <fiete.ostkamp@telekom.de>
Fri, 5 Dec 2025 07:40:25 +0000 (08:40 +0100)
committerFiete Ostkamp <fiete.ostkamp@telekom.de>
Thu, 12 Mar 2026 07:04:27 +0000 (08:04 +0100)
commit6e7e57538cef845dec07f97d877404c47e1da950
treea6574a73102a25e62f6ad16647d2006ef4a25bc6
parent5357869908db78261a41f7639a7cf8619549d63b
Respond with 404 when connection not found

- respond with 404 not found on /connectivity-info/{connname} endpoint
  when no connectivity info is found
- this replaces a 500 internal error response which is misleading
- add tests for connection handler

Issue-ID: MULTICLOUD-1529
Change-Id: If483f20eb2a5a2affc316a9d6947ed997b8ae349
Signed-off-by: Fiete Ostkamp <fiete.ostkamp@telekom.de>
src/k8splugin/api/connectionhandler.go
src/k8splugin/api/connectionhandler_test.go [new file with mode: 0644]