-
Notifications
You must be signed in to change notification settings - Fork 16
Commit 9bff367
impl: prefer agent name over agent id in URI handler (#585)
* impl: prefer agent name over agent id in URI handler
Agent name is easier to resolve in jetbrains gateway module
* impl: prefer agent name over agent id in URI handler (2)
Error reporting should also prefer agent name over the agent id.
* chore: update and fix UTs
Test cases related to agent matching have to be updated
now that agent name is preferred over agent id.
* chore: refactor UTs related to agent matching in URI handling
Rewrote the entire test to be easier to read and debug.1 parent 546d317 commit 9bff367
File tree
3 files changed
+358
-161
lines changed- src
- main/kotlin/com/coder/gateway/util
- test/kotlin/com/coder/gateway/util
3 files changed
+358
-161
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
327 | 327 |
| |
328 | 328 |
| |
329 | 329 |
| |
330 | - | ||
331 | - | ||
332 | - | ||
333 | - | ||
334 | - | ||
335 | - | ||
336 | - | ||
337 | - | ||
338 | - | ||
339 | - | ||
340 | - | ||
330 | + | ||
331 | + | ||
332 | + | ||
333 | + | ||
334 | + | ||
335 | + | ||
336 | + | ||
337 | + | ||
338 | + | ||
339 | + | ||
341 | 340 |
| |
342 | 341 |
| |
343 | - | ||
344 | - | ||
345 | - | ||
342 | + | ||
346 | 343 |
| |
347 | - | ||
344 | + | ||
348 | 345 |
| |
346 | + | ||
347 | + | ||
349 | 348 |
| |
350 | 349 |
| |
351 | 350 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
29 | 29 |
| |
30 | 30 |
| |
31 | 31 |
| |
32 | + | ||
32 | 33 |
| |
33 | 34 |
| |
34 | 35 |
| |
|
0 commit comments