예제 #1
0
 def test_add_read_write_snap_share(self):
     share = UnityNfsShare(cli=t_rest(), _id='NFSShare_30')
     resp = share.allow_read_write_access('2.2.2.2', True)
     assert_that(resp.is_ok(), equal_to(True))
예제 #2
0
 def test_add_read_write_snap_share(self):
     share = UnityNfsShare(cli=t_rest(), _id='NFSShare_30')
     resp = share.allow_read_write_access('2.2.2.2', True)
     assert_that(resp.is_ok(), equal_to(True))
예제 #3
0
 def test_add_ip_access_force_create(self):
     share = UnityNfsShare(cli=t_rest(), _id='NFSShare_5')
     h1 = UnityHost(_id='Host_1', cli=t_rest())
     resp = share.allow_read_write_access([h1, '1.1.1.2'],
                                          force_create_host=True)
     assert_that(resp.is_ok(), equal_to(True))
예제 #4
0
 def test_add_ip_access_force_create(self):
     share = UnityNfsShare(cli=t_rest(), _id='NFSShare_5')
     h1 = UnityHost(_id='Host_1', cli=t_rest())
     resp = share.allow_read_write_access([h1, '1.1.1.2'],
                                          force_create_host=True)
     assert_that(resp.is_ok(), equal_to(True))