diff --git a/src/Tests/Integration Tests/OAuth2Tests.cs b/src/Tests/Integration Tests/OAuth2Tests.cs index 4c4abeaa..21796910 100644 --- a/src/Tests/Integration Tests/OAuth2Tests.cs +++ b/src/Tests/Integration Tests/OAuth2Tests.cs @@ -25,6 +25,7 @@ public class OAuth2Tests string scopeAsymmetric = Constants.Realms.TestRPAsymmetric; [TestMethod] + [TestCategory("Integration")] public void ValidUserNameCredentialValidClientCredentialSymmetric() { var client = new OAuth2Client( @@ -46,6 +47,7 @@ public void ValidUserNameCredentialValidClientCredentialSymmetric() } [TestMethod] + [TestCategory("Integration")] public void ValidUserNameCredentialValidClientCredentialAsymmetric() { var client = new OAuth2Client( @@ -67,6 +69,7 @@ public void ValidUserNameCredentialValidClientCredentialAsymmetric() } [TestMethod] + [TestCategory("Integration")] public void ValidUserNameCredentialValidClientCredentialUseRefreshToken() { var client = new OAuth2Client( @@ -101,6 +104,7 @@ public void ValidUserNameCredentialValidClientCredentialUseRefreshToken() } [TestMethod] + [TestCategory("Integration")] [ExpectedException(typeof(HttpRequestException))] public void ValidUserNameCredentialMissingClientCredential() { @@ -113,6 +117,7 @@ public void ValidUserNameCredentialMissingClientCredential() } [TestMethod] + [TestCategory("Integration")] [ExpectedException(typeof(HttpRequestException))] public void ValidUserNameCredentialInvalidClientCredential() { @@ -172,6 +177,7 @@ public void ValidUserNameCredentialInvalidClientCredential() //} [TestMethod] + [TestCategory("Integration")] public void InvalidUserNameCredential() { var form = new FormUrlEncodedContent(new Dictionary @@ -191,6 +197,7 @@ public void InvalidUserNameCredential() } [TestMethod] + [TestCategory("Integration")] public void UnauthorizedUser() { var form = new FormUrlEncodedContent(new Dictionary @@ -209,6 +216,7 @@ public void UnauthorizedUser() } [TestMethod] + [TestCategory("Integration")] public void NoRealm() { var form = new FormUrlEncodedContent(new Dictionary @@ -226,6 +234,7 @@ public void NoRealm() } [TestMethod] + [TestCategory("Integration")] public void MalformedRealm() { var form = new FormUrlEncodedContent(new Dictionary @@ -244,6 +253,7 @@ public void MalformedRealm() } [TestMethod] + [TestCategory("Integration")] public void InvalidGrantType() { var form = new FormUrlEncodedContent(new Dictionary @@ -262,6 +272,7 @@ public void InvalidGrantType() } [TestMethod] + [TestCategory("Integration")] public void NoUserCredentials() { var form = new FormUrlEncodedContent(new Dictionary diff --git a/src/Tests/Integration Tests/SimpleHttpTests.cs b/src/Tests/Integration Tests/SimpleHttpTests.cs index 06def16f..e3588e09 100644 --- a/src/Tests/Integration Tests/SimpleHttpTests.cs +++ b/src/Tests/Integration Tests/SimpleHttpTests.cs @@ -23,6 +23,7 @@ public class SimpleHttp string rp = Constants.Realms.TestRPSymmetric; [TestMethod] + [TestCategory("Integration")] public void NoRealm() { var client = new HttpClient(); @@ -33,6 +34,7 @@ public void NoRealm() } [TestMethod] + [TestCategory("Integration")] public void MalformedRealm() { var values = new Dictionary @@ -48,6 +50,7 @@ public void MalformedRealm() } [TestMethod] + [TestCategory("Integration")] public void NoCredentials() { var values = new Dictionary @@ -62,6 +65,7 @@ public void NoCredentials() } [TestMethod] + [TestCategory("Integration")] public void ValidUserNameCredential() { var values = new Dictionary @@ -79,6 +83,7 @@ public void ValidUserNameCredential() } [TestMethod] + [TestCategory("Integration")] public void UnAuthorizedUser() { var values = new Dictionary @@ -94,6 +99,7 @@ public void UnAuthorizedUser() } [TestMethod] + [TestCategory("Integration")] public void ValidUserNameCredentialSaml11() { var values = new Dictionary @@ -114,6 +120,7 @@ public void ValidUserNameCredentialSaml11() } [TestMethod] + [TestCategory("Integration")] public void ValidUserNameCredentialSaml2() { var values = new Dictionary @@ -135,6 +142,7 @@ public void ValidUserNameCredentialSaml2() [TestMethod] + [TestCategory("Integration")] public void ValidUserNameCredentialJwt() { var values = new Dictionary @@ -155,6 +163,7 @@ public void ValidUserNameCredentialJwt() } [TestMethod] + [TestCategory("Integration")] public void InvalidUserNameCredential() { var values = new Dictionary diff --git a/src/Tests/Integration Tests/WSTrustTests.cs b/src/Tests/Integration Tests/WSTrustTests.cs index e74c0fd7..3e77d4f0 100644 --- a/src/Tests/Integration Tests/WSTrustTests.cs +++ b/src/Tests/Integration Tests/WSTrustTests.cs @@ -49,6 +49,7 @@ public void Setup() } [TestMethod] + [TestCategory("Integration")] public void ValidUserNameCredentialSymmetric() { RequestSecurityTokenResponse rstr; @@ -58,6 +59,7 @@ public void ValidUserNameCredentialSymmetric() } [TestMethod] + [TestCategory("Integration")] public void ValidClientCertificateCredentialSymmetric() { RequestSecurityTokenResponse rstr; @@ -67,6 +69,7 @@ public void ValidClientCertificateCredentialSymmetric() } [TestMethod] + [TestCategory("Integration")] public void ValidUserNameCredentialSaml11Symmetric() { var rst = new RequestSecurityToken @@ -87,6 +90,7 @@ public void ValidUserNameCredentialSaml11Symmetric() } [TestMethod] + [TestCategory("Integration")] public void ValidUserNameCredentialSaml11Bearer() { var rst = new RequestSecurityToken @@ -107,6 +111,7 @@ public void ValidUserNameCredentialSaml11Bearer() } [TestMethod] + [TestCategory("Integration")] public void ValidUserNameCredentialSaml2Bearer() { var rst = new RequestSecurityToken @@ -127,6 +132,7 @@ public void ValidUserNameCredentialSaml2Bearer() } [TestMethod] + [TestCategory("Integration")] public void ValidUserNameCredentialSaml2Symmetric() { var rst = new RequestSecurityToken @@ -147,6 +153,7 @@ public void ValidUserNameCredentialSaml2Symmetric() } [TestMethod] + [TestCategory("Integration")] public void ValidUserNameCredentialJwtSymmetric() { var rst = new RequestSecurityToken @@ -167,6 +174,7 @@ public void ValidUserNameCredentialJwtSymmetric() } [TestMethod] + [TestCategory("Integration")] public void ValidUserNameCredentialJwtBearer() { var rst = new RequestSecurityToken @@ -188,6 +196,7 @@ public void ValidUserNameCredentialJwtBearer() [TestMethod] + [TestCategory("Integration")] [ExpectedException(typeof(MessageSecurityException))] public void InvalidUserNameCredentialSymmetric() { @@ -201,6 +210,7 @@ public void InvalidUserNameCredentialSymmetric() } [TestMethod] + [TestCategory("Integration")] [ExpectedException(typeof(FaultException))] public void UnauthorizedUserSymmetric() { @@ -214,6 +224,7 @@ public void UnauthorizedUserSymmetric() } [TestMethod] + [TestCategory("Integration")] [ExpectedException(typeof(FaultException))] public void NoRealm() {