Skip to content

Commit

Permalink
Correctly set period in valid-role's role
Browse files Browse the repository at this point in the history
  • Loading branch information
calvn committed Jan 17, 2018
1 parent 1a85591 commit 87bff1f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion builtin/credential/aws/backend_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1618,7 +1618,14 @@ func TestBackendAcc_LoginWithCallerIdentity(t *testing.T) {

// Test for renewal with period
period := 600 * time.Second
loginData["period"] = period.String()
roleData["period"] = period.String()
roleRequest.Path = "role/" + testValidRoleName
resp, err = b.HandleRequest(context.Background(), roleRequest)
if err != nil || (resp != nil && resp.IsError()) {
t.Fatalf("bad: failed to create wildcard role: resp:%#v\nerr:%v", resp, err)
}

loginData["role"] = testValidRoleName
resp, err = b.HandleRequest(context.Background(), loginRequest)
if err != nil {
t.Fatal(err)
Expand Down

0 comments on commit 87bff1f

Please sign in to comment.