1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732 | dooferlad@homework2 ~/dev/go/src/github.com/juju/juju/cmd/juju/commands $ go test -check.f TestAllCommandsPurposeDocCapitalization
----------------------------------------------------------------------
FAIL: main_test.go:663: MainSuite.TestAllCommandsPurposeDocCapitalization
bootstrap
Initializes a cloud environment.
add-relation
add a relation between two applications
main_test.go:693:
c.Check(prefix, gc.Equals, strings.ToUpper(prefix),
comment("expected uppercase first-letter Purpose"),
)
... obtained string = "a"
... expected string = "A"
... command "add-relation" expected uppercase first-letter Purpose
remove-relation
Removes an existing relation between two applications.
remove-application
Remove an application from the model.
remove-unit
remove application units from the model
main_test.go:693:
c.Check(prefix, gc.Equals, strings.ToUpper(prefix),
comment("expected uppercase first-letter Purpose"),
)
... obtained string = "r"
... expected string = "R"
... command "remove-unit" expected uppercase first-letter Purpose
status
Displays the current status of Juju, applications, and units.
switch
Selects or identifies the current controller and model.
status-history
output past statuses for the passed entity
main_test.go:693:
c.Check(prefix, gc.Equals, strings.ToUpper(prefix),
comment("expected uppercase first-letter Purpose"),
)
... obtained string = "o"
... expected string = "O"
... command "status-history" expected uppercase first-letter Purpose
run
run the commands on the remote targets specified
main_test.go:693:
c.Check(prefix, gc.Equals, strings.ToUpper(prefix),
comment("expected uppercase first-letter Purpose"),
)
... obtained string = "r"
... expected string = "R"
... command "run" expected uppercase first-letter Purpose
scp
Transfers files to/from a Juju machine.
ssh
Initiates an SSH session or executes a command on a Juju machine.
resolved
marks unit errors resolved
main_test.go:693:
c.Check(prefix, gc.Equals, strings.ToUpper(prefix),
comment("expected uppercase first-letter Purpose"),
)
... obtained string = "m"
... expected string = "M"
... command "resolved" expected uppercase first-letter Purpose
debug-log
Displays log messages for a model.
debug-hooks
launch a tmux session to debug a hook
main_test.go:693:
c.Check(prefix, gc.Equals, strings.ToUpper(prefix),
comment("expected uppercase first-letter Purpose"),
)
... obtained string = "l"
... expected string = "L"
... command "debug-hooks" expected uppercase first-letter Purpose
get-model-constraints
Displays machine constraints for a model.
set-model-constraints
Sets machine constraints on a model.
sync-tools
copy tools from the official tool store into a local model
main_test.go:693:
c.Check(prefix, gc.Equals, strings.ToUpper(prefix),
comment("expected uppercase first-letter Purpose"),
)
... obtained string = "c"
... expected string = "C"
... command "sync-tools" expected uppercase first-letter Purpose
upgrade-juju
Upgrades Juju on all machines in a model.
upgrade-charm
upgrade an application's charm
main_test.go:693:
c.Check(prefix, gc.Equals, strings.ToUpper(prefix),
comment("expected uppercase first-letter Purpose"),
)
... obtained string = "u"
... expected string = "U"
... command "upgrade-charm" expected uppercase first-letter Purpose
publish
publish charm to the store
main_test.go:693:
c.Check(prefix, gc.Equals, strings.ToUpper(prefix),
comment("expected uppercase first-letter Purpose"),
)
... obtained string = "p"
... expected string = "P"
... command "publish" expected uppercase first-letter Purpose
help-tool
show help on a juju charm tool
main_test.go:693:
c.Check(prefix, gc.Equals, strings.ToUpper(prefix),
comment("expected uppercase first-letter Purpose"),
)
... obtained string = "s"
... expected string = "S"
... command "help-tool" expected uppercase first-letter Purpose
charm
interact with charms
main_test.go:693:
c.Check(prefix, gc.Equals, strings.ToUpper(prefix),
comment("expected uppercase first-letter Purpose"),
)
... obtained string = "i"
... expected string = "I"
... command "charm" expected uppercase first-letter Purpose
create-backup
create a backup
main_test.go:693:
c.Check(prefix, gc.Equals, strings.ToUpper(prefix),
comment("expected uppercase first-letter Purpose"),
)
... obtained string = "c"
... expected string = "C"
... command "create-backup" expected uppercase first-letter Purpose
download-backup
get an archive file
main_test.go:693:
c.Check(prefix, gc.Equals, strings.ToUpper(prefix),
comment("expected uppercase first-letter Purpose"),
)
... obtained string = "g"
... expected string = "G"
... command "download-backup" expected uppercase first-letter Purpose
show-backup
get metadata
main_test.go:693:
c.Check(prefix, gc.Equals, strings.ToUpper(prefix),
comment("expected uppercase first-letter Purpose"),
)
... obtained string = "g"
... expected string = "G"
... command "show-backup" expected uppercase first-letter Purpose
backups
get all metadata
main_test.go:693:
c.Check(prefix, gc.Equals, strings.ToUpper(prefix),
comment("expected uppercase first-letter Purpose"),
)
... obtained string = "g"
... expected string = "G"
... command "backups" expected uppercase first-letter Purpose
remove-backup
delete a backup
main_test.go:693:
c.Check(prefix, gc.Equals, strings.ToUpper(prefix),
comment("expected uppercase first-letter Purpose"),
)
... obtained string = "d"
... expected string = "D"
... command "remove-backup" expected uppercase first-letter Purpose
restore-backup
restore from a backup archive to a new controller
main_test.go:693:
c.Check(prefix, gc.Equals, strings.ToUpper(prefix),
comment("expected uppercase first-letter Purpose"),
)
... obtained string = "r"
... expected string = "R"
... command "restore-backup" expected uppercase first-letter Purpose
upload-backup
store a backup archive file remotely in juju
main_test.go:693:
c.Check(prefix, gc.Equals, strings.ToUpper(prefix),
comment("expected uppercase first-letter Purpose"),
)
... obtained string = "s"
... expected string = "S"
... command "upload-backup" expected uppercase first-letter Purpose
add-ssh-key
Adds a public SSH key to a model.
remove-ssh-key
Removes a public SSH key (or keys) from a model.
import-ssh-key
Adds a public SSH key from a trusted identity source to a model.
ssh-keys
Lists the currently known SSH keys for the current (or specified) model.
add-user
Adds a Juju user to a controller.
change-user-password
changes the password for a user
main_test.go:693:
c.Check(prefix, gc.Equals, strings.ToUpper(prefix),
comment("expected uppercase first-letter Purpose"),
)
... obtained string = "c"
... expected string = "C"
... command "change-user-password" expected uppercase first-letter Purpose
show-user
Show information about a user.
users
Lists Juju users allowed to connect to a controller.
enable-user
Re-enables a previously disabled Juju user.
disable-user
Disables a Juju user.
login
logs in to the controller
main_test.go:693:
c.Check(prefix, gc.Equals, strings.ToUpper(prefix),
comment("expected uppercase first-letter Purpose"),
)
... obtained string = "l"
... expected string = "L"
... command "login" expected uppercase first-letter Purpose
logout
logs out of the controller
main_test.go:693:
c.Check(prefix, gc.Equals, strings.ToUpper(prefix),
comment("expected uppercase first-letter Purpose"),
)
... obtained string = "l"
... expected string = "L"
... command "logout" expected uppercase first-letter Purpose
remove-cached-images
remove cached os images
main_test.go:693:
c.Check(prefix, gc.Equals, strings.ToUpper(prefix),
comment("expected uppercase first-letter Purpose"),
)
... obtained string = "r"
... expected string = "R"
... command "remove-cached-images" expected uppercase first-letter Purpose
cached-images
shows cached os images
main_test.go:693:
c.Check(prefix, gc.Equals, strings.ToUpper(prefix),
comment("expected uppercase first-letter Purpose"),
)
... obtained string = "s"
... expected string = "S"
... command "cached-images" expected uppercase first-letter Purpose
add-machine
start a new, empty machine and optionally a container, or add a container to a machine
main_test.go:693:
c.Check(prefix, gc.Equals, strings.ToUpper(prefix),
comment("expected uppercase first-letter Purpose"),
)
... obtained string = "s"
... expected string = "S"
... command "add-machine" expected uppercase first-letter Purpose
remove-machine
Removes one or more machines from a model.
machines
Lists machines in a model.
show-machine
show a machines status
main_test.go:693:
c.Check(prefix, gc.Equals, strings.ToUpper(prefix),
comment("expected uppercase first-letter Purpose"),
)
... obtained string = "s"
... expected string = "S"
... command "show-machine" expected uppercase first-letter Purpose
get-model-config
Displays configuration settings for a model.
set-model-config
Sets configuration keys on a model.
unset-model-config
Unsets model configuration.
retry-provisioning
retries provisioning for failed machines
main_test.go:693:
c.Check(prefix, gc.Equals, strings.ToUpper(prefix),
comment("expected uppercase first-letter Purpose"),
)
... obtained string = "r"
... expected string = "R"
... command "retry-provisioning" expected uppercase first-letter Purpose
destroy-model
Terminate all machines and resources for a non-controller model.
shares
Shows all users with access to a model for the current controller.
grant
Grants access to a Juju user for a model.
revoke
Revokes access from a Juju user for a model.
show-model
shows information about the current or specified model
main_test.go:693:
c.Check(prefix, gc.Equals, strings.ToUpper(prefix),
comment("expected uppercase first-letter Purpose"),
)
... obtained string = "s"
... expected string = "S"
... command "show-model" expected uppercase first-letter Purpose
show-action-status
show results of all actions filtered by optional ID prefix
main_test.go:693:
c.Check(prefix, gc.Equals, strings.ToUpper(prefix),
comment("expected uppercase first-letter Purpose"),
)
... obtained string = "s"
... expected string = "S"
... command "show-action-status" expected uppercase first-letter Purpose
run-action
queue an action for execution
main_test.go:693:
c.Check(prefix, gc.Equals, strings.ToUpper(prefix),
comment("expected uppercase first-letter Purpose"),
)
... obtained string = "q"
... expected string = "Q"
... command "run-action" expected uppercase first-letter Purpose
show-action-output
show results of an action by ID
main_test.go:693:
c.Check(prefix, gc.Equals, strings.ToUpper(prefix),
comment("expected uppercase first-letter Purpose"),
)
... obtained string = "s"
... expected string = "S"
... command "show-action-output" expected uppercase first-letter Purpose
actions
list actions defined for a service
main_test.go:693:
c.Check(prefix, gc.Equals, strings.ToUpper(prefix),
comment("expected uppercase first-letter Purpose"),
)
... obtained string = "l"
... expected string = "L"
... command "actions" expected uppercase first-letter Purpose
enable-ha
ensure that sufficient controllers exist to provide redundancy
main_test.go:693:
c.Check(prefix, gc.Equals, strings.ToUpper(prefix),
comment("expected uppercase first-letter Purpose"),
)
... obtained string = "e"
... expected string = "E"
... command "enable-ha" expected uppercase first-letter Purpose
add-unit
Adds one or more units to a deployed application.
get-config
Displays configuration settings for a deployed application.
set-config
Sets configuration options for an application.
deploy
deploy a new application or bundle
main_test.go:693:
c.Check(prefix, gc.Equals, strings.ToUpper(prefix),
comment("expected uppercase first-letter Purpose"),
)
... obtained string = "d"
... expected string = "D"
... command "deploy" expected uppercase first-letter Purpose
expose
Makes an application publicly available over the network.
unexpose
Removes public availability over the network for an application.
get-constraints
Displays machine constraints for an application.
set-constraints
Sets machine constraints for an application.
block
list and enable model blocks
main_test.go:693:
c.Check(prefix, gc.Equals, strings.ToUpper(prefix),
comment("expected uppercase first-letter Purpose"),
)
... obtained string = "l"
... expected string = "L"
... command "block" expected uppercase first-letter Purpose
unblock
unblock an operation that would alter a running model
main_test.go:693:
c.Check(prefix, gc.Equals, strings.ToUpper(prefix),
comment("expected uppercase first-letter Purpose"),
)
... obtained string = "u"
... expected string = "U"
... command "unblock" expected uppercase first-letter Purpose
add-storage
adds unit storage dynamically
main_test.go:693:
c.Check(prefix, gc.Equals, strings.ToUpper(prefix),
comment("expected uppercase first-letter Purpose"),
)
... obtained string = "a"
... expected string = "A"
... command "add-storage" expected uppercase first-letter Purpose
storage
lists storage details
main_test.go:693:
c.Check(prefix, gc.Equals, strings.ToUpper(prefix),
comment("expected uppercase first-letter Purpose"),
)
... obtained string = "l"
... expected string = "L"
... command "storage" expected uppercase first-letter Purpose
create-storage-pool
create storage pool
main_test.go:693:
c.Check(prefix, gc.Equals, strings.ToUpper(prefix),
comment("expected uppercase first-letter Purpose"),
)
... obtained string = "c"
... expected string = "C"
... command "create-storage-pool" expected uppercase first-letter Purpose
storage-pools
list storage pools
main_test.go:693:
c.Check(prefix, gc.Equals, strings.ToUpper(prefix),
comment("expected uppercase first-letter Purpose"),
)
... obtained string = "l"
... expected string = "L"
... command "storage-pools" expected uppercase first-letter Purpose
show-storage
shows storage instance
main_test.go:693:
c.Check(prefix, gc.Equals, strings.ToUpper(prefix),
comment("expected uppercase first-letter Purpose"),
)
... obtained string = "s"
... expected string = "S"
... command "show-storage" expected uppercase first-letter Purpose
add-space
Add a new network space
spaces
List known spaces, including associated subnets
add-subnet
add an existing subnet to Juju
main_test.go:693:
c.Check(prefix, gc.Equals, strings.ToUpper(prefix),
comment("expected uppercase first-letter Purpose"),
)
... obtained string = "a"
... expected string = "A"
... command "add-subnet" expected uppercase first-letter Purpose
subnets
list subnets known to Juju
main_test.go:693:
c.Check(prefix, gc.Equals, strings.ToUpper(prefix),
comment("expected uppercase first-letter Purpose"),
)
... obtained string = "l"
... expected string = "L"
... command "subnets" expected uppercase first-letter Purpose
add-model
Adds a hosted model.
destroy-controller
Destroys a controller.
models
Lists models a user can access on a controller.
kill-controller
forcibly terminate all machines and other associated resources for a juju controller
main_test.go:693:
c.Check(prefix, gc.Equals, strings.ToUpper(prefix),
comment("expected uppercase first-letter Purpose"),
)
... obtained string = "f"
... expected string = "F"
... command "kill-controller" expected uppercase first-letter Purpose
controllers
Lists all controllers.
blocks
list all blocks within the controller
main_test.go:693:
c.Check(prefix, gc.Equals, strings.ToUpper(prefix),
comment("expected uppercase first-letter Purpose"),
)
... obtained string = "l"
... expected string = "L"
... command "blocks" expected uppercase first-letter Purpose
register
Registers a Juju user to a controller.
unregister
Unregisters a Juju controller
remove-all-blocks
remove all blocks in the Juju controller
main_test.go:693:
c.Check(prefix, gc.Equals, strings.ToUpper(prefix),
comment("expected uppercase first-letter Purpose"),
)
... obtained string = "r"
... expected string = "R"
... command "remove-all-blocks" expected uppercase first-letter Purpose
show-controller
Shows detailed information of a controller.
get-controller-config
Displays configuration settings for a controller.
debug-metrics
retrieve metrics collected by the given unit/application
main_test.go:693:
c.Check(prefix, gc.Equals, strings.ToUpper(prefix),
comment("expected uppercase first-letter Purpose"),
)
... obtained string = "r"
... expected string = "R"
... command "debug-metrics" expected uppercase first-letter Purpose
collect-metrics
collect metrics on the given unit/application
main_test.go:693:
c.Check(prefix, gc.Equals, strings.ToUpper(prefix),
comment("expected uppercase first-letter Purpose"),
)
... obtained string = "c"
... expected string = "C"
... command "collect-metrics" expected uppercase first-letter Purpose
set-meter-status
sets the meter status on an application or unit
main_test.go:693:
c.Check(prefix, gc.Equals, strings.ToUpper(prefix),
comment("expected uppercase first-letter Purpose"),
)
... obtained string = "s"
... expected string = "S"
... command "set-meter-status" expected uppercase first-letter Purpose
update-clouds
Updates public cloud information available to Juju.
clouds
Lists all clouds available to Juju.
show-cloud
Shows detailed information on a cloud.
add-cloud
Adds a user-defined cloud to Juju from among known cloud types.
remove-cloud
Removes a user-defined cloud from Juju.
credentials
Lists credentials for a cloud.
autoload-credentials
looks for cloud credentials and caches those for use by Juju when bootstrapping
main_test.go:693:
c.Check(prefix, gc.Equals, strings.ToUpper(prefix),
comment("expected uppercase first-letter Purpose"),
)
... obtained string = "l"
... expected string = "L"
... command "autoload-credentials" expected uppercase first-letter Purpose
set-default-region
Sets the default region for a cloud.
set-default-credential
Sets the default credentials for a cloud.
add-credential
Adds or replaces credentials for a cloud.
remove-credential
Removes credentials for a cloud.
gui
open the Juju GUI in the default browser
main_test.go:693:
c.Check(prefix, gc.Equals, strings.ToUpper(prefix),
comment("expected uppercase first-letter Purpose"),
)
... obtained string = "o"
... expected string = "O"
... command "gui" expected uppercase first-letter Purpose
upgrade-gui
upgrade to a new Juju GUI version
main_test.go:693:
c.Check(prefix, gc.Equals, strings.ToUpper(prefix),
comment("expected uppercase first-letter Purpose"),
)
... obtained string = "u"
... expected string = "U"
... command "upgrade-gui" expected uppercase first-letter Purpose
agree
agree to terms
main_test.go:693:
c.Check(prefix, gc.Equals, strings.ToUpper(prefix),
comment("expected uppercase first-letter Purpose"),
)
... obtained string = "a"
... expected string = "A"
... command "agree" expected uppercase first-letter Purpose
agreements
list user's agreements
main_test.go:693:
c.Check(prefix, gc.Equals, strings.ToUpper(prefix),
comment("expected uppercase first-letter Purpose"),
)
... obtained string = "l"
... expected string = "L"
... command "agreements" expected uppercase first-letter Purpose
allocate
allocate budget to services
main_test.go:693:
c.Check(prefix, gc.Equals, strings.ToUpper(prefix),
comment("expected uppercase first-letter Purpose"),
)
... obtained string = "a"
... expected string = "A"
... command "allocate" expected uppercase first-letter Purpose
budgets
list budgets
main_test.go:693:
c.Check(prefix, gc.Equals, strings.ToUpper(prefix),
comment("expected uppercase first-letter Purpose"),
)
... obtained string = "l"
... expected string = "L"
... command "budgets" expected uppercase first-letter Purpose
create-budget
create a new budget
main_test.go:693:
c.Check(prefix, gc.Equals, strings.ToUpper(prefix),
comment("expected uppercase first-letter Purpose"),
)
... obtained string = "c"
... expected string = "C"
... command "create-budget" expected uppercase first-letter Purpose
plans
list plans
main_test.go:693:
c.Check(prefix, gc.Equals, strings.ToUpper(prefix),
comment("expected uppercase first-letter Purpose"),
)
... obtained string = "l"
... expected string = "L"
... command "plans" expected uppercase first-letter Purpose
set-budget
set the budget limit
main_test.go:693:
c.Check(prefix, gc.Equals, strings.ToUpper(prefix),
comment("expected uppercase first-letter Purpose"),
)
... obtained string = "s"
... expected string = "S"
... command "set-budget" expected uppercase first-letter Purpose
set-plan
set the plan for an application
main_test.go:693:
c.Check(prefix, gc.Equals, strings.ToUpper(prefix),
comment("expected uppercase first-letter Purpose"),
)
... obtained string = "s"
... expected string = "S"
... command "set-plan" expected uppercase first-letter Purpose
show-budget
show budget usage
main_test.go:693:
c.Check(prefix, gc.Equals, strings.ToUpper(prefix),
comment("expected uppercase first-letter Purpose"),
)
... obtained string = "s"
... expected string = "S"
... command "show-budget" expected uppercase first-letter Purpose
update-allocation
update an allocation
main_test.go:693:
c.Check(prefix, gc.Equals, strings.ToUpper(prefix),
comment("expected uppercase first-letter Purpose"),
)
... obtained string = "u"
... expected string = "U"
... command "update-allocation" expected uppercase first-letter Purpose
OOPS: 0 passed, 1 FAILED
--- FAIL: TestPackage (0.20s)
FAIL
exit status 1
FAIL github.com/juju/juju/cmd/juju/commands 0.244s
|