You need to define the services in the deployment, even if they are already
deployed
by bundletester. So for example:

cls.deployment.add('docker')
cls.deployment.add('limeds')

On Mon, Jan 16, 2017 at 10:15 AM, Merlijn Sebrechts <
merlijn.sebrec...@gmail.com> wrote:

> Hi all
>
>
> Code: https://github.com/IBCNServices/bundle-limeds-
> core/blob/master/tests/20-basic-check.py
>
> I'm basing these tests off of the kubernetes core bundle. I want to rely
> on bundletester to deploy the bundle and then use the deployed applications
> to run tests.
>
> When I run these tests, Amulet doesn't seem to find the deployed units.
>
> code:
>
>         cls.docker = cls.deployment.sentry['docker']
>         cls.limeds = cls.deployment.sentry['limeds']
>         print("docker: {}".format(cls.docker))
>         for unit in cls.docker:
>             print(unit.info['public-address'])
>         print("limeds: {}".format(cls.limeds))
>         for unit in cls.limeds:
>             print(unit.info['public-address'])
> output:
>
> docker: []
> limeds: []
>
>
> I expected both docker and limeds to contain one unit, since they are
> indeed deployed.
>
> docker/0*             active       idle   1        54.85.195.24
>  30001/tcp,30002/tcp  Ready
> limeds/0*             active       idle   1        54.85.195.24
>               Ready. (ibcndevs/limeds)
>
>
> What am I doing wrong?
>
>
>
> Kind regards
> Merlijn
>
>
> --
> Juju mailing list
> Juju@lists.ubuntu.com
> Modify settings or unsubscribe at: https://lists.ubuntu.com/
> mailman/listinfo/juju
>
>
-- 
Juju mailing list
Juju@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju

Reply via email to