| 607 | #[test] |
| 608 | #[ignore = "Requires environment configuration and is expensive"] |
| 609 | fn test_login_bad_password() { |
| 610 | #[tokio::main] |
| 611 | async fn run(context: &mut TestContext) { |
| 612 | let username = |
| 613 | env::var("TEST_ACCOUNT_1_USERNAME").expect("Expected env config not found"); |
| 614 | let password = "this is an invalid password for the test account"; |
| 615 | |
| 616 | let err = context.service.login(&username, password).await.unwrap_err(); |
| 617 | assert_eq!(io::ErrorKind::PermissionDenied, err.kind()); |
| 618 | } |
| 619 | run(&mut TestContext::new_from_env()); |
| 620 | } |
| 621 | |
| 622 | #[test] |
| 623 | #[ignore = "Requires environment configuration and is expensive"] |