Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(397)

Delta Between Two Patch Sets: cmd/juju/cmd_test.go

Issue 6484051: cmd/juju: simplify testing infrastructure.
Left Patch Set: Created 12 years, 7 months ago
Right Patch Set: cmd/juju: simplify testing infrastructure. Created 12 years, 7 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « cmd/juju/addunit_test.go ('k') | cmd/juju/deploy_test.go » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 package main 1 package main
2 2
3 import ( 3 import (
4 "launchpad.net/gnuflag" 4 "launchpad.net/gnuflag"
5 . "launchpad.net/gocheck" 5 . "launchpad.net/gocheck"
6 "launchpad.net/juju-core/cmd" 6 "launchpad.net/juju-core/cmd"
7 "launchpad.net/juju-core/environs" 7 "launchpad.net/juju-core/environs"
8 "launchpad.net/juju-core/environs/dummy" 8 "launchpad.net/juju-core/environs/dummy"
9 "launchpad.net/juju-core/juju/testing" 9 "launchpad.net/juju-core/juju/testing"
10 "launchpad.net/juju-core/version" 10 "launchpad.net/juju-core/version"
11 "net/http" 11 "net/http"
12 "os" 12 "os"
13 "reflect" 13 "reflect"
14 ) 14 )
15 15
16 type CmdSuite struct { 16 type CmdSuite struct {
17 testing.JujuConnSuite 17 testing.JujuConnSuite
18 } 18 }
19 19
20 var _ = Suite(&CmdSuite{}) 20 var _ = Suite(&CmdSuite{})
21 21
22 // N.B. none of the environment names in this config
23 // should coincide with the environment name used in
24 // JujuConnSuite.
25 var config = ` 22 var config = `
26 default: 23 default:
27 peckham 24 peckham
28 environments: 25 environments:
29 peckham: 26 peckham:
30 type: dummy 27 type: dummy
31 zookeeper: false 28 zookeeper: false
32 authorized-keys: i-am-a-key 29 authorized-keys: i-am-a-key
33 walthamstow: 30 walthamstow:
34 type: dummy 31 type: dummy
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 return com, com.Init(newFlagSet(), args) 285 return com, com.Init(newFlagSet(), args)
289 } 286 }
290 287
291 func (*CmdSuite) TestUnexposeCommandInit(c *C) { 288 func (*CmdSuite) TestUnexposeCommandInit(c *C) {
292 // missing args 289 // missing args
293 _, err := initUnexposeCommand() 290 _, err := initUnexposeCommand()
294 c.Assert(err, ErrorMatches, "no service name specified") 291 c.Assert(err, ErrorMatches, "no service name specified")
295 292
296 // environment tested elsewhere 293 // environment tested elsewhere
297 } 294 }
LEFTRIGHT

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b