mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-09-08 08:04:25 +00:00
fix get_resource for oauth
This commit is contained in:
@@ -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(())
|
||||
// }
|
||||
// }
|
||||
|
||||
@@ -3895,7 +3895,7 @@ components:
|
||||
description:
|
||||
type: string
|
||||
account:
|
||||
type: string
|
||||
type: integer
|
||||
is_oauth:
|
||||
type: boolean
|
||||
extra_perms:
|
||||
|
||||
Reference in New Issue
Block a user