feat: Added IAM integration tests

This commit is contained in:
jonaustin09
2024-02-22 16:07:53 -05:00
parent 0e382822f9
commit 3a07a5b685
6 changed files with 208 additions and 6 deletions
+5 -2
View File
@@ -289,11 +289,14 @@ func listUsers(ctx *cli.Context) error {
}
defer resp.Body.Close()
if resp.StatusCode >= 400 {
return fmt.Errorf("%s", body)
}
var accs []auth.Account
if err := json.Unmarshal(body, &accs); err != nil {
return err
}
fmt.Println(accs)
printAcctTable(accs)
@@ -402,7 +405,7 @@ func listBuckets(ctx *cli.Context) error {
defer resp.Body.Close()
if resp.StatusCode >= 400 {
return fmt.Errorf(string(body))
return fmt.Errorf("%s", body)
}
var buckets []s3response.Bucket
+5
View File
@@ -79,6 +79,11 @@ func initTestCommands() []*cli.Command {
Usage: "Tests posix specific features",
Action: getAction(integration.TestPosix),
},
{
Name: "iam",
Usage: "Tests iam service",
Action: getAction(integration.TestIAM),
},
{
Name: "bench",
Usage: "Runs download/upload performance test on the gateway",