Merge lp:~fwereade/juju-core/trivial-new-unit-test-charms into lp:~juju/juju-core/trunk
Status: | Rejected |
---|---|
Rejected by: | William Reade |
Proposed branch: | lp:~fwereade/juju-core/trivial-new-unit-test-charms |
Merge into: | lp:~juju/juju-core/trunk |
Diff against target: |
50 lines (+18/-0) 6 files modified
testing/repo/series/rel-peer/metadata.yaml (+5/-0) testing/repo/series/rel-peer/revision (+1/-0) testing/repo/series/rel-pro/metadata.yaml (+5/-0) testing/repo/series/rel-pro/revision (+1/-0) testing/repo/series/rel-req/metadata.yaml (+5/-0) testing/repo/series/rel-req/revision (+1/-0) |
To merge this branch: | bzr merge lp:~fwereade/juju-core/trivial-new-unit-test-charms |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
The Go Language Gophers | Pending | ||
Review via email: mp+132080@code.launchpad.net |
Description of the change
testing: add useful charms
This is just 3 new charms, each of which supplies one relation of the type
indicated by its name. Nothing is using them yet; I'll be going through the
various tests step by step, to ensure that everything uses real relations,
in advance of changing AddRelation to verify that the related services
really do implement the endpoints suggested in the params.
I don't really expect these to be the *only* charms I'll need, but this is a
good start, and I'm keen to make the individual elements of this pipeline as
small and clean as possible, because the forces in play tend towards vast
and ugly diffs.
Unmerged revisions
- 699. By William Reade
-
add test charms to allow future relationy unit tests to add verified relations to services
- 698. By Dave Cheney
-
worker/provisioner: fix race on config reload
Bug #1064144 was cause by a race between the PA reloading it's config -or-
observing a change to the machines collection. This proposal adds an observer
that the tests can use to wait until the PA has ack'd the configuration
change.R=fwereade, niemeyer
CC=
https://codereview. appspot. com/6742049 - 697. By William Reade
-
state: drop obsolete relation lifecycle
drop:
* Relation.
EnsureDying
* Relation.EnsureDead
* State.RemoveRelation ...and use Relation.Destroy and RelationUnit.
LeaveScope instead throughout. R=niemeyer
CC=
https://codereview. appspot. com/6812047 - 696. By William Reade
-
state: Relation.Destroy
...and `juju remove-relation`, because it's trivial now that Destroy exists.
Points to note:
* Relation.
EnsureDying, Relation. EnsureDead, and State.RemoveRel ation are
now obsolete, and will be remove entirely in a followup CL; omitted here
due to volume of change.
* It's still called remove-relation, instead of destroy-relation + alias,
because it seems more sensible to fix remove-unit at the same time and it
also deserves a separate CL IMO.R=niemeyer
CC=
https://codereview. appspot. com/6783051 - 695. By Roger Peppe
-
worker/uniter: make logger predictable
The stdout pipe is closed too early by os/exec;
do the work ourselves to prevent this.R=dfc, niemeyer
CC=
https://codereview. appspot. com/6774050 - 694. By William Reade
-
juju:implement add-relation
R=niemeyer
CC=
https://codereview. appspot. com/6761044 - 693. By William Reade
-
upstart: use better Out value
We now use the same value for upstart conf Out fields as we do --log-file
params. No idea what I did to lead myself to think it didn't work...Also, made log file names more consistent (ie $kind-$name.log, with no
explicit "-agent")R=rog, niemeyer
CC=
https://codereview. appspot. com/6766051 - 692. By William Reade
-
uniter/charm: verify upgrade symlink overwrite
Verifies non-existence of lp:988115 in juju-core
R=niemeyer
CC=
https://codereview. appspot. com/6760046 - 691. By Frank Mueller
-
firewaller: integrated global mode
Firewaller now recognizes the global mode. It dies a
port usage counting usage counting and opens each
used port only once and closes it after the last using unit
has gone. The handling of ports in case of a restart has
been removed from this CL to a later one. - 690. By Roger Peppe
-
cmd/builddb: fix ssl build
Also add a couple of log messages.
R=fwereade, dfc
CC=
https://codereview. appspot. com/6776051
Reviewers: mp+132080_ code.launchpad. net,
Message:
Please take a look.
Description:
testing: add useful charms
This is just 3 new charms, each of which supplies one relation of the
type
indicated by its name. Nothing is using them yet; I'll be going through
the
various tests step by step, to ensure that everything uses real
relations,
in advance of changing AddRelation to verify that the related services
really do implement the endpoints suggested in the params.
I don't really expect these to be the *only* charms I'll need, but this
is a
good start, and I'm keen to make the individual elements of this
pipeline as
small and clean as possible, because the forces in play tend towards
vast
and ugly diffs.
https:/ /code.launchpad .net/~fwereade/ juju-core/ trivial- new-unit- test-charms/ +merge/ 132080
(do not edit description out of merge proposal)
Please review this at https:/ /codereview. appspot. com/6811052/
Affected files: repo/series/ rel-peer/ metadata. yaml repo/series/ rel-peer/ revision repo/series/ rel-pro/ metadata. yaml repo/series/ rel-pro/ revision repo/series/ rel-req/ metadata. yaml repo/series/ rel-req/ revision
A [revision details]
A testing/
A testing/
A testing/
A testing/
A testing/
A testing/
Index: [revision details]
=== added file '[revision details]'
--- [revision details] 2012-01-01 00:00:00 +0000
+++ [revision details] 2012-01-01 00:00:00 +0000
@@ -0,0 +1,2 @@
+Old revision: <email address hidden>
+New revision: <email address hidden>
Index: testing/ repo/series/ rel-peer/ metadata. yaml repo/series/ rel-peer/ metadata. yaml' repo/series/ rel-peer/ metadata. yaml 1970-01-01 00:00:00 +0000 repo/series/ rel-peer/ metadata. yaml 2012-10-30 11:48:17 +0000
=== added file 'testing/
--- testing/
+++ testing/
@@ -0,0 +1,5 @@
+name: peer
+summary: Test charm with a peer relation
+description: Test charm with a peer relation
+peers:
+ name: ifce
Index: testing/ repo/series/ rel-peer/ revision repo/series/ rel-peer/ revision' repo/series/ rel-peer/ revision 1970-01-01 00:00:00 +0000 repo/series/ rel-peer/ revision 2012-10-30 11:48:17 +0000
=== added file 'testing/
--- testing/
+++ testing/
@@ -0,0 +1,1 @@
+1
Index: testing/ repo/series/ rel-pro/ metadata. yaml repo/series/ rel-pro/ metadata. yaml' repo/series/ rel-pro/ metadata. yaml 1970-01-01 00:00:00 +0000 repo/series/ rel-pro/ metadata. yaml 2012-10-30 11:48:17 +0000
=== added file 'testing/
--- testing/
+++ testing/
@@ -0,0 +1,5 @@
+name: pro
+summary: Test charm with a provider relation
+description: Test charm with a provider relation
+provides:
+ pname: ifce
Index: testing/ repo/series/ rel-pro/ revision repo/series/ rel-pro/ revision' repo/series/ rel-pro/ revision 1970-01-01 00:00:00 +0000 repo/series/ rel-pro/ revision 2012-10-30 11:48:17 +0000
=== added file 'testing/
--- testing/
+++ testing/
@@ -0,0 +1,1 @@
+1
Index: testing/ repo/series/ rel-req/ metadata. yaml repo/series/ rel-req/ metadata. yaml' repo/series/ rel-req/ metadata. yaml 1970-01-01 00:00:00 +0000 repo/series/ rel-req/ metadata. yaml 2012-10-30 11:48:17 +0000
=== added file 'testing/
--- testing/
+++ testing/
@@ -0,0 +1,5 @@
+name: req
+summary: Test charm with a requirer relation
+description: Test ...