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 dangerous-test-real-card feature to run the tests on a real card. #97

Merged
merged 3 commits into from
Jan 31, 2023

Conversation

sosthene-nitrokey
Copy link
Collaborator

This is labeled as dangerous as it will wipe the pgp smartcard plugged in. This feature only affects tests and is incompatible with --virtual

This is labeled as dangerous as it will wipe the pgp smartcard plugged in.
This feature only affects tests and is incompatible with --virtual
@robin-nitrokey
Copy link
Member

What do you think about adding an environment valuable that is used to store the serial number of the smartcard to test? If it does not match the connected card, the tests are aborted. This would ensure that they are not accidentally executed with a production smartcard.

@sosthene-nitrokey
Copy link
Collaborator Author

Good idea! We still need the feature flag to remove the with_vsc in testing though

Copy link
Member

@robin-nitrokey robin-nitrokey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Maybe add a readme section explaining this feature?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants