Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tests for custom SOCKS bridges #5779

Merged
merged 2 commits into from
Feb 8, 2024
Merged

Conversation

dlon
Copy link
Member

@dlon dlon commented Feb 6, 2024

Closes DES-609.

This change is Reviewable

@dlon dlon force-pushed the testing-add-socks-bridge-tests branch from 2b3187a to 228bb05 Compare February 6, 2024 16:50
Copy link

linear bot commented Feb 6, 2024

@dlon dlon force-pushed the testing-add-socks-bridge-tests branch from 68af67a to bf57e44 Compare February 7, 2024 16:21
@dlon dlon force-pushed the testing-add-socks-server branch from f30d6d1 to eed7234 Compare February 7, 2024 16:34
Base automatically changed from testing-add-socks-server to main February 7, 2024 16:50
@dlon dlon force-pushed the testing-add-socks-bridge-tests branch from bf57e44 to 10ac362 Compare February 7, 2024 16:51
@dlon dlon marked this pull request as ready for review February 7, 2024 16:51
Copy link
Contributor

@MarkusPettersson98 MarkusPettersson98 left a comment

Choose a reason for hiding this comment

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

Reviewed 1 of 1 files at r1, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved


test/test-manager/src/tests/tunnel.rs line 698 at r1 (raw file):

            bridge_type: BridgeType::Custom,
            normal: BridgeConstraints::default(),
            custom: Some(CustomProxy::Socks5Local(Socks5Local::new(

Nit: We could use Socks5Local::new_with_transport_protocol here to be explicit about using TCP. Using new will default to TCP, so it is fine to leave it as is 😊

Code quote:

Socks5Local::new

@dlon dlon force-pushed the testing-add-socks-bridge-tests branch from 9659e8c to e1a194c Compare February 8, 2024 11:02
Copy link
Contributor

@MarkusPettersson98 MarkusPettersson98 left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 1 of 1 files at r2, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved

@dlon dlon merged commit bc51bf6 into main Feb 8, 2024
27 checks passed
@dlon dlon deleted the testing-add-socks-bridge-tests branch February 8, 2024 12:23
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.

2 participants