cmd/juju/application: make deploy init tests assume less about internals #7274

Merged
merged 1 commit into from Apr 26, 2017

Conversation

Projects
None yet
5 participants
Owner

rogpeppe commented Apr 25, 2017

The tests are doing a deep-equal comparison of the deploy
command, which assumes more than it should about what
the state of the embedded objects. Make the code check
the fields it cares about explicitly.

Also clean up things a little bit:

  • NewDeployCommand is now the standard constructor, consistent
    with the other commands.
  • use runDeploy throughout, losing the hard-to-remember distinction
    between runDeploy and runDeployCommand.

QA check that the deploy command works.

Owner

rogpeppe commented Apr 25, 2017

!!build!!

LGTM

Owner

nskaggs commented Apr 25, 2017

!!build!!

Thanks, this seems much nicer.

cmd/juju/application: make deploy init tests assume less about internals
The tests are doing a deep-equal comparison of the deploy
command, which assumes more than it should about what
the state of the embedded objects. Make the code check
the fields it cares about explicitly.

Also clean up things a little bit:
- NewDeployCommand is now the standard constructor, consistent
with the other commands.
- use runDeploy throughout, losing the hard-to-remember distinction
between runDeploy and runDeployCommand.
Owner

rogpeppe commented Apr 26, 2017

$$merge$$

Contributor

jujubot commented Apr 26, 2017

Status: merge request accepted. Url: http://juju-ci.vapour.ws:8080/job/github-merge-juju

@jujubot jujubot merged commit 0548895 into juju:develop Apr 26, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment