Skip to content

Commit

Permalink
improve always manual device tests
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamVe committed Jan 29, 2025
1 parent 5a64d1d commit fdc4f2f
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,15 @@

package com.yubico.yubikit.testing.piv;

import com.yubico.yubikit.testing.AlwaysManualTest;
import com.yubico.yubikit.testing.framework.PivInstrumentedTests;
import org.junit.Test;
import org.junit.experimental.categories.Category;

public class PivBioMultiProtocolTests extends PivInstrumentedTests {

@Test
@Category(AlwaysManualTest.class)
public void testAuthenticate() throws Throwable {
withPivSession(PivBioMultiProtocolDeviceTests::testAuthenticate);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
PivTests.NoScpTests.class,
PivTests.Scp11bTests.class,
PivJcaProviderTests.NoScpTests.class,
PivJcaProviderTests.Scp11bTests.class
PivJcaProviderTests.Scp11bTests.class,
PivBioMultiProtocolTests.class
})
public class PivTests {
public static class NoScpTests extends PivInstrumentedTests {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,16 @@
*/
package com.yubico.yubikit.testing.desktop.piv;

import com.yubico.yubikit.testing.desktop.AlwaysManualTest;
import com.yubico.yubikit.testing.desktop.framework.PivInstrumentedTests;
import com.yubico.yubikit.testing.piv.PivBioMultiProtocolDeviceTests;
import org.junit.Test;
import org.junit.experimental.categories.Category;

public class PivBioMultiProtocolTests extends PivInstrumentedTests {

@Test
@Category(AlwaysManualTest.class)
public void testAuthenticate() throws Throwable {
withPivSession(PivBioMultiProtocolDeviceTests::testAuthenticate);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@
PivTests.NoScpTests.class,
PivTests.Scp11bTests.class,
PivJcaProviderTests.NoScpTests.class,
PivJcaProviderTests.Scp11bTests.class
PivJcaProviderTests.Scp11bTests.class,
PivBioMultiProtocolTests.class
})
public class PivTests {
public static class NoScpTests extends PivInstrumentedTests {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,6 @@ protected PivTestState(Builder builder) throws Throwable {

DeviceInfo deviceInfo = getDeviceInfo();

// skip MPE devices
assumeFalse("Ignoring MPE device", isMpe(deviceInfo));

boolean isPivFipsCapable = isFipsCapable(deviceInfo, Capability.PIV);
boolean hasPinComplexity = deviceInfo != null && deviceInfo.getPinComplexity();

Expand Down

0 comments on commit fdc4f2f

Please sign in to comment.