Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add test categories for FIDO tests #140

Merged
merged 1 commit into from
Aug 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading