Merge "Skip read-only test for CIFS"

This commit is contained in:
Zuul 2019-06-20 21:11:59 +00:00 committed by Gerrit Code Review
commit 53bd6ab4cd
1 changed files with 5 additions and 0 deletions

View File

@ -116,6 +116,11 @@ class ShareBasicOpsBase(manager.ShareScenarioTest):
@tc.attr(base.TAG_NEGATIVE, base.TAG_BACKEND)
def test_write_with_ro_access(self):
'''Test if an instance with ro access can write on the share.'''
if self.protocol.upper() == 'CIFS':
msg = ("Skipped for CIFS protocol because RO access is not "
"supported for shares by IP.")
raise self.skipException(msg)
test_data = "Some test data to write"
instance = self.boot_instance(wait_until="BUILD")