GUI acceptance tests using environment deployed from packages.
Build: #1046 failed
Job: Chrome oneprovider ACL directories multi failed
read directory acl[1oz 1op deployed-group-group1-succeeds-[acl:read acl]]: Test case result
The below summarizes the result of the test " read directory acl[1oz 1op deployed-group-group1-succeeds-[acl:read acl]]" in build 1,046 of Onedata Products - gui acceptance pkg - Chrome oneprovider ACL directories multi.
- Description
- read directory acl[1oz 1op deployed-group-group1-succeeds-[acl:read acl]]
- Test class
- gui.scenarios.test_oneprovider_acl_dir_multi
- Method
- test_read_directory_acl[1oz_1op_deployed-group-group1-succeeds-[acl:read acl]]
- Duration
- < 1 sec
- Status
- Failed (Existing Failure)
Error Log
tests.utils.http_exceptions.HTTPBadRequest: [400] Bad Request: {"error":{"id":"errorOnNodes","details":{"hostnames":["dev-onezone-0.dev-onezone.default.svc.cluster.local"],"error":{"id":"badValueIdentifierOccupied","details":{"key":"username"},"description":"Bad value: provided identifier (\"username\") is already occupied."}},"description":"Error on nodes dev-onezone-0.dev-onezone.default.svc.cluster.local: Bad value: provided identifier (\"username\") is already occupied."}} zone_hostname = 'dev-onezone.default.svc.cluster.local' onepanel_credentials = <tests.utils.user_utils.AdminUser object at 0x7fc019026400> admin_credentials = <tests.utils.user_utils.AdminUser object at 0x7fc018bcf3c8> username = 'user1', options = {}, rm_users = False def _create_user(zone_hostname, onepanel_credentials, admin_credentials, username, options, rm_users): password = options.get('password', 'password') generate_token = options.get('generate_token', True) user_conf_details = {'username': username, 'password': password, 'groups': []} # if user already exist (possible remnants of previous tests) skip test try: resp = http_get(ip=zone_hostname, port=PANEL_REST_PORT, path=get_panel_rest_path('zone', 'users', username), auth=(onepanel_credentials.username, > onepanel_credentials.password)).json() tests/gui/steps/rest/env_up/users.py:106: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ip = 'dev-onezone.default.svc.cluster.local', port = 9443 path = '/api/v3/onepanel/zone/users/user1', use_ssl = True, headers = None verify = False, cert = None, auth = ('onepanel', 'password') default_headers = True def http_get(ip, port, path, use_ssl=True, headers=None, verify=False, cert=None, auth=None, default_headers=True): return http_request(requests.get, ip, port, path, use_ssl, headers, > verify, cert, auth, default_headers=default_headers) tests/utils/rest_utils.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ http_method = <function get at 0x7fc01b979a60> ip = 'dev-onezone.default.svc.cluster.local', port = 9443 path = '/api/v3/onepanel/zone/users/user1', use_ssl = True, headers = None verify = False, cert = None, auth = ('onepanel', 'password'), data = None default_headers = True def http_request(http_method, ip, port, path, use_ssl=True, headers=None, verify=False, cert=None, auth=None, data=None, default_headers=True): protocol = 'https' if use_ssl else 'http' request_headers = DEFAULT_HEADERS.copy() if default_headers else {} if headers: request_headers.update(headers) response = http_method('{0}://{1}:{2}{3}'.format(protocol, ip, port, path), verify=verify, headers=request_headers, timeout=20, cert=cert, auth=auth, data=data) if 200 <= response.status_code < 300: return response else: > raise_http_exception(response) tests/utils/rest_utils.py:85: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ response = <Response [404]> def raise_http_exception(response): ex_cls = _exceptions.get(response.status_code, HTTPError) > raise ex_cls(response) E tests.utils.http_exceptions.HTTPNotFound: [404] Not Found: {"error":{"id":"errorOnNodes","details":{"hostnames":["dev-onezone-0.dev-onezone.default.svc.cluster.local"],"error":{"id":"notFound","description":"The resource could not be found."}},"description":"Error on nodes dev-onezone-0.dev-onezone.default.svc.cluster.local: The resource could not be found."}} tests/utils/http_exceptions.py:15: HTTPNotFound During handling of the above exception, another exception occurred: request = <FixtureRequest for <Function 'test_read_directory_acl[1oz_1op_deployed-group-group1-succeeds-[acl:read acl]]'>> @pytest.mark.usefixtures(*function_args) def scenario_wrapper(request): > _execute_scenario(feature, scenario, request, encoding) /usr/local/lib/python3.6/dist-packages/pytest_bdd/scenario.py:227: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/local/lib/python3.6/dist-packages/pytest_bdd/scenario.py:189: in _execute_scenario _execute_step_function(request, scenario, step, step_func) /usr/local/lib/python3.6/dist-packages/pytest_bdd/scenario.py:130: in _execute_step_function step_func(**kwargs) /usr/local/lib/python3.6/dist-packages/pytest_bdd/steps.py:162: in step_func result = request.getfixturevalue(func.__name__) /usr/local/lib/python3.6/dist-packages/_pytest/fixtures.py:428: in getfixturevalue return self._get_active_fixturedef(argname).cached_result[0] /usr/local/lib/python3.6/dist-packages/_pytest/fixtures.py:453: in _get_active_fixturedef self._compute_fixture_value(fixturedef) /usr/local/lib/python3.6/dist-packages/_pytest/fixtures.py:524: in _compute_fixture_value fixturedef.execute(request=subrequest) /usr/local/lib/python3.6/dist-packages/_pytest/fixtures.py:795: in execute return hook.pytest_fixture_setup(fixturedef=self, request=request) /usr/local/lib/python3.6/dist-packages/pluggy/__init__.py:617: in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) /usr/local/lib/python3.6/dist-packages/pluggy/__init__.py:222: in _hookexec return self._inner_hookexec(hook, methods, kwargs) /usr/local/lib/python3.6/dist-packages/pluggy/__init__.py:216: in <lambda> firstresult=hook.spec_opts.get('firstresult'), /usr/local/lib/python3.6/dist-packages/_pytest/fixtures.py:826: in pytest_fixture_setup result = call_fixture_func(fixturefunc, request, kwargs) /usr/local/lib/python3.6/dist-packages/_pytest/fixtures.py:705: in call_fixture_func res = next(it) tests/gui/steps/rest/env_up/users.py:32: in users_creation_with_cleanup users, rm_users) tests/gui/steps/rest/env_up/users.py:56: in users_creation raise ex tests/gui/steps/rest/env_up/users.py:51: in users_creation rm_users) tests/gui/steps/rest/env_up/users.py:109: in _create_user password, user_conf_details, generate_token) tests/gui/steps/rest/env_up/users.py:78: in _create_new_user data=json.dumps(user_conf_details)) tests/utils/rest_utils.py:57: in http_post verify, cert, auth, data, default_headers=default_headers) tests/utils/rest_utils.py:85: in http_request raise_http_exception(response) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ response = <Response [400]> def raise_http_exception(response): ex_cls = _exceptions.get(response.status_code, HTTPError) > raise ex_cls(response) E tests.utils.http_exceptions.HTTPBadRequest: [400] Bad Request: {"error":{"id":"errorOnNodes","details":{"hostnames":["dev-onezone-0.dev-onezone.default.svc.cluster.local"],"error":{"id":"badValueIdentifierOccupied","details":{"key":"username"},"description":"Bad value: provided identifier (\"username\") is already occupied."}},"description":"Error on nodes dev-onezone-0.dev-onezone.default.svc.cluster.local: Bad value: provided identifier (\"username\") is already occupied."}} tests/utils/http_exceptions.py:15: HTTPBadRequest