tests.test_filesystem
Attributes
Classes
Base test FileSystem parent class, containing some utility functions and common setup/teardown operations. |
|
Test FileSystem generic operations. |
|
FileSystem tests specific to the user wps outputs data. |
Module Contents
- class tests.test_filesystem.BaseTestFileSystem(methodName='runTest')[source]
Bases:
unittest.TestCase
Base test FileSystem parent class, containing some utility functions and common setup/teardown operations.
Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
- classmethod setUpClass()[source]
Hook method for setting up class fixture before running tests in the class.
- class tests.test_filesystem.TestFileSystemBasic(methodName='runTest')[source]
Bases:
BaseTestFileSystem
Test FileSystem generic operations.
Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
- test_manage_user_workspace(mock_head_request)[source]
Tests creating and deleting a user workspace.
- class tests.test_filesystem.TestFileSystemWpsOutputsUser(methodName='runTest')[source]
Bases:
BaseTestFileSystem
FileSystem tests specific to the user wps outputs data.
These tests can include verifications on the different path permissions. Note that
others
permissions are used instead of theuser
/group
permissions, to manage the user’s data access. See Components - Usage of ‘others’ permissions for more details on the usage ofothers
permissions.Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
- create_secure_data_proxy_service()[source]
Generates a new secure-data-proxy service in Magpie app.
- static check_path_perms_and_hardlink(src_path: str, hardlink_path: str, perms: int)[source]
Checks if a path has the expected permissions, and if a hardlink exists, according to the other permissions.
- test_user_created()[source]
Tests if creating a user generates the hardlinks to the pre-existing user WPS outputs data.
- test_user_wps_output_created_secure_data_proxy()[source]
Tests creating wps outputs for a user when Magpie uses a secure-data-proxy service to manage access permissions to the wps output data.
- test_permission_updates_user_data()[source]
Tests updating permissions on data found directly in a specific user directory.