fix get_resource for oauth

This commit is contained in:
Ruben Fiszel
2022-10-30 22:56:12 +01:00
parent ca5bad7ad4
commit 35a836b81a
2 changed files with 23 additions and 1 deletions
+22
View File
@@ -2098,3 +2098,25 @@ async fn test_failure_module(db: Pool<Postgres>) {
.unwrap();
assert_eq!(json!({ "l": [0, 1, 2] }), result);
}
// #[cfg(test)]
// mod client_test {
// use windmill_common::error::to_anyhow;
// #[tokio::test]
// async fn test_rust_client() -> Result<(), Box<dyn std::error::Error>> {
// println!(
// "{:#?}",
// windmill_api_client::create_client(
// "http://windmill.wimill.xyz",
// "XXXXXXXXXXXXXXX".to_string(),
// )
// .get_variable("demo", "u/ruben/test", Some(true))
// .await
// .map_err(to_anyhow)
// .map(|v| { v.into_inner() })?
// .value
// );
// Ok(())
// }
// }
+1 -1
View File
@@ -3895,7 +3895,7 @@ components:
description:
type: string
account:
type: string
type: integer
is_oauth:
type: boolean
extra_perms: