Amulet test:
class TestScaleStandalone(unittest.TestCase):
"""
Test scaling of Apache Spark in standalone mode.
"""
@classmethod
def setUpClass(cls):
cls.d = amulet.Deployment(series='xenial')
cls.d.add('spark-test-scale', 'cs:xenial/spark', units=3)
cls.d.setup(timeout=3600)
cls.d.sentry.wait(timeout=3600)
@classmethod
def tearDownClass(cls):
cls.d.remove_service('spark-test-scale')
Error:
2017-03-23 10:58:15 Starting deployment of azure-w:ci-70/job-4-alert-ghoul
2017-03-23 10:58:17 Deploying applications...
2017-03-23 10:58:18 Deploying application spark-test-scale using cs:xenial/spark-20
2017-03-23 11:23:22 Adding relations...
2017-03-23 11:23:22 Deployment complete in 1506.97 seconds
.E
======================================================================
ERROR: tearDownClass (__main__.TestScaleStandalone)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/cwr-tmp-XYy0Z8/tmp1KoQzy/cs:spark/tests/03-scale-standalone.py", line 36, in tearDownClass
cls.d.remove_service('spark-test-scale')
File "/usr/lib/python3/dist-packages/amulet/deployer.py", line 357, in remove_service
juju([remove_cmd, service])
File "/usr/lib/python3/dist-packages/amulet/helpers.py", line 72, in juju
"{}".format(args, _as_text(err)))
OSError: juju command failed ['remove-application', 'spark-test-scale']:
Opening an authorization web page in your browser.
If it does not open, please open this URL:
https://api.jujucharms.com/identity/v1/login?waitid=2a24ca83f0867b34522064d397ef9654
Couldn't find a suitable web browser!
Set the BROWSER environment variable to your desired browser.
ERROR failed to execute request: cannot get discharge from "https://api.jujucharms.com/identity/v1/discharger": cannot unmarshal wait error response: invalid character '<' looking for beginning of value
----------------------------------------------------------------------
Ran 1 test in 2220.567s
FAILED (errors=1)
Waiting for units to become ready.
Waiting for units to agree on master.
Killing master spark-test-scale/0
Waiting for the cluster to select a new master.