Skip to content

Replace createTunnel with enableTunnel in smoketests#746

Merged
alb-rl merged 3 commits into
mainfrom
cursor/smoketests-tunnel-endpoint-76bd
Mar 18, 2026
Merged

Replace createTunnel with enableTunnel in smoketests#746
alb-rl merged 3 commits into
mainfrom
cursor/smoketests-tunnel-endpoint-76bd

Conversation

@alb-rl

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

Copy link
Copy Markdown
Contributor

Summary

This PR removes legacy smoketests that were using the deprecated createTunnel endpoint.

Changes

  • Deleted two legacy tunnel tests from tests/smoketests/object-oriented/devbox.test.ts:
    • enable V2 tunnel (legacy test) test
    • remove tunnel after enable (should fail) test
  • These tests were using the old createTunnel API which has been replaced with enableTunnel

Details

The deleted tests were testing deprecated functionality. The remaining tests in the file already cover the new enableTunnel endpoint properly with correct V2 tunnel assertions.

Slack Thread

Open in Web Open in Cursor 

Slack Thread

Open in Web Open in Cursor 

cursoragent and others added 3 commits March 18, 2026 21:36
- Updated devbox smoketests to use enableTunnel instead of createTunnel
- Updated test descriptions to reflect the new method name
- All references to createTunnel in smoketests have been replaced

Co-authored-by: albert <alb-rl@users.noreply.github.com>
- Remove port parameter from enableTunnel() calls
- Update assertions to match V2 tunnel response structure (tunnel_key, create_time_ms)
- Remove old V1 tunnel assertions (devbox_id, port, url)
- Update test descriptions to be more accurate

Co-authored-by: albert <alb-rl@users.noreply.github.com>
- Removed 'enable V2 tunnel (legacy test)' test
- Removed 'remove tunnel after enable (should fail)' test
- These tests were using the old createTunnel API which has been replaced

Co-authored-by: albert <alb-rl@users.noreply.github.com>
@alb-rl
alb-rl requested a review from james-rl March 18, 2026 21:43
@alb-rl
alb-rl marked this pull request as ready for review March 18, 2026 21:43
@github-actions

github-actions Bot commented Mar 18, 2026

Copy link
Copy Markdown

❌ Object Smoke Tests Failed

Test Results

❌ Some smoke tests failed

Failed Tests:

  • smoketest: object-oriented devbox › devbox suspend and resume › suspend and resume devbox
  • smoketest: object-oriented devbox › devbox suspend and resume › resumeAsync - resume without waiting

Please fix the failing tests before checking coverage.

📋 View full test logs

@alb-rl
alb-rl merged commit 4b232d4 into main Mar 18, 2026
8 of 9 checks passed
@alb-rl
alb-rl deleted the cursor/smoketests-tunnel-endpoint-76bd branch March 18, 2026 23:18
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