def test_drhost_parse(self):
"""
Test that the drhost exports for a project are correctly done.
"""
raise unittest.SkipTest("DRhosts refactoring not yet complete.")
# The list of drhosts for the first host should be 1 in length.
testhost01 = self.project.get_host_byname('testhost01')
self.failUnlessEqual( len(testhost01.get_drhosts()), 1 )
# Grab the test volume
testvol = [x for x in self.project.get_volumes() if x.name == 'testvol01' ][0]
# Check that the target volume qtree is being exported to the dr testhost
targethost = testvol.snapmirrors[0].targetvol.get_qtrees()[0].get_rw_exports()[0]
self.failUnlessEqual(targethost.name, 'dr_testhost01')
评论列表
文章目录