File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
registry/coder/modules/jetbrains Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -292,14 +292,15 @@ describe("jetbrains", async () => {
292292 ) ;
293293 const url = coder_app ?. instances [ 0 ] . attributes . url ;
294294
295- expect ( url ) . toContain ( "jetbrains://gateway/com. coder.toolbox " ) ;
295+ expect ( url ) . toContain ( "jetbrains://gateway/coder" ) ;
296296 expect ( url ) . toContain ( "&workspace=" ) ;
297297 expect ( url ) . toContain ( "&owner=" ) ;
298298 expect ( url ) . toContain ( "&folder=/custom/project/path" ) ;
299299 expect ( url ) . toContain ( "&url=" ) ;
300300 expect ( url ) . toContain ( "&token=$SESSION_TOKEN" ) ;
301301 expect ( url ) . toContain ( "&ide_product_code=GO" ) ;
302302 expect ( url ) . toContain ( "&ide_build_number=" ) ;
303+ expect ( url ) . toContain ( "&agent_id=test-agent-123" ) ;
303304 } ) ;
304305
305306 it ( "should include build numbers from API in URLs" , async ( ) => {
@@ -993,7 +994,7 @@ describe("jetbrains", async () => {
993994 for ( const app of coder_apps ) {
994995 // Should have valid URLs with build numbers
995996 expect ( app . instances [ 0 ] . attributes . url ) . toContain (
996- "jetbrains://gateway/com. coder.toolbox " ,
997+ "jetbrains://gateway/coder" ,
997998 ) ;
998999 expect ( app . instances [ 0 ] . attributes . url ) . toContain ( "ide_build_number=" ) ;
9991000 expect ( app . instances [ 0 ] . attributes . url ) . toContain ( "ide_product_code=" ) ;
Original file line number Diff line number Diff line change @@ -238,6 +238,8 @@ resource "coder_app" "jetbrains" {
238238 " &ide_product_code=" ,
239239 each . key ,
240240 " &ide_build_number=" ,
241- local . options_metadata [each . key ]. build
241+ local . options_metadata [each . key ]. build ,
242+ " &agent_id=" ,
243+ var . agent_id ,
242244 ])
243245}
You can’t perform that action at this time.
0 commit comments