Add secrets operations in cloudify.py 83/60083/1
authorCédric Ollivier <cedric.ollivier@orange.com>
Sun, 22 Jul 2018 13:25:07 +0000 (15:25 +0200)
committerCédric Ollivier <cedric.ollivier@orange.com>
Sun, 22 Jul 2018 13:26:36 +0000 (15:26 +0200)
commitf426c72f2bb6381c631794a4b9f4c3322832e0d3
treeb8352c83b9f2f38d32d5b3aab4e0153bff7eb3d8
parenta80ebe8794dd2693203ceea65a13a69dcf508f94
Add secrets operations in cloudify.py

It tries to prevent race conditions when running cloudify_ims.

Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/functest/core/singlevm.py", line 411, in run
    if not self.execute():
  File "/usr/lib/python2.7/site-packages/functest/opnfv_tests/vnf/ims/cloudify_ims.py", line 120, in execute
    self.cfy_client.secrets.create(k, val)
  File "/usr/lib/python2.7/site-packages/cloudify_rest_client/secrets.py", line 86, in create
    response = self.api.put('/secrets/{0}'.format(key), data=data)
  File "/usr/lib/python2.7/site-packages/cloudify_rest_client/client.py", line 263, in put
    timeout=timeout)
  File "/usr/lib/python2.7/site-packages/cloudify_rest_client/client.py", line 233, in do_request
    'SSL, but the client does'.format(e)
ConnectionError: ('Connection aborted.', BadStatusLine("''",))

Change-Id: Id2603bbda462b50d3140b6f45894c8810d542e4c
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
functest/core/cloudify.py