2014-03-07 22:04:04 |
Sergey Lukjanov |
description |
Integration tests require OS_TENANT_ID and OS_TENANT_NAME parameters at the same time.
Exception if OS_TENANT_ID is not specified:
File "/home/ubuntu/savanna/.tox/integration/local/lib/python2.7/site-packages/savannaclient/api/node_group_templates.py", line 61, in create
'node_group_template')
...
File "/home/ubuntu/savanna/.tox/integration/local/lib/python2.7/site-packages/simplejson/decoder.py", line 389, in raw_decode
return self.scan_once(s, idx=_w(s, idx).end())
JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Exception if OS_TENANT_NAME is not specified:
...
File "/Users/andrew/Savanna/savanna/savanna/tests/integration/tests/base.py", line 90, in setUp
self.common_config.OS_TENANT_ID
File "/Users/andrew/Savanna/savanna/.tox/py27/lib/python2.7/site-packages/savannaclient/client.py", line 45, in Client
return client_class(*args, **kwargs)
...
File "/Users/andrew/Savanna/savanna/.tox/py27/lib/python2.7/site-packages/keystoneclient/v2_0/client.py", line 199, in _base_authN
resp, body = self.request(url, 'POST', body=params, headers=headers)
...
Unauthorized: The request you have made requires authentication. (HTTP 401)
I see two problems here:
1. User should be able to specify any of these two params, not both
2. Exceptions doesn't help at all |
Integration tests config sample should be updated with note that both OS_TENANT_ID and OS_TENANT_NAME should be specified.
=================================
Integration tests require OS_TENANT_ID and OS_TENANT_NAME parameters at the same time.
Exception if OS_TENANT_ID is not specified:
File "/home/ubuntu/savanna/.tox/integration/local/lib/python2.7/site-packages/savannaclient/api/node_group_templates.py", line 61, in create
'node_group_template')
...
File "/home/ubuntu/savanna/.tox/integration/local/lib/python2.7/site-packages/simplejson/decoder.py", line 389, in raw_decode
return self.scan_once(s, idx=_w(s, idx).end())
JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Exception if OS_TENANT_NAME is not specified:
...
File "/Users/andrew/Savanna/savanna/savanna/tests/integration/tests/base.py", line 90, in setUp
self.common_config.OS_TENANT_ID
File "/Users/andrew/Savanna/savanna/.tox/py27/lib/python2.7/site-packages/savannaclient/client.py", line 45, in Client
return client_class(*args, **kwargs)
...
File "/Users/andrew/Savanna/savanna/.tox/py27/lib/python2.7/site-packages/keystoneclient/v2_0/client.py", line 199, in _base_authN
resp, body = self.request(url, 'POST', body=params, headers=headers)
...
Unauthorized: The request you have made requires authentication. (HTTP 401)
I see two problems here:
1. User should be able to specify any of these two params, not both
2. Exceptions doesn't help at all |
|