GUI acceptance tests using environment deployed from packages.

Build: #1043 failed

Job: Chrome oneprovider ACL directories multi failed

create subdirectory[1oz 1op deployed-user-user2-succeeds-[data:list files, data:add subdirectory, data:traverse directory]]: Test case result

The below summarizes the result of the test " create subdirectory[1oz 1op deployed-user-user2-succeeds-[data:list files, data:add subdirectory, data:traverse directory]]" in build 1,043 of Onedata Products - gui acceptance pkg - Chrome oneprovider ACL directories multi.
Description
create subdirectory[1oz 1op deployed-user-user2-succeeds-[data:list files, data:add subdirectory, data:traverse directory]]
Test class
gui.scenarios.test_oneprovider_acl_dir_multi
Method
test_create_subdirectory[1oz_1op_deployed-user-user2-succeeds-[data:list files, data:add subdirectory, data:traverse directory]]
Duration
< 1 sec, 4 mins
Status
Failed (Existing Failure) , Successful (Fixed)

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 0x7fab8926b710>
admin_credentials = <tests.utils.user_utils.AdminUser object at 0x7fab892d95f8>
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 0x7fab8bae0a60>
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_create_subdirectory[1oz_1op_deployed-user-user2-succeeds-[data:list files, data:add subdirectory, data:traverse directory]]'>>

    @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