def test_add_read_only_snap_share(self): share = UnityNfsShare(cli=t_rest(), _id='NFSShare_30') resp = share.allow_read_only_access('1.1.1.1', True) assert_that(resp.is_ok(), equal_to(True))
def test_add_ip_access_existed(self): share = UnityNfsShare(cli=t_rest(), _id='NFSShare_5') h1 = UnityHost(_id='Host_1', cli=t_rest()) resp = share.allow_read_only_access([h1, '1.1.1.1'], force_create_host=True) assert_that(resp.is_ok(), equal_to(True))
def test_share_in_tenant_allow_access_to_ip(self): share = UnityNfsShare(_id='NFSShare_32', cli=t_rest()) resp = share.allow_read_only_access('192.168.112.23') assert_that(resp.is_ok(), equal_to(True))