api-macro: add test for access w/o a description

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2020-04-16 09:15:08 +02:00
parent 62f3c7d2d9
commit 5ae320f577

View File

@ -143,6 +143,9 @@ fn create_ticket_schema_check() {
},
},
},
access: {
permission: &Permission::World,
},
protected: true,
)]
/// Create or verify authentication ticket.
@ -207,6 +210,7 @@ fn create_ticket_direct_schema_check() {
)
.schema(),
)
.access(None, &Permission::World)
.protected(true);
assert_eq!(TEST_METHOD, API_METHOD_CREATE_TICKET_DIRECT);
}