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

Issue 7138062: cmd/juju: destroy-service command

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 3 months ago by fwereade
Modified:
11 years, 3 months ago
Reviewers:
dimitern, mp+143800, rog
Visibility:
Public.

Description

cmd/juju: destroy-service command ...plus some very minor consistency fixes in the same package. https://code.launchpad.net/~fwereade/juju-core/cli-destroy-service/+merge/143800 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 4

Patch Set 2 : cmd/juju: destroy-service command #

Unified diffs Side-by-side diffs Delta from patch set Stats (+107 lines, -3 lines) Patch
A [revision details] View 1 1 chunk +2 lines, -0 lines 0 comments Download
M cmd/juju/cmd_test.go View 1 chunk +1 line, -1 line 0 comments Download
M cmd/juju/destroyrelation_test.go View 1 chunk +0 lines, -1 line 0 comments Download
A cmd/juju/destroyservice.go View 1 1 chunk +51 lines, -0 lines 0 comments Download
A cmd/juju/destroyservice_test.go View 1 1 chunk +50 lines, -0 lines 0 comments Download
M cmd/juju/destroyunit.go View 1 chunk +1 line, -1 line 0 comments Download
M cmd/juju/main.go View 1 chunk +1 line, -0 lines 0 comments Download
M cmd/juju/main_test.go View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 5
fwereade
Please take a look.
11 years, 3 months ago (2013-01-18 00:26:02 UTC) #1
dimitern
LGTM, nice!
11 years, 3 months ago (2013-01-22 13:51:57 UTC) #2
rog
LGTM
11 years, 3 months ago (2013-01-25 16:35:58 UTC) #3
rog
LGTM https://codereview.appspot.com/7138062/diff/1/cmd/juju/destroyservice.go File cmd/juju/destroyservice.go (right): https://codereview.appspot.com/7138062/diff/1/cmd/juju/destroyservice.go#newcode32 cmd/juju/destroyservice.go:32: } else if !state.IsServiceName(args[0]) { s/else// ? (if ...
11 years, 3 months ago (2013-01-25 16:36:07 UTC) #4
fwereade
11 years, 3 months ago (2013-01-25 17:10:26 UTC) #5
*** Submitted:

cmd/juju: destroy-service command

...plus some very minor consistency fixes in the same package.

R=dimitern, rog
CC=
https://codereview.appspot.com/7138062

https://codereview.appspot.com/7138062/diff/1/cmd/juju/destroyservice.go
File cmd/juju/destroyservice.go (right):

https://codereview.appspot.com/7138062/diff/1/cmd/juju/destroyservice.go#newc...
cmd/juju/destroyservice.go:32: } else if !state.IsServiceName(args[0]) {
On 2013/01/25 16:36:08, rog wrote:
> s/else//
> ?
> (if there's an else, i always have to look twice to see if it's referring to a
> variable declared locally in the previous if)

Fair enough -- I rather like chunking tests that I consider related into the
same if/else construct, but it doesn't seem to help other people's understanding
the way it does mine, so I should probably try to lose the habit ;).

https://codereview.appspot.com/7138062/diff/1/cmd/juju/destroyservice_test.go
File cmd/juju/destroyservice_test.go (right):

https://codereview.appspot.com/7138062/diff/1/cmd/juju/destroyservice_test.go...
cmd/juju/destroyservice_test.go:26: // Create two services with a relation
between them.
On 2013/01/25 16:36:08, rog wrote:
> i think this is overkill, in all honest, as Service.Destroy is well tested in
> state. if we just created a service, destroyed it and checked that it was
gone,
> that would be sufficient. 
> 
> that said, if you think this is testing specific jujud functionality, by all
> means leave it in.

It's not, really. Done.
Sign in to reply to this message.

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