def f(): host_config = NfsHostConfig(root_hosts=['1.1.1.1', '2.2.2.2'], ro_hosts=['3.3.3.3'], rw_hosts=['4.4.4.4', '5.5.5.5'], access_hosts=['6.6.6.6']) mover = self.get_mover_1() share = VNXNfsShare(cli=t_nas(), mover=mover, path='/not_found') share.modify(ro=False, host_config=host_config)
def f(): host_config = NfsHostConfig( root_hosts=['1.1.1.1', '2.2.2.2'], ro_hosts=['3.3.3.3'], rw_hosts=['4.4.4.4', '5.5.5.5'], access_hosts=['6.6.6.6']) mover = self.get_mover_1() share = VNXNfsShare(cli=t_nas(), mover=mover, path='/not_found') share.modify(ro=False, host_config=host_config)
def test_modify_success(self): host_config = NfsHostConfig(access_hosts=['7.7.7.7']) mover = self.get_mover_1() share = VNXNfsShare(cli=t_nas(), mover=mover, path='/EEE') resp = share.modify(ro=True, host_config=host_config) assert_that(resp.is_ok(), equal_to(True))