Skip to content

Commit

Permalink
Merge pull request #34 from lexara-prime-ai/dev
Browse files Browse the repository at this point in the history
Updated tests.
  • Loading branch information
irfanghat authored Jul 14, 2024
2 parents 5520e0f + fc646d6 commit a8adb43
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion rust/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ async fn main() {
// println!("Sample Configuration: {:?}\n", config);

/// 3. Retrieve a list of authorized 'users'.
let authorized_users = Owner::list_authorized_users("irfanghat@gmail.com", "100")
let authorized_users = Owner::list_authorized_users("<user>@<email>.com", "100")
.await
.unwrap();
println!("Owner Info.: {:?}\n", authorized_users);
Expand Down Expand Up @@ -118,4 +118,12 @@ mod regression_tests {
let services = result.unwrap();
assert!(!services.is_empty());
}

#[tokio::test]
async fn test_list_authorized_users() {
let result = Owner::list_authorized_users("[email protected]", "100").await;

// The result should be Ok().
assert!(result.is_ok());
}
}

0 comments on commit a8adb43

Please sign in to comment.