()
| 2031 | } |
| 2032 | |
| 2033 | async fn get_application() -> application::Application { |
| 2034 | // create tenant |
| 2035 | let t = tenant::create(tenant::Tenant { |
| 2036 | name: "test-tenant".into(), |
| 2037 | ..Default::default() |
| 2038 | }) |
| 2039 | .await |
| 2040 | .unwrap(); |
| 2041 | |
| 2042 | application::create(application::Application { |
| 2043 | tenant_id: t.id, |
| 2044 | name: "test-app".into(), |
| 2045 | ..Default::default() |
| 2046 | }) |
| 2047 | .await |
| 2048 | .unwrap() |
| 2049 | } |
| 2050 | |
| 2051 | async fn get_user() -> user::User { |
| 2052 | let u = user::User { |