Skip to content

TPT-4671: Generate SSH keys in process for integration tests - #742

Open
zliang-akamai wants to merge 3 commits into
devfrom
zhiwei/python-native-ssh-key-gen
Open

zliang-akamai wants to merge 3 commits into
devfrom
zhiwei/python-native-ssh-key-gen

Conversation

@zliang-akamai

@zliang-akamai zliang-akamai commented Sep 9, 2026 •

Copy link
Copy Markdown
Member

📝 Description

Integration tests currently create SSH keys by shelling out to ssh-keygen, which fails on hosts that do not have OpenSSH installed. Generate Ed25519 keys in process with cryptography so the suite no longer depends on that host binary.

✔️ How to Test

make TEST_CASE="test_ssh_key_create" test-int

Drop the ssh-keygen subprocess so the suite does not need OpenSSH on the host. Add cryptography as an int-test extra.
@zliang-akamai zliang-akamai added the testing for updates to the testing suite in the changelog. label Sep 9, 2026
@zliang-akamai
zliang-akamai marked this pull request as ready for review September 14, 2026 17:52
@zliang-akamai
zliang-akamai requested review from a team as code owners September 14, 2026 17:52
@zliang-akamai
zliang-akamai requested review from mawilk90 and yec-akamai and removed request for a team September 14, 2026 17:52
mawilk90
mawilk90 previously approved these changes Sep 16, 2026
@zliang-akamai
zliang-akamai dismissed mawilk90’s stale review September 23, 2026 19:01

The merge-base changed after approval.

@zliang-akamai
zliang-akamai requested review from a team, mawilk90 and psnoch-akamai and a lite review from Copilot and removed request for a team September 24, 2026 21:00

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🟢 Approval recommended

No unresolved review comments remain.

Review effort: Lite
Findings: None

What changed in this PR

This pull request replaces the integration tests’ dependency on ssh-keygen with in-process Ed25519 key generation.

Changes:

  • Generates OpenSSH-compatible keys using cryptography.
  • Adds cryptography to integration-test dependencies.
File Summary
test/​integration/​conftest.py Replaces subprocess-based key generation.
pyproject.toml Adds the required integration dependency.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

testing for updates to the testing suite in the changelog.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants