Commit 6714e71
authored
reverse_tunnels: integration tests (#43840)
**Commit Message:** This PR adds basic integration tests for the reverse
tunnels functionality.
**Additional Description:**
This PR adds integration tests for the reverse tunnel functionality,
including:
1. **EndToEndReverseTunnelTest** - Tests basic reverse tunnel setup with
a single node establishing a connection to a cloud listener, followed by
sending HTTP requests through the egress listener that route through the
reverse tunnel to a backend service. Validates the complete
request/response flow and verifies tunnel statistics.
2. **EndToEndReverseTunnelTestWithMutualTLS** - Similar to the basic
end-to-end test but with mutual TLS (mTLS) between the initiator and
responder.
3. **ReverseTunnelResiliencyTest** - Tests reverse tunnel resilience in
a multi-node, multi-cloud scenario. Sets up 2 edge nodes (node-1,
node-2) with connections to 2 cloud instances (cloud_1, cloud_2) using
LDS. Simulates node-1 failure by removing its initiator listeners via
LDS, verifies that node-2 continues to function while node-1 requests
fail, then re-adds node-1's listeners and confirms that tunnels are
re-established and both nodes become operational again.
4. **MultiWorkerEndToEndReverseTunnelTest** - Test that runs the
complete e2e test but with multiple workers.
**Risk Level:** Low - Tests only
**Testing:** New integration tests added
**Docs Changes:** N/A
**Release Notes:** N/A
**Platform Specific Features:** N/A
---------
Signed-off-by: Basundhara Chakrabarty <basundhara.c@nutanix.com>
Signed-off-by: Basundhara Chakrabarty <basundhara17061996@gmail.com>1 parent 28cb0f7 commit 6714e71
2 files changed
Lines changed: 1308 additions & 0 deletions
File tree
- test/extensions/clusters/reverse_connection
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
6 | 10 | | |
7 | 11 | | |
8 | 12 | | |
| |||
36 | 40 | | |
37 | 41 | | |
38 | 42 | | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
0 commit comments