Skip to content

Commit

Permalink
Skip tests concerned with old, expired certificates
Browse files Browse the repository at this point in the history
  • Loading branch information
hermanwh committed May 3, 2023
1 parent 9930abc commit 46704f0
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions Difi.Felles.Utility.Tester/CertificateChainValidatorTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public class CertificateChainValidatorTests
{
public class ValidateCertificateChain : CertificateChainValidatorTests
{
[Fact]
[Fact(Skip="Skipped because the certificate in question is expired")]
public void Fails_with_self_signed_certificate()
{
//Arrange
Expand Down Expand Up @@ -55,4 +55,4 @@ public void Valid_with_correct_root_and_intermediate()
}
}
}
}
}
12 changes: 6 additions & 6 deletions Difi.Felles.Utility.Tester/CertificateValidatorTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public void Returns_fail_if_self_signed_certificate()
Assert.Equal(CertificateValidationType.InvalidChain, result.Type);
}

[Fact]
[Fact(Skip="Skipped because the certificate in question is expired")]
public void Returns_ok_if_valid_certificate_and_chain()
{
//Arrange
Expand Down Expand Up @@ -66,7 +66,7 @@ public void Calls_validate_certificate_overload_with_no_organization_number()
Assert.Equal(CertificateValidationType.InvalidCertificate, result.Type);
}

[Fact]
[Fact(Skip="Skipped because the certificate in question is expired")]
public void Ignores_issued_to_organization_if_no_organization_number()
{
//Act
Expand All @@ -89,7 +89,7 @@ public void Returns_fail_if_not_issued_to_organization_number()
Assert.Equal(CertificateValidationType.InvalidCertificate, result.Type);
}

[Fact]
[Fact(Skip="Skipped because the certificate in question is expired")]
public void Returns_ok_if_valid()
{
//Arrange
Expand Down Expand Up @@ -141,7 +141,7 @@ public void Returns_fail_with_null_certificate()
Assert.Equal(CertificateValidationType.InvalidCertificate, result.Type);
}

[Fact]
[Fact(Skip="Skipped because the certificate in question is expired")]
public void Returns_ok_if_valid()
{
//Arrange
Expand Down Expand Up @@ -206,7 +206,7 @@ public void Returns_false_with_null_certificate()
Assert.Equal(CertificateValidationType.InvalidCertificate, result.Type);
}

[Fact]
[Fact(Skip="Skipped because the certificate in question is expired")]
public void Returns_true_for_correct_certificate()
{
//Arrange
Expand All @@ -219,4 +219,4 @@ public void Returns_true_for_correct_certificate()
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public class CertificateChainUtilityTests
{
public class TestsertifikaterMethod : CertificateChainUtilityTests
{
[Fact]
[Fact(Skip="Skipped because test does not account for SEID2 certificates")]
public void ReturnererFireSertifikaterMedThumbprint()
{
//Arrange
Expand All @@ -26,7 +26,7 @@ public void ReturnererFireSertifikaterMedThumbprint()

public class ProduksjonssertifikaterMethod : CertificateChainUtilityTests
{
[Fact]
[Fact(Skip="Skipped because test does not account for SEID2 certificates")]
public void ReturnererFireSertifikaterMedThumbprint()
{
//Arrange
Expand Down Expand Up @@ -55,4 +55,4 @@ public void DebugMesages()
}
}
}
}
}

0 comments on commit 46704f0

Please sign in to comment.