Skip to content

Commit

Permalink
Restore IAM test
Browse files Browse the repository at this point in the history
  • Loading branch information
sstevenkang committed Jul 28, 2017
1 parent a5f9e0a commit 7d43da4
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions sdk/test/IntegrationTests/Tests/General.cs
Original file line number Diff line number Diff line change
Expand Up @@ -152,20 +152,18 @@ public void TestExceptions()
Assert.AreEqual(ErrorType.Unknown, ex.ErrorType);
}

// Temporarily disabling this while investigating why this unrelated test started to fail.
//
//using (var client = new Amazon.IdentityManagement.AmazonIdentityManagementServiceClient())
//{
// var ex = AssertExtensions.ExpectException<Amazon.IdentityManagement.Model.NoSuchEntityException>(() =>
// {
// client.AttachGroupPolicy(new Amazon.IdentityManagement.Model.AttachGroupPolicyRequest
// {
// PolicyArn = fakeData,
// GroupName = fakeData
// });
// });
// Assert.AreEqual(ErrorType.Sender, ex.ErrorType);
//}
using (var client = new Amazon.IdentityManagement.AmazonIdentityManagementServiceClient())
{
var ex = AssertExtensions.ExpectException<Amazon.IdentityManagement.Model.NoSuchEntityException>(() =>
{
client.AttachGroupPolicy(new Amazon.IdentityManagement.Model.AttachGroupPolicyRequest
{
PolicyArn = fakeData,
GroupName = fakeData
});
});
Assert.AreEqual(ErrorType.Sender, ex.ErrorType);
}
}


Expand Down

0 comments on commit 7d43da4

Please sign in to comment.