CLOUDSTACK-4225: list the snapshot path on secondary store

list the snapshot on secondary store. avoid changing directories and
additional debug commands.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit 5b66677d74)
This commit is contained in:
Prasanna Santhanam 2013-08-20 19:38:59 +05:30
parent 463afeef3b
commit 3a29c73447
3 changed files with 7 additions and 14 deletions

View File

@ -15,7 +15,6 @@
# specific language governing permissions and limitations
# under the License.
import marvin
from nose.plugins.attrib import attr
from marvin.cloudstackTestCase import *
from marvin.cloudstackAPI import *
@ -23,6 +22,7 @@ from marvin.integration.lib.utils import *
from marvin.integration.lib.base import *
from marvin.integration.lib.common import *
from marvin.remoteSSHClient import remoteSSHClient
import os
class Services:
@ -263,10 +263,8 @@ class TestAccountSnapshotClean(cloudstackTestCase):
path,
self.services["paths"]["mount_dir"]
),
"cd %s" % self.services["paths"]["mount_dir"],
"ls -Rt",
"ls %s" % (
snapshotPath
os.path.join(self.services["paths"]["mount_dir"], snapshotPath)
),
]

View File

@ -15,7 +15,6 @@
# specific language governing permissions and limitations
# under the License.
import marvin
from nose.plugins.attrib import attr
from marvin.cloudstackTestCase import *
from marvin.cloudstackAPI import *
@ -23,6 +22,7 @@ from marvin.integration.lib.utils import *
from marvin.integration.lib.base import *
from marvin.integration.lib.common import *
from marvin.remoteSSHClient import remoteSSHClient
import os
class Services:
@ -251,10 +251,8 @@ class TestSnapshotLimit(cloudstackTestCase):
path,
self.services["paths"]["mount_dir"]
),
"cd %s" % self.services["paths"]["mount_dir"],
"ls -Rt",
"ls %s" % (
snapshotPath
os.path.join(self.services["paths"]["mount_dir"], snapshotPath)
),
]

View File

@ -24,6 +24,7 @@ from marvin.integration.lib.utils import *
from marvin.integration.lib.base import *
from marvin.integration.lib.common import *
from marvin.remoteSSHClient import remoteSSHClient
import os
class Services:
@ -243,10 +244,8 @@ class TestSnapshots(cloudstackTestCase):
path,
self.services["paths"]["mount_dir"]
),
"cd %s" % self.services["paths"]["mount_dir"],
"ls -Rt",
"ls %s" % (
snapshotPath
os.path.join(self.services["paths"]["mount_dir"], snapshotPath)
),
]
@ -1050,10 +1049,8 @@ class TestCreateVMSnapshotTemplate(cloudstackTestCase):
path,
self.services["paths"]["mount_dir"]
),
"cd %s" % self.services["paths"]["mount_dir"],
"ls -Rt",
"ls %s" % (
snapshotPath
os.path.join(self.services["paths"]["mount_dir"], snapshotPath)
),
]