Merging upstream version 0.6.0.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
56fc4a167c
commit
cf4e7a073c
11 changed files with 5674 additions and 470 deletions
|
@ -25,7 +25,7 @@ async fn user() {
|
|||
.expect("failed to create user");
|
||||
|
||||
let query = AdminSearchUsersQuery::default();
|
||||
let users = api
|
||||
let (_, users) = api
|
||||
.admin_search_users(query)
|
||||
.await
|
||||
.expect("failed to search users");
|
||||
|
@ -34,7 +34,7 @@ async fn user() {
|
|||
"could not find new user"
|
||||
);
|
||||
let query = AdminGetAllEmailsQuery::default();
|
||||
let users = api
|
||||
let (_, users) = api
|
||||
.admin_get_all_emails(query)
|
||||
.await
|
||||
.expect("failed to search emails");
|
||||
|
@ -84,7 +84,7 @@ async fn org() {
|
|||
.expect("failed to create org");
|
||||
let query = AdminGetAllOrgsQuery::default();
|
||||
assert!(
|
||||
!api.admin_get_all_orgs(query).await.unwrap().is_empty(),
|
||||
!api.admin_get_all_orgs(query).await.unwrap().1.is_empty(),
|
||||
"org list empty"
|
||||
);
|
||||
let rename_opt = RenameUserOption {
|
||||
|
@ -145,7 +145,7 @@ async fn cron() {
|
|||
let api = common::login();
|
||||
|
||||
let query = AdminCronListQuery::default();
|
||||
let crons = api
|
||||
let (_, crons) = api
|
||||
.admin_cron_list(query)
|
||||
.await
|
||||
.expect("failed to get crons list");
|
||||
|
@ -236,7 +236,7 @@ async fn quota_group() {
|
|||
.as_ref()
|
||||
.is_some_and(|rules| rules.len() == 1));
|
||||
|
||||
let quota_groups = api
|
||||
let (_, quota_groups) = api
|
||||
.admin_list_quota_groups()
|
||||
.await
|
||||
.expect("failed to list quota groups");
|
||||
|
|
|
@ -18,7 +18,7 @@ async fn org_vars() {
|
|||
api.org_create(org_opt).await.expect("failed to create org");
|
||||
|
||||
let query = GetOrgVariablesListQuery::default();
|
||||
let var_list = api
|
||||
let (_, var_list) = api
|
||||
.get_org_variables_list("org-vars", query)
|
||||
.await
|
||||
.expect("failed to list org vars");
|
||||
|
|
|
@ -212,6 +212,7 @@ async fn release() {
|
|||
api.repo_list_releases("TestingAdmin", "release-test", query)
|
||||
.await
|
||||
.unwrap()
|
||||
.1
|
||||
.is_empty(),
|
||||
"there should be no releases yet"
|
||||
);
|
||||
|
@ -400,7 +401,7 @@ async fn tag_protection() {
|
|||
let git = Git::new("./test_repos/tag-protect");
|
||||
let _ = basic_repo(&api, &git, "tag-protect").await;
|
||||
|
||||
let tag_protections = api
|
||||
let (_, tag_protections) = api
|
||||
.repo_list_tag_protection("TestingAdmin", "tag-protect")
|
||||
.await
|
||||
.expect("failed to list tag protections");
|
||||
|
@ -455,7 +456,7 @@ async fn repo_vars() {
|
|||
let _ = basic_repo(&api, &git, "repo-vars").await;
|
||||
|
||||
let query = GetRepoVariablesListQuery::default();
|
||||
let var_list = api
|
||||
let (_, var_list) = api
|
||||
.get_repo_variables_list("TestingAdmin", "repo-vars", query)
|
||||
.await
|
||||
.expect("failed to list repo vars");
|
||||
|
|
|
@ -26,14 +26,14 @@ async fn follow() {
|
|||
let api = common::login();
|
||||
|
||||
let query = UserListFollowingQuery::default();
|
||||
let following = api
|
||||
let (_, following) = api
|
||||
.user_list_following("TestingAdmin", query)
|
||||
.await
|
||||
.unwrap();
|
||||
assert!(following.is_empty(), "following list not empty");
|
||||
|
||||
let query = UserListFollowersQuery::default();
|
||||
let followers = api
|
||||
let (_, followers) = api
|
||||
.user_list_followers("TestingAdmin", query)
|
||||
.await
|
||||
.unwrap();
|
||||
|
@ -62,14 +62,14 @@ async fn follow() {
|
|||
api.user_current_put_follow("Follower").await.unwrap();
|
||||
|
||||
let query = UserListFollowingQuery::default();
|
||||
let following = api
|
||||
let (_, following) = api
|
||||
.user_list_following("TestingAdmin", query)
|
||||
.await
|
||||
.unwrap();
|
||||
assert!(!following.is_empty(), "following list empty");
|
||||
|
||||
let query = UserListFollowersQuery::default();
|
||||
let followers = api
|
||||
let (_, followers) = api
|
||||
.user_list_followers("TestingAdmin", query)
|
||||
.await
|
||||
.unwrap();
|
||||
|
@ -197,7 +197,7 @@ async fn user_vars() {
|
|||
let api = common::login();
|
||||
|
||||
let query = GetUserVariablesListQuery::default();
|
||||
let var_list = api
|
||||
let (_, var_list) = api
|
||||
.get_user_variables_list(query)
|
||||
.await
|
||||
.expect("failed to list user vars");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue