diff options
Diffstat (limited to 'tests/server_shell.rs')
-rw-r--r-- | tests/server_shell.rs | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/tests/server_shell.rs b/tests/server_shell.rs index 756c5a8..ea01791 100644 --- a/tests/server_shell.rs +++ b/tests/server_shell.rs @@ -219,7 +219,17 @@ fn git_clone_can_not_target_repo_outside_allowed_paths() -> Result<()> { let c = spawn_ssh_server()?; clone_git_repo(&c, "/home/shukkie/disallowed.git") .failure() - .stdout("Path is not accessible"); + .stderr(predicates::str::contains("Path is not accessible")); + + Ok(()) +} + +#[test] +fn git_clone_can_not_target_repo_outside_allowed_paths_where_path_doesnt_exist() -> Result<()> { + let c = spawn_ssh_server()?; + clone_git_repo(&c, "/home/shukkie/disallowed-doesnt-exist.git") + .failure() + .stderr(predicates::str::contains("Path is not accessible")); Ok(()) } |