Skip to content

Commit

Permalink
Add test categories
Browse files Browse the repository at this point in the history
  • Loading branch information
DennisDyallo committed Aug 13, 2024
1 parent 0ad55b2 commit c4133af
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
namespace Yubico.YubiKey.Fido2
{
[Trait(TraitTypes.Category, TestCategories.RequiresBio)]
[Trait(TraitTypes.Category, TestCategories.Elevated)]
public class BioEnrollTests : SimpleIntegrationTestConnection
{
// Set to 0 meaning don't cancel.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@

namespace Yubico.YubiKey.Fido2
{
[Trait(TraitTypes.Category, TestCategories.Simple)]

[Trait(TraitTypes.Category, TestCategories.Elevated)]
public class ConfigTests : SimpleIntegrationTestConnection
{
public ConfigTests()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
namespace Yubico.YubiKey.Fido2
{
[Trait(TraitTypes.Category, TestCategories.RequiresBio)]
[Trait(TraitTypes.Category, TestCategories.Elevated)]
public class CredMgmtTests : IClassFixture<BioFido2Fixture>
{
private readonly BioFido2Fixture _bioFido2Fixture;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
namespace Yubico.YubiKey.Fido2
{
[Trait(TraitTypes.Category, TestCategories.RequiresBio)]
[Trait(TraitTypes.Category, TestCategories.Elevated)]
public class LargeBlobTests
{
static readonly byte[] _clientDataHash = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ namespace Yubico.YubiKey.Fido2
public class MakeCredentialBlobTests
{
[Fact]
[Trait(TraitTypes.Category, TestCategories.Elevated)]
public void CredBlobExtension_Correct()
{
IYubiKeyDevice yubiKeyDevice = IntegrationTestDeviceEnumeration.GetTestDevice();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@

namespace Yubico.YubiKey.Fido2
{
[Trait(TraitTypes.Category, TestCategories.Elevated)]
[Trait(TraitTypes.Category, TestCategories.RequiresTouch)]
public class MakeCredentialGetAssertionTests
{
static readonly byte[] _clientDataHash = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

namespace Yubico.YubiKey.Fido2
{
[Trait(TraitTypes.Category, TestCategories.Elevated)]
public class MinPinLenTests : SimpleIntegrationTestConnection
{
static readonly byte[] _clientDataHash = {
Expand All @@ -42,7 +43,6 @@ public MinPinLenTests()
}

[Fact]
[Trait(TraitTypes.Category, TestCategories.Simple)]
public void GetMinPinFromCredential_Succeeds()
{
using (var fido2Session = new Fido2Session(Device))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ public class PinCollectionTests
{
[Fact]
[Trait(TraitTypes.Category, TestCategories.RequiresSetup)]
[Trait(TraitTypes.Category, TestCategories.Elevated)]
public void PinOperations_Succeed()
{
// Assumption - the YubiKey returned has a new or reset FIDO2 application with no PIN set.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
namespace Yubico.YubiKey.Fido2
{
[Trait(TraitTypes.Category, TestCategories.RequiresBio)]
[Trait(TraitTypes.Category, TestCategories.Elevated)]
public class VerifyFpTests : SimpleIntegrationTestConnection
{
public VerifyFpTests()
Expand Down

0 comments on commit c4133af

Please sign in to comment.