-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #34 from lexara-prime-ai/dev
Updated tests.
- Loading branch information
Showing
1 changed file
with
9 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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); | ||
|
@@ -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()); | ||
} | ||
} |