Add integration test to check connection from jumpbox to hosts#117
Add integration test to check connection from jumpbox to hosts#117Adamkadaban merged 4 commits intomonorepofrom
Conversation
|
merging into monorepo branch for now since it might take a while for that PR |
There was a problem hiding this comment.
Pull Request Overview
This PR adds an integration test to verify SSH connectivity from a jumpbox to all VMs in a range. The test validates that the jumpbox can successfully tunnel SSH connections to hosts with different operating systems using appropriate SSH usernames.
- Adds
test_jumpbox_to_vm_connectionsmethod to test SSH tunneling through jumpbox to all VMs - Creates
OS_SSH_USERNAME_MAPmapping operating systems to their default SSH usernames - Implements proper connection handling with cleanup for both jumpbox and target VM connections
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| api/tests/integration/api/v1/test_ranges.py | Adds comprehensive integration test for jumpbox-to-VM SSH connectivity with OS-specific username handling |
| api/src/app/enums/operating_systems.py | Adds SSH username mapping for all supported operating systems |
|
no idea why integration tests are failing. they work perfectly on my machine |
alexchristy
left a comment
There was a problem hiding this comment.
Looks great! Thank you for cleaning up my other test.
|
Also based on my quick research we should be able to extract the 'default' username from each of the deployed hosts using the correct terraform output configuration, so we don't have to maintain a lot of username maps in the future. Issue for this here: #104 |
Checklist
Description
Add integration test to check connection from jumpbox to hosts using paramiko channels.
Fixes: #105