Skip to content

Python client tunnel smoketest#750

Merged
alb-rl merged 3 commits intomainfrom
cursor/python-client-tunnel-smoketest-c8be
Mar 4, 2026
Merged

Python client tunnel smoketest#750
alb-rl merged 3 commits intomainfrom
cursor/python-client-tunnel-smoketest-c8be

Conversation

@alb-rl
Copy link
Copy Markdown
Contributor

@alb-rl alb-rl commented Mar 3, 2026

Update Python API client smoketests to reflect that deprecated create_tunnel creates unremovable v2 Portal tunnels.

The previous test_create_and_remove_tunnel was failing due to a 400 error when attempting to remove a tunnel created by the deprecated create_tunnel endpoint. This is because the deprecated endpoint now provisions v2 Portal tunnels, which cannot be removed using the old remove_tunnel method. This PR updates the tests to reflect this behavior, ensuring the test passes and accurately represents the current API functionality.


Slack Thread

Open in Web Open in Cursor 

- Renamed test_create_and_remove_tunnel to test_create_tunnel_deprecated
- Removed tunnel removal attempt that was causing 400 error
- Added verification that v2 tunnel persists in devbox info
- Updated docstrings to clarify v2 tunnels cannot be removed
- Applied fix to both sync and async test files

Co-authored-by: albert <alb-rl@users.noreply.github.com>
@cursor
Copy link
Copy Markdown

cursor bot commented Mar 3, 2026

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

cursoragent and others added 2 commits March 4, 2026 00:28
- Fixed type checking errors in tunnel tests
- Changed devbox.info() to devbox.get_info() in both sync and async tests

Co-authored-by: albert <alb-rl@users.noreply.github.com>
Co-authored-by: albert <alb-rl@users.noreply.github.com>
@alb-rl alb-rl requested review from jason-rl, sid-rl and tode-rl March 4, 2026 00:31
@alb-rl alb-rl marked this pull request as ready for review March 4, 2026 00:31
@alb-rl alb-rl merged commit 92004cc into main Mar 4, 2026
7 checks passed
@alb-rl alb-rl deleted the cursor/python-client-tunnel-smoketest-c8be branch March 4, 2026 00:33
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.

3 participants