| 860 | #[test] |
| 861 | #[ignore = "Requires environment configuration and is expensive"] |
| 862 | fn test_delete_file_not_found() { |
| 863 | #[tokio::main] |
| 864 | async fn run(context: &mut TestContext) { |
| 865 | let username = context.do_login(1).await; |
| 866 | let (filename, _content) = context.random_file(); |
| 867 | |
| 868 | let err = context.service.delete_file(&username, &filename).await.unwrap_err(); |
| 869 | assert_eq!(io::ErrorKind::NotFound, err.kind(), "{}", err); |
| 870 | assert!(format!("{}", err).contains("(server code: 404")); |
| 871 | } |
| 872 | run(&mut TestContext::new_from_env()); |
| 873 | } |
| 874 | |
| 875 | #[test] |
| 876 | #[ignore = "Requires environment configuration and is expensive"] |