diff --git a/src/cli/client.rs b/src/cli/client.rs index 6d029ac..47e76fa 100644 --- a/src/cli/client.rs +++ b/src/cli/client.rs @@ -153,7 +153,7 @@ mod tests { .join("testclient.yaml"); assert!(file_path.exists()); - let content = fs::read_to_string(&file_path).await.unwrap(); + let content = tokio::fs::read_to_string(&file_path).await.unwrap(); let client: ClientRepresentation = serde_yaml::from_str(&content).unwrap(); assert_eq!(client.client_id.as_deref(), Some("testclient")); diff --git a/src/cli/group.rs b/src/cli/group.rs index 1cc3e50..ff8ed86 100644 --- a/src/cli/group.rs +++ b/src/cli/group.rs @@ -76,7 +76,7 @@ mod tests { .join("my-group.yaml"); assert!(file_path.exists()); - let content = fs::read_to_string(&file_path).await.unwrap(); + let content = tokio::fs::read_to_string(&file_path).await.unwrap(); let group: GroupRepresentation = serde_yaml::from_str(&content).unwrap(); assert_eq!(group.name.as_deref(), Some("my-group")); } diff --git a/src/cli/idp.rs b/src/cli/idp.rs index f75b670..cbbc691 100644 --- a/src/cli/idp.rs +++ b/src/cli/idp.rs @@ -96,7 +96,7 @@ mod tests { .join("google.yaml"); assert!(file_path.exists()); - let content = fs::read_to_string(&file_path).await.unwrap(); + let content = tokio::fs::read_to_string(&file_path).await.unwrap(); let idp: IdentityProviderRepresentation = serde_yaml::from_str(&content).unwrap(); assert_eq!(idp.alias.as_deref(), Some("google")); } diff --git a/src/cli/keys.rs b/src/cli/keys.rs index 5a6781b..4eab48a 100644 --- a/src/cli/keys.rs +++ b/src/cli/keys.rs @@ -49,7 +49,7 @@ pub async fn rotate_keys_yaml(workspace_dir: &Path, realm: &str) -> Result Result