amulet not respecting series= declaration for multi-series charms #137

Closed
chuckbutler opened this Issue May 13, 2016 · 0 comments

Comments

Projects
None yet
2 participants
Contributor

chuckbutler commented May 13, 2016

With the following snippet in a layers metadata.yaml

series:
  - trusty
  - xenial

And the following defined in a test in tests/10-deploy-test.py

        cls.deployment = amulet.Deployment(series='xenial')

I will get a trusty series charm every time i execute the tests. I've discovered that if you move 'xenial' to the top of the series list on the output charm, it will deploy the series of xenial, but it appears the series= directive was not respected.

ii amulet 1.14.4-0ubuntu4~ubuntu1 all Testing harness for Juju Charms

@tvansteenburgh tvansteenburgh self-assigned this May 13, 2016

@marcoceppi marcoceppi closed this in #138 May 13, 2016

marcoceppi added a commit that referenced this issue May 13, 2016

#138: Explicitly pass series through to deployer for each charm (fixes
…#137)

Otherwise deployer may try to infer a default series from
the charm metadata, which may result in a different series
than the one specified in the test.

@chuckbutler chuckbutler referenced this issue in CanonicalLtd/jujucharms.com May 17, 2016

Closed

deploy cs:trusty/ubuntu deploys Xenial charm #263

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