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))
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))