Beispiel #1
0
 def test_add_data_pool_non_alphamueric_name_as_subdir(self):
     """
     That a new data pool with non-alphanumeric name can be added and used for a sub-directory.
     """
     p = self.fs.add_data_pool("I-am-data_pool00.")
     self.mount_a.run_shell("mkdir subdir")
     self.fs.set_dir_layout(self.mount_a, "subdir", FileLayout(pool=p))
Beispiel #2
0
    def test_add_data_pool_root(self):
        """
        That a new data pool can be added and used for the root directory.
        """

        p = self.fs.add_data_pool("foo")
        self.fs.set_dir_layout(self.mount_a, ".", FileLayout(pool=p))
Beispiel #3
0
    def test_add_data_pool_subdir(self):
        """
        That a new data pool can be added and used for a sub-directory.
        """

        p = self.fs.add_data_pool("foo")
        self.mount_a.run_shell("mkdir subdir")
        self.fs.set_dir_layout(self.mount_a, "subdir", FileLayout(pool=p))