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

Tests: passkey: Add a ssh key as a passkey mapping #7207

Closed
wants to merge 1 commit into from

Conversation

madhuriupadhye
Copy link
Contributor

@madhuriupadhye madhuriupadhye commented Feb 22, 2024

Here, added two test cases:
1. Check log message when we add ssh key as passkey
mapping.
2. Check log message when we add ssh key with
passkey token.

src/tests/system/tests/test_passkey.py Show resolved Hide resolved
src/tests/system/tests/test_passkey.py Outdated Show resolved Hide resolved
src/tests/system/tests/test_passkey.py Outdated Show resolved Hide resolved
Copy link
Contributor

@spoore1 spoore1 left a comment

Choose a reason for hiding this comment

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

I have a general question about the test and possibly a suggestion for additional tests:

Isn't the main point that SSH/SU should work with non-passkey mapping data stored in the provider when passkey feature is enabled?

Should we also cover the following scenarios?

  1. Mixed passkey and non-passkey data in the provider attribute
  2. SSH with passkey data in the provider attribute? (does this work properly now?)
  3. SSH with password if passkey data is in the provider attribute
  4. SSH with public key if ssh key is stored in the provider attribute (this one might be better in another test suite)?

src/tests/system/tests/test_passkey.py Outdated Show resolved Hide resolved
src/tests/system/tests/test_passkey.py Outdated Show resolved Hide resolved
src/tests/system/tests/test_passkey.py Outdated Show resolved Hide resolved
src/tests/system/tests/test_passkey.py Outdated Show resolved Hide resolved
src/tests/system/tests/test_passkey.py Outdated Show resolved Hide resolved
Copy link
Contributor

@spoore1 spoore1 left a comment

Choose a reason for hiding this comment

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

LGTM

@madhuriupadhye madhuriupadhye force-pushed the ssh_passkey branch 3 times, most recently from b20c33d to f3788e1 Compare April 5, 2024 11:20
Copy link
Contributor

@spoore1 spoore1 left a comment

Choose a reason for hiding this comment

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

1 codeQL warning and a couple of suggestions for test case naming changes that might clarify test purposes.

src/tests/system/tests/test_passkey.py Fixed Show resolved Hide resolved
src/tests/system/tests/test_passkey.py Outdated Show resolved Hide resolved
src/tests/system/tests/test_passkey.py Outdated Show resolved Hide resolved
src/tests/system/tests/test_passkey.py Outdated Show resolved Hide resolved
@spoore1 spoore1 self-requested a review April 5, 2024 14:36
@justin-stephenson justin-stephenson self-assigned this Apr 5, 2024
@justin-stephenson justin-stephenson self-requested a review April 5, 2024 14:51
@madhuriupadhye madhuriupadhye force-pushed the ssh_passkey branch 5 times, most recently from eb70793 to 7d2e48c Compare April 10, 2024 14:51
Here, added two test cases:
1. Check log message when we add ssh key as passkey
mapping.
2. Check log message when we add ssh key with
passkey token.

Signed-off-by: Madhuri Upadhye <[email protected]>
Copy link
Contributor

@spoore1 spoore1 left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@ikerexxe ikerexxe left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Contributor

@justin-stephenson justin-stephenson left a comment

Choose a reason for hiding this comment

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

Ack, thank you.

@alexey-tikhonov alexey-tikhonov added the Ready to push Ready to push label Apr 22, 2024
@alexey-tikhonov
Copy link
Member

Pushed PR: #7207

  • master
    • 55bcb88 - Tests: passkey: Add a ssh key as a passkey mapping
  • sssd-2-9
    • c9977ca - Tests: passkey: Add a ssh key as a passkey mapping

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
passkey Issues and PRs related to 'passkey' feature Pushed Tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants