Ubuntu Pastebin

Paste from kwm at Thu, 14 Jan 2016 17:27:23 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/env python3

import unittest
import amulet


class TestDeploy(unittest.TestCase):
    """
    Deployment test for the Ubuntu Dev Env charm.

    This charm doesn't do much by itself, so we expect functional
    tests to happen in the subordinate charms that relate to this
    (for example, openjdk).
    """

    @classmethod
    def setUpClass(cls):
        cls.d = amulet.Deployment(series='trusty')
        cls.d.add('ubuntu-devenv', 'cs:~kwmonroe/trusty/ubuntu-devenv-1')
        cls.d.add('openjdk', 'cs:~kwmonroe/trusty/openjdk-1')
        cls.d.relate('ubuntu-devenv:java', 'openjdk:java')
        cls.d.setup(timeout=900)
        cls.d.sentry.wait(timeout=1800)
        cls.unit = cls.d.sentry['ubuntu-devenv'][0]
Download as text