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

Issue 6567060: firewaller: added tests for removals (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 7 months ago by TheMue
Modified:
11 years, 7 months ago
Reviewers:
mp+126651
Visibility:
Public.

Description

firewaller: added tests for removals Added two tests for the removing of units and services. It can happen that the removing has been done before the watchers in the firewaller are stopped. So here it must be checked if the watcher fails due to a not-found-error. https://code.launchpad.net/~themue/juju-core/go-firewaller-remove-tests-unit-service/+merge/126651 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 13

Patch Set 2 : firewaller: added tests for removals #

Patch Set 3 : firewaller: added tests for removals #

Unified diffs Side-by-side diffs Delta from patch set Stats (+205 lines, -33 lines) Patch
A [revision details] View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M worker/firewaller/firewaller.go View 1 9 chunks +54 lines, -33 lines 0 comments Download
M worker/firewaller/firewaller_test.go View 1 2 chunks +149 lines, -0 lines 0 comments Download

Messages

Total messages: 6
TheMue
Please take a look.
11 years, 7 months ago (2012-09-27 10:03:06 UTC) #1
rog
LGTM with a few thoughts below. https://codereview.appspot.com/6567060/diff/1/worker/firewaller/firewaller.go File worker/firewaller/firewaller.go (right): https://codereview.appspot.com/6567060/diff/1/worker/firewaller/firewaller.go#newcode92 worker/firewaller/firewaller.go:92: machined := unitd.machined ...
11 years, 7 months ago (2012-09-27 12:17:44 UTC) #2
niemeyer
A few comments follow. It'd be really nice to have a test that broke due ...
11 years, 7 months ago (2012-09-27 16:04:16 UTC) #3
TheMue
Please take a look. https://codereview.appspot.com/6567060/diff/1/worker/firewaller/firewaller.go File worker/firewaller/firewaller.go (right): https://codereview.appspot.com/6567060/diff/1/worker/firewaller/firewaller.go#newcode96 worker/firewaller/firewaller.go:96: // Clean up after stopping. ...
11 years, 7 months ago (2012-09-27 17:14:18 UTC) #4
niemeyer
LGTM, thanks.
11 years, 7 months ago (2012-09-27 17:32:32 UTC) #5
TheMue
11 years, 7 months ago (2012-09-28 08:06:53 UTC) #6
*** Submitted:

firewaller: added tests for removals

Added two tests for the removing of units and services. It can
happen that the removing has been done before the watchers in
the firewaller are stopped. So here it must be checked if the
watcher fails due to a not-found-error.

R=rog, niemeyer
CC=
https://codereview.appspot.com/6567060
Sign in to reply to this message.

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