feat: implementes unit tests for all the bucket action controllers.

This commit is contained in:
niksis02
2025-07-22 20:55:22 +04:00
parent 65cd44aadd
commit 866b07b98f
13 changed files with 2931 additions and 26 deletions
+1 -1
View File
@@ -385,7 +385,7 @@ func CheckIfAccountsExist(accs []string, iam IAMService) ([]string, error) {
for _, acc := range accs {
_, err := iam.GetUserAccount(acc)
if err != nil {
if err == ErrNoSuchUser {
if err == ErrNoSuchUser || err == s3err.GetAPIError(s3err.ErrAdminUserNotFound) {
result = append(result, acc)
continue
}