Acceptance tests using different clients concurrently. Environment deployed from packages.
Build: #3058 failed
Job: Permission POSIX multi failed
user1 creates file using client0 and user2 fails to change its permission using client2[1oz 1op 2oc-RESt-oneclient2-RESt]: Test case result
The below summarizes the result of the test " user1 creates file using client0 and user2 fails to change its permission using client2[1oz 1op 2oc-RESt-oneclient2-RESt]" in build 3,058 of Onedata Products - mixed acceptance pkg - Permission POSIX multi.
- Description
- user1 creates file using client0 and user2 fails to change its permission using client2[1oz 1op 2oc-RESt-oneclient2-RESt]
- Test class
- mixed.scenarios.test_permission_posix_multi
- Method
- test_user1_creates_file_using_client0_and_user2_fails_to_change_its_permission_using_client2[1oz_1op_2oc-REST-oneclient2-REST]
- Duration
- 2 mins
- Status
- Failed (New Failure)
Error Log
TypeError: Got an unexpected keyword argument 'attribute' to method get_attrs request = <FixtureRequest for <Function 'test_user1_creates_file_using_client0_and_user2_fails_to_change_its_permission_using_client2[1oz_1op_2oc-REST-oneclient2-REST]'>> @pytest.mark.usefixtures(*function_args) def scenario_wrapper(request): > _execute_scenario(feature, scenario, request, encoding) /usr/local/lib/python3.8/dist-packages/pytest_bdd/scenario.py:227: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/local/lib/python3.8/dist-packages/pytest_bdd/scenario.py:189: in _execute_scenario _execute_step_function(request, scenario, step, step_func) /usr/local/lib/python3.8/dist-packages/pytest_bdd/scenario.py:130: in _execute_step_function step_func(**kwargs) tests/utils/bdd_utils.py:78: in wrapper return fun(*ba.args, **ba.kwargs) <decorator-gen-939>:2: in assert_posix_permissions_in_op ??? tests/utils/utils.py:95: in wrapper return fun(*args, **kwargs) tests/mixed/steps/data_permissions.py:106: in assert_posix_permissions_in_op assert_posix_permissions_in_op_rest(full_path, mode, user, users, tests/mixed/steps/rest/oneprovider/data.py:259: in assert_posix_permissions_in_op_rest file_attrs = file_api.get_attrs(file_id, attribute='mode') tests/mixed/oneprovider_client/api/basic_file_operations_api.py:525: in get_attrs (data) = self.get_attrs_with_http_info(id, **kwargs) # noqa: E501 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <oneprovider_client.api.basic_file_operations_api.BasicFileOperationsApi object at 0x7f59bda00760> id = '0000000000525F6C67756964233433326663323636356636633130333236386435613035666465336131623661636835356162236166303430636465303838663833356139353637643461313434303532656462636835356162' kwargs = {'_return_http_data_only': True, 'attribute': 'mode'} all_params = ['id', 'data', 'legacy_options', 'async_req', '_return_http_data_only', '_preload_content', ...] params = {'all_params': ['id', 'data', 'legacy_options', 'async_req', '_return_http_data_only', '_preload_content', ...], 'id':...434303532656462636835356162', 'key': 'attribute', 'kwargs': {'_return_http_data_only': True, 'attribute': 'mode'}, ...} key = 'attribute', val = 'mode' def get_attrs_with_http_info(self, id, **kwargs): # noqa: E501 """Get file attributes # noqa: E501 This method returns attributes of a file specified by [$FILE_ID](#operation/lookup_file_id). By default, all attributes are returned, except for extended attributes. The list of requested attributes can be optionally narrowed down, and extended attributes can be retrieved using the `xattr.*` attribute(s) (where * is an extended attribute key). **NOTE**: since version **21.02.5**, this endpoint accepts **options as JSON body** rather than in the query string. Moreover, some of the attributes have been renamed and the list of available ones has been extended. The old behaviour of the endpoint has been retained but is **DEPRECATED** and scheduled for deletion in the future major release. The following changes in attribute names were introduced: * `file_id` -> `fileId` * `mode` -> `posixPermissions` * `parent_id` -> `parentFileId` * `storage_group_id` -> `displayGid` * `storage_user_id` -> `displayUid` * `is_fully_replicated` -> `isFullyReplicatedLocally` * `provider_id` -> `originProviderId` * `shares` -> `directShareIds` * `owner_id` -> `ownerUserId` * `hardlinks_count` -> `hardlinkCount` ***Example cURL requests*** **Get selected file attributes** ```bash curl -H \"X-Auth-Token: $TOKEN\" -H 'Content-type: application/json' \\ -X GET \"https://$PROVIDER_HOST/api/v3/oneprovider/data/$FILE_ID\" -d '{ \"attributes\": [\"name\", \"size\", \"xattr.key\"] }' { \"name\": \"File1.txt\", \"size\": 100, \"xattr.key\": \"extended_attribute_value\" } ``` # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_attrs_with_http_info(id, async_req=True) >>> result = thread.get() :param async_req bool :param str id: File, directory or space Id. (required) :param Data data: :param str legacy_options: The old behaviour of the endpoint has been retained but is **DEPRECATED** and scheduled for deletion in the future major release. You may refer to the [docs for 21.02.4](https://onedata.org/#/home/api/21.02.3/oneprovider?anchor=operation/list_files_recursively), but it's recommended to use the new API with options as JSON body. :return: FileAttributes If the method is called asynchronously, returns the request thread. """ all_params = ['id', 'data', 'legacy_options'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') params = locals() for key, val in six.iteritems(params['kwargs']): if key not in all_params: > raise TypeError( "Got an unexpected keyword argument '%s'" " to method get_attrs" % key ) E TypeError: Got an unexpected keyword argument 'attribute' to method get_attrs tests/mixed/oneprovider_client/api/basic_file_operations_api.py:555: TypeError