diff --git a/proxmox-api-macro/tests/api1.rs b/proxmox-api-macro/tests/api1.rs index 99ac1b53..e3e7e822 100644 --- a/proxmox-api-macro/tests/api1.rs +++ b/proxmox-api-macro/tests/api1.rs @@ -313,4 +313,12 @@ fn test_invocations() { assert_eq!(login["username"], "hello"); assert_eq!(login["ticket"], ""); assert_eq!(login["CSRFPreventionToken"], ""); + + let login = api_function_create_ticket_direct( + json!({"username":"hello","password":"world"}), + &API_METHOD_CREATE_TICKET, + &mut env, + ) + .expect("expected a ticket"); + assert_eq!(login, "an:invalid:ticket"); }