Merge lp:~themue/juju-core/go-provisioning-test-fix into lp:~juju/juju-core/trunk
Status: | Work in progress |
---|---|
Proposed branch: | lp:~themue/juju-core/go-provisioning-test-fix |
Merge into: | lp:~juju/juju-core/trunk |
Diff against target: |
38 lines (+16/-12) 1 file modified
cmd/jujud/provisioning_test.go (+16/-12) |
To merge this branch: | bzr merge lp:~themue/juju-core/go-provisioning-test-fix |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
The Go Language Gophers | Pending | ||
Review via email: mp+119489@code.launchpad.net |
Description of the change
provisioning: fixed a race condition in testing
The test if the provisioner and the firewaller are running
had a race condition. And additional test for nil prevents
this.
Unmerged revisions
- 381. By Frank Mueller
-
provisioning: made the test fix a bit more safe
- 380. By Frank Mueller
-
provisioning: fix race condition in test
- 379. By Dave Cheney
-
cmd/juju: add unexpose
Unexpose unexposes exposed services previously exposed with juju expose.
R=niemeyer
CC=
https://codereview. appspot. com/6450103 - 378. By Roger Peppe
-
jujutest: speed up live tests
There's no need for TestBootstrap to connect
to the state (the slowest part of the test), as
this is also tested in TestBootstrapProvisioner. R=dfc, niemeyer
CC=
https://codereview. appspot. com/6442098 - 377. By Roger Peppe
-
worker/uniter: simplify EnsureTools and make it concurrent-safe
If someone breaks the symlinks, the user "gets everything they deserve".
Avoiding the link reading logic makes it trivial for EnsureTools
to be idempotent, even when run concurrently.Also fix the agent name to match our upstart convention
which prefixes the tools directory with the agent kind.R=fwereade, niemeyer
CC=
https://codereview. appspot. com/6461061 - 376. By William Reade
-
add uniter.EnsureTools
...which will write jujuc symlinks into the agent's tools dir for every
known hook command, and bail if it cannot do so for any reason.R=niemeyer
CC=
https://codereview. appspot. com/6445089 - 375. By Dave Cheney
-
cmd/juju: add expose
Adds juju expose command, also normalises the format of
commadn descriptions (no capital letters, no trailing period).R=fwereade, niemeyer
CC=
https://codereview. appspot. com/6458085 - 374. By Dave Cheney
-
cmd/juju: add add-unit command
add-unit adds units.
R=fwereade, rog, niemeyer
CC=
https://codereview. appspot. com/6449093 - 373. By William Reade
-
less spam
(help is only printed on --help, not on any cmd parse error)
R=niemeyer
CC=
https://codereview. appspot. com/6458094 - 372. By William Reade
-
add uniter.Relationer
This is a slightly unsatisfying type that emerged fairly naturally from a
sketch of a Uniter type that seemed to be going in a nice direction but
getting big. I don't think this type is complete yet (lifecycle handling
will, I think, force some reasonably significant changes, in time) but it
is a useful and self-contained chunk of functionality and IMO worth the
propose.Better name suggestions would be appreciated, though.
R=dfc, niemeyer
CC=
https://codereview. appspot. com/6442088
https:/ /codereview. appspot. com/6462057/ diff/3001/ cmd/jujud/ provisioning_ test.go provisioning_ test.go (right):
File cmd/jujud/
https:/ /codereview. appspot. com/6462057/ diff/3001/ cmd/jujud/ provisioning_ test.go# newcode35 provisioning_ test.go: 35: }
cmd/jujud/
else ...?
https:/ /codereview. appspot. com/6462057/