@@ -66,6 +66,7 @@ func TestConvertResources(t *testing.T) {
66
66
OperatingSystem : "linux" ,
67
67
Architecture : "amd64" ,
68
68
Auth : & proto.Agent_Token {},
69
+ ApiKeyScope : "all" ,
69
70
ConnectionTimeoutSeconds : 120 ,
70
71
DisplayApps : & displayApps ,
71
72
ResourcesMonitoring : & proto.ResourcesMonitoring {},
@@ -84,6 +85,7 @@ func TestConvertResources(t *testing.T) {
84
85
OperatingSystem : "linux" ,
85
86
Architecture : "amd64" ,
86
87
Auth : & proto.Agent_Token {},
88
+ ApiKeyScope : "all" ,
87
89
ConnectionTimeoutSeconds : 120 ,
88
90
DisplayApps : & displayApps ,
89
91
ResourcesMonitoring : & proto.ResourcesMonitoring {},
@@ -103,6 +105,7 @@ func TestConvertResources(t *testing.T) {
103
105
OperatingSystem : "linux" ,
104
106
Architecture : "amd64" ,
105
107
Auth : & proto.Agent_InstanceId {},
108
+ ApiKeyScope : "all" ,
106
109
ConnectionTimeoutSeconds : 120 ,
107
110
DisplayApps : & displayApps ,
108
111
ResourcesMonitoring : & proto.ResourcesMonitoring {},
@@ -120,6 +123,7 @@ func TestConvertResources(t *testing.T) {
120
123
OperatingSystem : "linux" ,
121
124
Architecture : "amd64" ,
122
125
Auth : & proto.Agent_Token {},
126
+ ApiKeyScope : "all" ,
123
127
ConnectionTimeoutSeconds : 120 ,
124
128
DisplayApps : & displayApps ,
125
129
ResourcesMonitoring : & proto.ResourcesMonitoring {},
@@ -138,6 +142,7 @@ func TestConvertResources(t *testing.T) {
138
142
OperatingSystem : "linux" ,
139
143
Architecture : "amd64" ,
140
144
Auth : & proto.Agent_Token {},
145
+ ApiKeyScope : "all" ,
141
146
ConnectionTimeoutSeconds : 120 ,
142
147
DisplayApps : & displayApps ,
143
148
ResourcesMonitoring : & proto.ResourcesMonitoring {},
@@ -146,6 +151,7 @@ func TestConvertResources(t *testing.T) {
146
151
OperatingSystem : "darwin" ,
147
152
Architecture : "amd64" ,
148
153
Auth : & proto.Agent_Token {},
154
+ ApiKeyScope : "all" ,
149
155
ConnectionTimeoutSeconds : 1 ,
150
156
MotdFile : "/etc/motd" ,
151
157
DisplayApps : & displayApps ,
@@ -162,6 +168,7 @@ func TestConvertResources(t *testing.T) {
162
168
OperatingSystem : "windows" ,
163
169
Architecture : "arm64" ,
164
170
Auth : & proto.Agent_Token {},
171
+ ApiKeyScope : "all" ,
165
172
ConnectionTimeoutSeconds : 120 ,
166
173
TroubleshootingUrl : "https://coder.com/troubleshoot" ,
167
174
DisplayApps : & displayApps ,
@@ -171,6 +178,7 @@ func TestConvertResources(t *testing.T) {
171
178
OperatingSystem : "linux" ,
172
179
Architecture : "amd64" ,
173
180
Auth : & proto.Agent_Token {},
181
+ ApiKeyScope : "all" ,
174
182
ConnectionTimeoutSeconds : 120 ,
175
183
DisplayApps : & displayApps ,
176
184
ResourcesMonitoring : & proto.ResourcesMonitoring {},
@@ -213,6 +221,7 @@ func TestConvertResources(t *testing.T) {
213
221
},
214
222
},
215
223
Auth : & proto.Agent_Token {},
224
+ ApiKeyScope : "all" ,
216
225
ConnectionTimeoutSeconds : 120 ,
217
226
DisplayApps : & displayApps ,
218
227
ResourcesMonitoring : & proto.ResourcesMonitoring {},
@@ -240,6 +249,7 @@ func TestConvertResources(t *testing.T) {
240
249
},
241
250
},
242
251
Auth : & proto.Agent_Token {},
252
+ ApiKeyScope : "all" ,
243
253
ConnectionTimeoutSeconds : 120 ,
244
254
DisplayApps : & displayApps ,
245
255
ResourcesMonitoring : & proto.ResourcesMonitoring {},
@@ -275,6 +285,7 @@ func TestConvertResources(t *testing.T) {
275
285
},
276
286
},
277
287
Auth : & proto.Agent_Token {},
288
+ ApiKeyScope : "all" ,
278
289
ConnectionTimeoutSeconds : 120 ,
279
290
DisplayApps : & displayApps ,
280
291
ResourcesMonitoring : & proto.ResourcesMonitoring {},
@@ -295,6 +306,7 @@ func TestConvertResources(t *testing.T) {
295
306
},
296
307
},
297
308
Auth : & proto.Agent_Token {},
309
+ ApiKeyScope : "all" ,
298
310
ConnectionTimeoutSeconds : 120 ,
299
311
DisplayApps : & displayApps ,
300
312
ResourcesMonitoring : & proto.ResourcesMonitoring {},
@@ -320,6 +332,7 @@ func TestConvertResources(t *testing.T) {
320
332
},
321
333
},
322
334
Auth : & proto.Agent_Token {},
335
+ ApiKeyScope : "all" ,
323
336
ConnectionTimeoutSeconds : 120 ,
324
337
DisplayApps : & displayApps ,
325
338
ResourcesMonitoring : & proto.ResourcesMonitoring {},
@@ -338,6 +351,7 @@ func TestConvertResources(t *testing.T) {
338
351
},
339
352
},
340
353
Auth : & proto.Agent_Token {},
354
+ ApiKeyScope : "all" ,
341
355
ConnectionTimeoutSeconds : 120 ,
342
356
DisplayApps : & displayApps ,
343
357
ResourcesMonitoring : & proto.ResourcesMonitoring {},
@@ -383,6 +397,7 @@ func TestConvertResources(t *testing.T) {
383
397
},
384
398
},
385
399
Auth : & proto.Agent_Token {},
400
+ ApiKeyScope : "all" ,
386
401
ConnectionTimeoutSeconds : 120 ,
387
402
DisplayApps : & displayApps ,
388
403
ResourcesMonitoring : & proto.ResourcesMonitoring {
@@ -398,6 +413,7 @@ func TestConvertResources(t *testing.T) {
398
413
Architecture : "amd64" ,
399
414
Apps : []* proto.App {},
400
415
Auth : & proto.Agent_Token {},
416
+ ApiKeyScope : "all" ,
401
417
ConnectionTimeoutSeconds : 120 ,
402
418
DisplayApps : & displayApps ,
403
419
ResourcesMonitoring : & proto.ResourcesMonitoring {
@@ -443,6 +459,7 @@ func TestConvertResources(t *testing.T) {
443
459
},
444
460
},
445
461
Auth : & proto.Agent_Token {},
462
+ ApiKeyScope : "all" ,
446
463
ConnectionTimeoutSeconds : 120 ,
447
464
DisplayApps : & displayApps ,
448
465
ResourcesMonitoring : & proto.ResourcesMonitoring {},
@@ -462,6 +479,7 @@ func TestConvertResources(t *testing.T) {
462
479
},
463
480
},
464
481
Auth : & proto.Agent_Token {},
482
+ ApiKeyScope : "all" ,
465
483
ConnectionTimeoutSeconds : 120 ,
466
484
DisplayApps : & displayApps ,
467
485
ResourcesMonitoring : & proto.ResourcesMonitoring {},
@@ -492,6 +510,7 @@ func TestConvertResources(t *testing.T) {
492
510
Agents : []* proto.Agent {{
493
511
Name : "main" ,
494
512
Auth : & proto.Agent_Token {},
513
+ ApiKeyScope : "all" ,
495
514
OperatingSystem : "linux" ,
496
515
Architecture : "amd64" ,
497
516
Metadata : []* proto.Agent_Metadata {{
@@ -577,6 +596,7 @@ func TestConvertResources(t *testing.T) {
577
596
OperatingSystem : "windows" ,
578
597
Architecture : "arm64" ,
579
598
Auth : & proto.Agent_Token {},
599
+ ApiKeyScope : "all" ,
580
600
ConnectionTimeoutSeconds : 120 ,
581
601
DisplayApps : & displayApps ,
582
602
ResourcesMonitoring : & proto.ResourcesMonitoring {},
@@ -657,6 +677,7 @@ func TestConvertResources(t *testing.T) {
657
677
OperatingSystem : "windows" ,
658
678
Architecture : "arm64" ,
659
679
Auth : & proto.Agent_Token {},
680
+ ApiKeyScope : "all" ,
660
681
ConnectionTimeoutSeconds : 120 ,
661
682
DisplayApps : & displayApps ,
662
683
ResourcesMonitoring : & proto.ResourcesMonitoring {},
@@ -684,6 +705,7 @@ func TestConvertResources(t *testing.T) {
684
705
OperatingSystem : "windows" ,
685
706
Architecture : "arm64" ,
686
707
Auth : & proto.Agent_Token {},
708
+ ApiKeyScope : "all" ,
687
709
ConnectionTimeoutSeconds : 120 ,
688
710
DisplayApps : & displayApps ,
689
711
ResourcesMonitoring : & proto.ResourcesMonitoring {},
@@ -738,6 +760,7 @@ func TestConvertResources(t *testing.T) {
738
760
OperatingSystem : "linux" ,
739
761
Architecture : "amd64" ,
740
762
Auth : & proto.Agent_Token {},
763
+ ApiKeyScope : "all" ,
741
764
ConnectionTimeoutSeconds : 120 ,
742
765
DisplayApps : & displayApps ,
743
766
ResourcesMonitoring : & proto.ResourcesMonitoring {},
@@ -754,6 +777,7 @@ func TestConvertResources(t *testing.T) {
754
777
OperatingSystem : "linux" ,
755
778
Architecture : "amd64" ,
756
779
Auth : & proto.Agent_Token {},
780
+ ApiKeyScope : "all" ,
757
781
ConnectionTimeoutSeconds : 120 ,
758
782
DisplayApps : & proto.DisplayApps {
759
783
VscodeInsiders : true ,
@@ -772,6 +796,7 @@ func TestConvertResources(t *testing.T) {
772
796
OperatingSystem : "linux" ,
773
797
Architecture : "amd64" ,
774
798
Auth : & proto.Agent_Token {},
799
+ ApiKeyScope : "all" ,
775
800
ConnectionTimeoutSeconds : 120 ,
776
801
DisplayApps : & proto.DisplayApps {},
777
802
ResourcesMonitoring : & proto.ResourcesMonitoring {},
@@ -786,8 +811,8 @@ func TestConvertResources(t *testing.T) {
786
811
Name : "dev" ,
787
812
OperatingSystem : "windows" ,
788
813
Architecture : "arm64" ,
789
- ApiKeyScope : "all" ,
790
814
Auth : & proto.Agent_Token {},
815
+ ApiKeyScope : "all" ,
791
816
ConnectionTimeoutSeconds : 120 ,
792
817
DisplayApps : & displayApps ,
793
818
ResourcesMonitoring : & proto.ResourcesMonitoring {},
@@ -847,6 +872,7 @@ func TestConvertResources(t *testing.T) {
847
872
OperatingSystem : "linux" ,
848
873
Architecture : "amd64" ,
849
874
Auth : & proto.Agent_Token {},
875
+ ApiKeyScope : "all" ,
850
876
ConnectionTimeoutSeconds : 120 ,
851
877
DisplayApps : & displayApps ,
852
878
ResourcesMonitoring : & proto.ResourcesMonitoring {},
0 commit comments