-
Notifications
You must be signed in to change notification settings - Fork 3k
Change TESTS/netsocket/ for cellular testing #9645
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
Conversation
@AriParkkila, thank you for your changes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only config has changed, I don't believe this needs tool team approval.
fefa52c
to
4763275
Compare
@VeijoPesonen |
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please update the changed values to the netsocket test case specification - TESTS/netsocket/README.md.
@@ -32,7 +32,7 @@ void TLSSOCKET_HANDSHAKE_INVALID() | |||
TEST_ASSERT_EQUAL(NSAPI_ERROR_OK, sock.open(NetworkInterface::get_default_instance())); | |||
TEST_ASSERT_EQUAL(NSAPI_ERROR_OK, sock.set_root_ca_cert(tls_global::cert)); | |||
TEST_ASSERT_EQUAL(NSAPI_ERROR_NO_CONNECTION, | |||
sock.connect("google.com", MBED_CONF_APP_ECHO_SERVER_DISCARD_PORT_TLS)); | |||
sock.connect("os.mbed.com", MBED_CONF_APP_ECHO_SERVER_DISCARD_PORT_TLS)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@michalpasztamobica. @SeppoTakalo there was a reason to use google.com?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This might have something to do with IPv6 address resolution, see the comment #9387 (comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, os.mbed.com does not accept IPv6 traffic which means it will fail with a different error than we expect. Google.com accepts Ipv6 traffic but will fail due to invalid certificate (which is what we want to test).
4763275
to
b1e5955
Compare
@michalpasztamobica @VeijoPesonen thanks reverted back to google.com. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please do not change the TLSSOCKET_HANDHSAKE_INVALID connection back to os.mbed.com. It has to stay with google.com (or some other IPv6-compliant webpage) to pass Nanostack and LWIP6 tests. If necessary, please adjust the documentation. Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just saw your changes, thanks a lot :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small changes requested
b1e5955
to
57413d1
Compare
57413d1
to
56badd8
Compare
CI started |
Test run: SUCCESSSummary: 12 of 12 test jobs passed |
Description
Change TESTS/netsocket/ for cellular testing:
Pull request type
Reviewers
@VeijoPesonen