@@ -206,7 +206,7 @@ func TestContainersHandler(t *testing.T) {
206
206
207
207
fakeCt := fakeContainer (t )
208
208
fakeCt2 := fakeContainer (t )
209
- makeResponse := func (cts ... codersdk.WorkspaceAgentDevcontainer ) codersdk.WorkspaceAgentListContainersResponse {
209
+ makeResponse := func (cts ... codersdk.WorkspaceAgentContainer ) codersdk.WorkspaceAgentListContainersResponse {
210
210
return codersdk.WorkspaceAgentListContainersResponse {Containers : cts }
211
211
}
212
212
@@ -425,13 +425,13 @@ func TestConvertDockerInspect(t *testing.T) {
425
425
//nolint:paralleltest // variable recapture no longer required
426
426
for _ , tt := range []struct {
427
427
name string
428
- expect []codersdk.WorkspaceAgentDevcontainer
428
+ expect []codersdk.WorkspaceAgentContainer
429
429
expectWarns []string
430
430
expectError string
431
431
}{
432
432
{
433
433
name : "container_simple" ,
434
- expect : []codersdk.WorkspaceAgentDevcontainer {
434
+ expect : []codersdk.WorkspaceAgentContainer {
435
435
{
436
436
CreatedAt : time .Date (2025 , 3 , 11 , 17 , 55 , 58 , 91280203 , time .UTC ),
437
437
ID : "6b539b8c60f5230b8b0fde2502cd2332d31c0d526a3e6eb6eef1cc39439b3286" ,
@@ -440,14 +440,14 @@ func TestConvertDockerInspect(t *testing.T) {
440
440
Labels : map [string ]string {},
441
441
Running : true ,
442
442
Status : "running" ,
443
- Ports : []codersdk.WorkspaceAgentDevcontainerPort {},
443
+ Ports : []codersdk.WorkspaceAgentContainerPort {},
444
444
Volumes : map [string ]string {},
445
445
},
446
446
},
447
447
},
448
448
{
449
449
name : "container_labels" ,
450
- expect : []codersdk.WorkspaceAgentDevcontainer {
450
+ expect : []codersdk.WorkspaceAgentContainer {
451
451
{
452
452
CreatedAt : time .Date (2025 , 3 , 11 , 20 , 3 , 28 , 71706536 , time .UTC ),
453
453
ID : "bd8818e670230fc6f36145b21cf8d6d35580355662aa4d9fe5ae1b188a4c905f" ,
@@ -456,14 +456,14 @@ func TestConvertDockerInspect(t *testing.T) {
456
456
Labels : map [string ]string {"baz" : "zap" , "foo" : "bar" },
457
457
Running : true ,
458
458
Status : "running" ,
459
- Ports : []codersdk.WorkspaceAgentDevcontainerPort {},
459
+ Ports : []codersdk.WorkspaceAgentContainerPort {},
460
460
Volumes : map [string ]string {},
461
461
},
462
462
},
463
463
},
464
464
{
465
465
name : "container_binds" ,
466
- expect : []codersdk.WorkspaceAgentDevcontainer {
466
+ expect : []codersdk.WorkspaceAgentContainer {
467
467
{
468
468
CreatedAt : time .Date (2025 , 3 , 11 , 17 , 58 , 43 , 522505027 , time .UTC ),
469
469
ID : "fdc75ebefdc0243c0fce959e7685931691ac7aede278664a0e2c23af8a1e8d6a" ,
@@ -472,7 +472,7 @@ func TestConvertDockerInspect(t *testing.T) {
472
472
Labels : map [string ]string {},
473
473
Running : true ,
474
474
Status : "running" ,
475
- Ports : []codersdk.WorkspaceAgentDevcontainerPort {},
475
+ Ports : []codersdk.WorkspaceAgentContainerPort {},
476
476
Volumes : map [string ]string {
477
477
"/tmp/test/a" : "/var/coder/a" ,
478
478
"/tmp/test/b" : "/var/coder/b" ,
@@ -482,7 +482,7 @@ func TestConvertDockerInspect(t *testing.T) {
482
482
},
483
483
{
484
484
name : "container_sameport" ,
485
- expect : []codersdk.WorkspaceAgentDevcontainer {
485
+ expect : []codersdk.WorkspaceAgentContainer {
486
486
{
487
487
CreatedAt : time .Date (2025 , 3 , 11 , 17 , 56 , 34 , 842164541 , time .UTC ),
488
488
ID : "4eac5ce199d27b2329d0ff0ce1a6fc595612ced48eba3669aadb6c57ebef3fa2" ,
@@ -491,7 +491,7 @@ func TestConvertDockerInspect(t *testing.T) {
491
491
Labels : map [string ]string {},
492
492
Running : true ,
493
493
Status : "running" ,
494
- Ports : []codersdk.WorkspaceAgentDevcontainerPort {
494
+ Ports : []codersdk.WorkspaceAgentContainerPort {
495
495
{
496
496
Network : "tcp" ,
497
497
Port : 12345 ,
@@ -505,7 +505,7 @@ func TestConvertDockerInspect(t *testing.T) {
505
505
},
506
506
{
507
507
name : "container_differentport" ,
508
- expect : []codersdk.WorkspaceAgentDevcontainer {
508
+ expect : []codersdk.WorkspaceAgentContainer {
509
509
{
510
510
CreatedAt : time .Date (2025 , 3 , 11 , 17 , 57 , 8 , 862545133 , time .UTC ),
511
511
ID : "3090de8b72b1224758a94a11b827c82ba2b09c45524f1263dc4a2d83e19625ea" ,
@@ -514,7 +514,7 @@ func TestConvertDockerInspect(t *testing.T) {
514
514
Labels : map [string ]string {},
515
515
Running : true ,
516
516
Status : "running" ,
517
- Ports : []codersdk.WorkspaceAgentDevcontainerPort {
517
+ Ports : []codersdk.WorkspaceAgentContainerPort {
518
518
{
519
519
Network : "tcp" ,
520
520
Port : 23456 ,
@@ -528,7 +528,7 @@ func TestConvertDockerInspect(t *testing.T) {
528
528
},
529
529
{
530
530
name : "container_sameportdiffip" ,
531
- expect : []codersdk.WorkspaceAgentDevcontainer {
531
+ expect : []codersdk.WorkspaceAgentContainer {
532
532
{
533
533
CreatedAt : time .Date (2025 , 3 , 11 , 17 , 56 , 34 , 842164541 , time .UTC ),
534
534
ID : "a" ,
@@ -537,7 +537,7 @@ func TestConvertDockerInspect(t *testing.T) {
537
537
Labels : map [string ]string {},
538
538
Running : true ,
539
539
Status : "running" ,
540
- Ports : []codersdk.WorkspaceAgentDevcontainerPort {
540
+ Ports : []codersdk.WorkspaceAgentContainerPort {
541
541
{
542
542
Network : "tcp" ,
543
543
Port : 8001 ,
@@ -555,7 +555,7 @@ func TestConvertDockerInspect(t *testing.T) {
555
555
Labels : map [string ]string {},
556
556
Running : true ,
557
557
Status : "running" ,
558
- Ports : []codersdk.WorkspaceAgentDevcontainerPort {
558
+ Ports : []codersdk.WorkspaceAgentContainerPort {
559
559
{
560
560
Network : "tcp" ,
561
561
Port : 8001 ,
@@ -570,7 +570,7 @@ func TestConvertDockerInspect(t *testing.T) {
570
570
},
571
571
{
572
572
name : "container_volume" ,
573
- expect : []codersdk.WorkspaceAgentDevcontainer {
573
+ expect : []codersdk.WorkspaceAgentContainer {
574
574
{
575
575
CreatedAt : time .Date (2025 , 3 , 11 , 17 , 59 , 42 , 39484134 , time .UTC ),
576
576
ID : "b3688d98c007f53402a55e46d803f2f3ba9181d8e3f71a2eb19b392cf0377b4e" ,
@@ -579,7 +579,7 @@ func TestConvertDockerInspect(t *testing.T) {
579
579
Labels : map [string ]string {},
580
580
Running : true ,
581
581
Status : "running" ,
582
- Ports : []codersdk.WorkspaceAgentDevcontainerPort {},
582
+ Ports : []codersdk.WorkspaceAgentContainerPort {},
583
583
Volumes : map [string ]string {
584
584
"/var/lib/docker/volumes/testvol/_data" : "/testvol" ,
585
585
},
@@ -588,7 +588,7 @@ func TestConvertDockerInspect(t *testing.T) {
588
588
},
589
589
{
590
590
name : "devcontainer_simple" ,
591
- expect : []codersdk.WorkspaceAgentDevcontainer {
591
+ expect : []codersdk.WorkspaceAgentContainer {
592
592
{
593
593
CreatedAt : time .Date (2025 , 3 , 11 , 17 , 1 , 5 , 751972661 , time .UTC ),
594
594
ID : "0b2a9fcf5727d9562943ce47d445019f4520e37a2aa7c6d9346d01af4f4f9aed" ,
@@ -600,14 +600,14 @@ func TestConvertDockerInspect(t *testing.T) {
600
600
},
601
601
Running : true ,
602
602
Status : "running" ,
603
- Ports : []codersdk.WorkspaceAgentDevcontainerPort {},
603
+ Ports : []codersdk.WorkspaceAgentContainerPort {},
604
604
Volumes : map [string ]string {},
605
605
},
606
606
},
607
607
},
608
608
{
609
609
name : "devcontainer_forwardport" ,
610
- expect : []codersdk.WorkspaceAgentDevcontainer {
610
+ expect : []codersdk.WorkspaceAgentContainer {
611
611
{
612
612
CreatedAt : time .Date (2025 , 3 , 11 , 17 , 3 , 55 , 22053072 , time .UTC ),
613
613
ID : "4a16af2293fb75dc827a6949a3905dd57ea28cc008823218ce24fab1cb66c067" ,
@@ -619,14 +619,14 @@ func TestConvertDockerInspect(t *testing.T) {
619
619
},
620
620
Running : true ,
621
621
Status : "running" ,
622
- Ports : []codersdk.WorkspaceAgentDevcontainerPort {},
622
+ Ports : []codersdk.WorkspaceAgentContainerPort {},
623
623
Volumes : map [string ]string {},
624
624
},
625
625
},
626
626
},
627
627
{
628
628
name : "devcontainer_appport" ,
629
- expect : []codersdk.WorkspaceAgentDevcontainer {
629
+ expect : []codersdk.WorkspaceAgentContainer {
630
630
{
631
631
CreatedAt : time .Date (2025 , 3 , 11 , 17 , 2 , 42 , 613747761 , time .UTC ),
632
632
ID : "52d23691f4b954d083f117358ea763e20f69af584e1c08f479c5752629ee0be3" ,
@@ -638,7 +638,7 @@ func TestConvertDockerInspect(t *testing.T) {
638
638
},
639
639
Running : true ,
640
640
Status : "running" ,
641
- Ports : []codersdk.WorkspaceAgentDevcontainerPort {
641
+ Ports : []codersdk.WorkspaceAgentContainerPort {
642
642
{
643
643
Network : "tcp" ,
644
644
Port : 8080 ,
@@ -809,9 +809,9 @@ func TestDockerEnvInfoer(t *testing.T) {
809
809
}
810
810
}
811
811
812
- func fakeContainer (t * testing.T , mut ... func (* codersdk.WorkspaceAgentDevcontainer )) codersdk.WorkspaceAgentDevcontainer {
812
+ func fakeContainer (t * testing.T , mut ... func (* codersdk.WorkspaceAgentContainer )) codersdk.WorkspaceAgentContainer {
813
813
t .Helper ()
814
- ct := codersdk.WorkspaceAgentDevcontainer {
814
+ ct := codersdk.WorkspaceAgentContainer {
815
815
CreatedAt : time .Now ().UTC (),
816
816
ID : uuid .New ().String (),
817
817
FriendlyName : testutil .GetRandomName (t ),
@@ -820,7 +820,7 @@ func fakeContainer(t *testing.T, mut ...func(*codersdk.WorkspaceAgentDevcontaine
820
820
testutil .GetRandomName (t ): testutil .GetRandomName (t ),
821
821
},
822
822
Running : true ,
823
- Ports : []codersdk.WorkspaceAgentDevcontainerPort {
823
+ Ports : []codersdk.WorkspaceAgentContainerPort {
824
824
{
825
825
Network : "tcp" ,
826
826
Port : testutil .RandomPortNoListen (t ),
0 commit comments