diff options
Diffstat (limited to 'bigtop-packages/src/charm/spark/layer-spark/tests/10-test-ha.py')
-rwxr-xr-x | bigtop-packages/src/charm/spark/layer-spark/tests/10-test-ha.py | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/bigtop-packages/src/charm/spark/layer-spark/tests/10-test-ha.py b/bigtop-packages/src/charm/spark/layer-spark/tests/10-test-ha.py index 99c604f9..998eaf28 100755 --- a/bigtop-packages/src/charm/spark/layer-spark/tests/10-test-ha.py +++ b/bigtop-packages/src/charm/spark/layer-spark/tests/10-test-ha.py @@ -28,10 +28,11 @@ class TestDeployment(unittest.TestCase): @classmethod def setUpClass(cls): cls.d = amulet.Deployment(series='xenial') - cls.d.add('spark-test-ha', 'cs:xenial/spark', units=3) - cls.d.add('zk-test', 'cs:xenial/zookeeper') + cls.d.add('spark-test-ha', charm='spark', + units=3, constraints={'mem': '7G'}) + cls.d.add('spark-test-zk', charm='zookeeper') - cls.d.relate('zk-test:zookeeper', 'spark-test-ha:zookeeper') + cls.d.relate('spark-test-zk:zookeeper', 'spark-test-ha:zookeeper') cls.d.expose('spark-test-ha') cls.d.setup(timeout=3600) @@ -41,10 +42,10 @@ class TestDeployment(unittest.TestCase): def tearDownClass(cls): # NB: seems to be a remove_service issue with amulet. However, the # unit does still get removed. Pass OSError for now: - # OSError: juju command failed ['remove-application', 'zk-test']: - # ERROR allocation for service ...zk-test... owned by ... not found + # OSError: juju command failed ['remove-application', ...]: + # ERROR allocation for service ... owned by ... not found try: - cls.d.remove_service('spark-test-ha', 'zk-test') + cls.d.remove_service('spark-test-ha', 'spark-test-zk') except OSError as e: print("IGNORE: Amulet remove_service failed: {}".format(e)) pass |