@@ -23,7 +23,6 @@ import (
23
23
gc "gopkg.in/check.v1"
24
24
25
25
"github.com/juju/juju/cmd/juju/application"
26
- "github.com/juju/juju/cmd/juju/block"
27
26
"github.com/juju/juju/cmd/juju/cloud"
28
27
"github.com/juju/juju/cmd/modelcmd"
29
28
cmdtesting "github.com/juju/juju/cmd/testing"
@@ -52,10 +51,6 @@ func syncToolsHelpText() string {
52
51
return cmdtesting .HelpText (newSyncToolsCommand (), "juju sync-tools" )
53
52
}
54
53
55
- func blockHelpText () string {
56
- return cmdtesting .HelpText (block .NewSuperBlockCommand (), "juju block" )
57
- }
58
-
59
54
func (s * MainSuite ) TestRunMain (c * gc.C ) {
60
55
// The test array structure needs to be inline here as some of the
61
56
// expected values below use deployHelpText(). This constructs the deploy
@@ -132,18 +127,7 @@ func (s *MainSuite) TestRunMain(c *gc.C) {
132
127
Arch : arch .HostArch (),
133
128
Series : series .HostSeries (),
134
129
}.String () + "\n " ,
135
- }, {
136
- summary : "check block command registered properly" ,
137
- args : []string {"block" , "-h" },
138
- code : 0 ,
139
- out : blockHelpText (),
140
- }, {
141
- summary : "check unblock command registered properly" ,
142
- args : []string {"unblock" },
143
- code : 0 ,
144
- out : "error: must specify one of [destroy-model | remove-object | all-changes] to unblock\n " ,
145
- },
146
- } {
130
+ }} {
147
131
c .Logf ("test %d: %s" , i , t .summary )
148
132
out := badrun (c , t .code , t .args ... )
149
133
c .Assert (out , gc .Equals , t .out )
@@ -418,7 +402,6 @@ var commandNames = []string{
418
402
"allocate" ,
419
403
"autoload-credentials" ,
420
404
"backups" ,
421
- "block" ,
422
405
"bootstrap" ,
423
406
"budgets" ,
424
407
"cached-images" ,
@@ -437,9 +420,12 @@ var commandNames = []string{
437
420
"deploy" ,
438
421
"destroy-controller" ,
439
422
"destroy-model" ,
423
+ "disable-command" ,
440
424
"disable-user" ,
425
+ "disabled-commands" ,
441
426
"download-backup" ,
442
427
"enable-ha" ,
428
+ "enable-command" ,
443
429
"enable-user" ,
444
430
"expose" ,
445
431
"get-config" ,
@@ -455,13 +441,13 @@ var commandNames = []string{
455
441
"kill-controller" ,
456
442
"list-actions" ,
457
443
"list-agreements" ,
458
- "list-all-blocks" ,
459
444
"list-backups" ,
460
445
"list-budgets" ,
461
446
"list-cached-images" ,
462
447
"list-clouds" ,
463
448
"list-controllers" ,
464
449
"list-credentials" ,
450
+ "list-disabled-commands" ,
465
451
"list-machines" ,
466
452
"list-models" ,
467
453
"list-plans" ,
@@ -531,7 +517,6 @@ var commandNames = []string{
531
517
"subnets" ,
532
518
"switch" ,
533
519
"sync-tools" ,
534
- "unblock" ,
535
520
"unexpose" ,
536
521
"update-allocation" ,
537
522
"upload-backup" ,
0 commit comments