Acceptance tests using different clients concurrently. Environment deployed from packages.

Build: #272 was successful

Job: LUMA multiprovider tests was successful

user cannot remove file using client if he is not its owner: Test case result

The below summarizes the result of the test " user cannot remove file using client if he is not its owner" in build 272 of Onedata Products - mixed acceptance pkg - LUMA multiprovider tests.
Description
user cannot remove file using client if he is not its owner
Test class
mixed_oneclient.scenarios.test_luma_multiprovider
Method
test_user_cannot_remove_file_using_client_if_he_is_not_its_owner
Jira Issue
Duration
1 min
Status
Failed (Existing Failure)

Error Log

RuntimeError: Error when executing command "kubectl exec dev-oneclient-paris-6f75d55494-9w8dd -- mkdir -p /mnt/oneclient/joe/krk-pl-par-c/dir": mkdir: cannot create directory '/mnt/oneclient/joe/krk-pl-par-c': Permission denied command terminated with exit code 1 ;
request = <FixtureRequest for <Function 'test_user_cannot_remove_file_using_client_if_he_is_not_its_owner'>>

    from tests.gui.steps.modal import *
>   from tests.gui.steps.oneprovider_common import *

tests/mixed_oneclient/scenarios/test_luma_multiprovider.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/local/lib/python2.7/dist-packages/pytest_bdd/scenario.py:195: in _execute_scenario
    _execute_step_function(request, scenario, step, step_func)
/usr/local/lib/python2.7/dist-packages/pytest_bdd/scenario.py:137: in _execute_step_function
    step_func(**kwargs)
tests/mixed_oneclient/steps/oneclient/common.py:51: in create_file
    do_mkdir(parent_path, pod_name)
tests/utils/oneclient_utils.py:36: in do_mkdir
    execute_command(EXEC_CMD + [pod_name, '--'] + cmd)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cmd = ['kubectl', 'exec', 'dev-oneclient-paris-6f75d55494-9w8dd', '--', 'mkdir', '-p', ...]
error = None, should_fail = False

    def execute_command(cmd, error=None, should_fail=False):
        process = subprocess.Popen(cmd, stdout=subprocess.PIPE,
                                   stderr=subprocess.PIPE)
        output, err = process.communicate()
        if (process.returncode != 0) ^ should_fail:
            raise RuntimeError('{}: {}; {}'.format(error, err, output) if error
                               else 'Command did not fail: {}, Err: {}, Output: {}'
                               .format(' '.join(cmd), err, output)
                               if should_fail else 'Error when executing command '
>                              '"{}": {}; {}'.format(' '.join(cmd), err, output))
E           RuntimeError: Error when executing command "kubectl exec dev-oneclient-paris-6f75d55494-9w8dd -- mkdir -p /mnt/oneclient/joe/krk-pl-par-c/dir": mkdir: cannot create directory '/mnt/oneclient/joe/krk-pl-par-c': Permission denied
E           command terminated with exit code 1
E           ;

tests/utils/acceptance_utils.py:70: RuntimeError