distaflibs.gluster.class_setup_nfs_ganesha_vol module¶
-
class
distaflibs.gluster.class_setup_nfs_ganesha_vol.SetupNfsGaneshaVol(config_data, nfs_options='vers=3')¶ Bases:
distaflibs.gluster.gluster_base_class.GlusterBaseClassThis is the base class for the ganesha-gluster tests It is a subclass of GlusterBaseClass. All ganesha-gluster tests can subclass this and then write test cases
Initialise the class with the config values Kwargs:
- nfs_options (str): This argument takes the nfs options,
- say vers=3 or vers=4. Default value is vers=3.
-
setup()¶ Function to setup ganesha and create volume for testing.
-
teardown(teardown_ganesha_setup=False)¶ The function to cleanup the test setup Kwargs:
- teardown_ganesha_setup (bool): If True teardowns ganesha setup,
- else leaves the ganesha setup as it is. Default value is False
-
cleanup(Self, delete_vol=False)¶ The function to cleanup the volume Kwargs:
- delete_vol (bool): If True deletes the volume.
- else leaves the volume as it is. Defualt value is False