Unit number is increasing in latest juju version.
Matthew Williams
matthew.williams at canonical.com
Fri Nov 13 09:56:01 UTC 2015
Hi Sunitha,
I believe you can do the following:
unit_manager_0 = self.d.sentry["ibm-mobilefirst-server"][0]
Does that resolve the problem?
Many thanks
Matty
On Fri, Nov 13, 2015 at 9:50 AM, Sunitha Radharapu <sradhara at in.ibm.com>
wrote:
> Hi,
>
> We have found in juju *1.25.0.1* version that each time service gets
> deployed unit number is increased like below.
> "service-name/1, service-name/2, service-name/n......"
> Earlier juju versions everytime we would deploy unit number would be same
> as "service-name/0".
>
> Due to this change our amulet tests are failing since we have hardcoded
> unit name as shown below;
>
> def test_case(self):
> self.assertTrue(self.d.deployed)
> unit_manager_0 = self.d.sentry.unit['*ibm-mobilefirst-server/0*']
> address = unit_manager_0.info['public-address']
>
> Can you please suggest a way to get dynamic unit name while running tests.
>
> Thanks,
> Sunitha.
>
>
>
>
>
>
>
>
>
>
>
> --
> Juju mailing list
> Juju at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/juju
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/juju/attachments/20151113/02c2e34a/attachment.html>
More information about the Juju
mailing list