]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: removed test_without_target_dir
authordparmar18 <dparmar@redhat.com>
Wed, 4 May 2022 11:26:48 +0000 (16:56 +0530)
committerdparmar18 <dparmar@redhat.com>
Tue, 17 May 2022 09:28:49 +0000 (14:58 +0530)
Rationale: get and put now demand both the paths mandatorily.
           Also testing of get and put without target paths
           have been take of in other tests in class TestGetAndPut().

Signed-off-by: Dhairya Parmar <dparmar@redhat.com>
(cherry picked from commit 31ce2eff60242f962ba648f1c71f616ec5c90284)

qa/tasks/cephfs/test_cephfs_shell.py

index a7b9bbd28da333b5a29600050090560a31435a3a..32a8c089b1c2b15e4ee6b1e19f402f13be8c2d50 100644 (file)
@@ -309,38 +309,6 @@ class TestRmdir(TestCephFSShell):
         self.mount_a.stat(self.dir_name)
 
 class TestGetAndPut(TestCephFSShell):
-    def test_without_target_dir(self):
-        """
-        Test put and get commands without target path.
-        """
-        tempdir = self.mount_a.client_remote.mkdtemp()
-        tempdirname = path.basename(tempdir)
-        files = ('dump1', 'dump2', 'dump3', tempdirname)
-
-        for i, file_ in enumerate(files[ : -1]):
-            size = i + 1
-            ofarg = 'of=' + path.join(tempdir, file_)
-            bsarg = 'bs=' + str(size) + 'M'
-            self.mount_a.run_shell_payload(f"dd if=/dev/urandom {ofarg} {bsarg} count=1")
-
-        self.run_cephfs_shell_cmd('put ' + tempdir)
-        for file_ in files:
-            if file_ == tempdirname:
-                self.mount_a.stat(path.join(self.mount_a.mountpoint, file_))
-            else:
-                self.mount_a.stat(path.join(self.mount_a.mountpoint,
-                                            tempdirname, file_))
-
-        self.mount_a.run_shell_payload(f"rm -rf {tempdir}")
-
-        self.run_cephfs_shell_cmd('get ' + tempdirname)
-        pwd = self.get_cephfs_shell_cmd_output('!pwd')
-        for file_ in files:
-            if file_ == tempdirname:
-               self.mount_a.run_shell_payload(f"stat {path.join(pwd, file_)}")
-            else:
-               self.mount_a.run_shell_payload(f"stat {path.join(pwd, tempdirname, file_)}")
-
     def test_get_with_target_name(self):
         """
         Test that get passes with target name