~juju-qa/ubuntu/xenial/juju/2.0-rc2

« back to all changes in this revision

Viewing changes to src/github.com/juju/juju/cmd/juju/commands/main_test.go

  • Committer: Nicholas Skaggs
  • Date: 2016-09-30 14:39:30 UTC
  • mfrom: (1.8.1)
  • Revision ID: nicholas.skaggs@canonical.com-20160930143930-vwwhrefh6ftckccy
import upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
var _ = gc.Suite(&MainSuite{})
42
42
 
43
43
func deployHelpText() string {
44
 
        return cmdtesting.HelpText(application.NewDeployCommand(), "juju deploy")
 
44
        return cmdtesting.HelpText(application.NewDefaultDeployCommand(), "juju deploy")
45
45
}
46
 
func setconfigHelpText() string {
47
 
        return cmdtesting.HelpText(application.NewSetCommand(), "juju set-config")
 
46
func configHelpText() string {
 
47
        return cmdtesting.HelpText(application.NewConfigCommand(), "juju config")
48
48
}
49
49
 
50
50
func syncToolsHelpText() string {
84
84
                code:    0,
85
85
                out:     deployHelpText(),
86
86
        }, {
87
 
                summary: "juju --help set-config shows the same help as 'help set-config'",
88
 
                args:    []string{"--help", "set-config"},
 
87
                summary: "juju --help config shows the same help as 'help config'",
 
88
                args:    []string{"--help", "config"},
89
89
                code:    0,
90
 
                out:     setconfigHelpText(),
 
90
                out:     configHelpText(),
91
91
        }, {
92
 
                summary: "juju set-config --help shows the same help as 'help set-config'",
93
 
                args:    []string{"set-config", "--help"},
 
92
                summary: "juju config --help shows the same help as 'help config'",
 
93
                args:    []string{"config", "--help"},
94
94
                code:    0,
95
 
                out:     setconfigHelpText(),
 
95
                out:     configHelpText(),
96
96
        }, {
97
97
                summary: "unknown command",
98
98
                args:    []string{"discombobulate"},
408
408
        "change-user-password",
409
409
        "charm",
410
410
        "clouds",
 
411
        "config",
411
412
        "collect-metrics",
412
413
        "controllers",
413
414
        "create-backup",
414
415
        "create-budget",
415
416
        "create-storage-pool",
416
417
        "credentials",
 
418
        "controller-config",
417
419
        "debug-hooks",
418
420
        "debug-log",
419
421
        "remove-user",
429
431
        "enable-destroy-controller",
430
432
        "enable-user",
431
433
        "expose",
432
 
        "get-config",
433
434
        "get-constraints",
434
 
        "get-controller-config",
435
435
        "get-model-constraints",
436
436
        "grant",
437
437
        "gui",
451
451
        "list-machines",
452
452
        "list-models",
453
453
        "list-plans",
454
 
        "list-shares",
455
454
        "list-ssh-keys",
456
455
        "list-spaces",
457
456
        "list-storage",
485
484
        "run-action",
486
485
        "scp",
487
486
        "set-budget",
488
 
        "set-config",
489
487
        "set-constraints",
490
488
        "set-default-credential",
491
489
        "set-default-region",
492
490
        "set-meter-status",
493
491
        "set-model-constraints",
494
492
        "set-plan",
495
 
        "shares",
496
493
        "show-action-output",
497
494
        "show-action-status",
498
495
        "show-backup",