def test_mount_repo_doesnt_wait(self): server.add_exports_for_repos([Repo("github.com/app/a")]) check_and_log_output_and_error(["nfsd", "restart"], demote=False) with self.assertRaises(CalledProcessError): client._mount_repo(Repo("github.com/app/a"), wait_for_server=False)
def test_mount_repo_doesnt_wait(self): server.add_exports_for_repos([Repo('github.com/app/a')]) check_and_log_output_and_error(['nfsd', 'restart'], demote=False) with self.assertRaises(CalledProcessError): client._mount_repo(Repo('github.com/app/a'), wait_for_server=False)
def test_mount_repo_waits_for_restart(self): server.add_exports_for_repos([Repo("github.com/app/a")]) check_and_log_output_and_error(["nfsd", "restart"], demote=False) client._mount_repo(Repo("github.com/app/a"), wait_for_server=True) # no errors mean it worked client._unmount_repo(Repo("github.com/app/a"))
def test_mount_repo_waits_for_restart(self): server.add_exports_for_repos([Repo('github.com/app/a')]) check_and_log_output_and_error(['nfsd', 'restart'], demote=False) client._mount_repo(Repo('github.com/app/a'), wait_for_server=True) # no errors mean it worked client._unmount_repo(Repo('github.com/app/a'))