~axwalk/juju-core/ssh-gocrypto-client

Viewing all changes in revision 2141.

  • Committer: Tarmac
  • Author(s): Tim Penhey
  • Date: 2013-12-13 03:11:49 UTC
  • mfrom: (2132.3.5 refactor-uniter-tests)
  • Revision ID: tarmac-20131213031149-ez3alh8j3rh8agjc
[r=thumper] Refactor uniter tests

We needed to have a better way to match the hooks that had been executed by
the uniter in the tests. Instead of relying on log messages that the hooks
wrote out, instead we have the uniter optionally call out to an observer.

Part of this work also involved breaking up some of the larger methods in the
Context and the Uniter methods. These broken up bits are used by the code
that runs generic commands coming shortly.

A fundamental change is that now if a hook is missing, instead of silently
passing, the context now returns a missingHookError.

https://codereview.appspot.com/41210043/

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: