| 718 | #[test] |
| 719 | #[ignore = "Requires environment configuration and is expensive"] |
| 720 | fn test_get_file_not_found() { |
| 721 | #[tokio::main] |
| 722 | async fn run(context: &mut TestContext) { |
| 723 | let username = context.do_login(1).await; |
| 724 | let (filename, _content) = context.random_file(); |
| 725 | |
| 726 | let err = context.service.get_file(&username, &filename).await.unwrap_err(); |
| 727 | assert_eq!(io::ErrorKind::NotFound, err.kind(), "{}", err); |
| 728 | } |
| 729 | run(&mut TestContext::new_from_env()); |
| 730 | } |
| 731 | |
| 732 | #[test] |
| 733 | #[ignore = "Requires environment configuration and is expensive"] |