Tymoteusz Bloch
17c5f3ecd7
Greentea DNS tests workaround due to NSAPI DNS bug/deadlock with Nanostack.
...
Tests sequence swaped:
ASYNCHRONOUS_DNS_TIMEOUTS
ASYNCHRONOUS_DNS_INVALID_HOST
This is temporary solution to prevent Jenkins fail until root cause will be fixed.
2020-01-24 13:26:29 +01:00
Ari Parkkila
031d90a3ce
Fix UDP socket test cases
...
Fix UDP socket test cases to check more strictly on failure,
and lower trace levels to not print errors on successful cases.
2020-01-17 01:24:51 -08:00
Martin Kojtal
40b6f12dfd
Merge pull request #12239 from tymoteuszblochmobica/testfix
...
Fix DNS multiple query hints to perform both IP4 and IP6 tests
2020-01-15 13:02:43 +01:00
Martin Kojtal
f4842c7c6d
Merge pull request #12157 from michalpasztamobica/esp8266_send_retry
...
ESP8266: Avoid duplicate data sends
2020-01-15 12:57:12 +01:00
Tymoteusz Bloch
d30dba29ec
Fix DNS multiple query hints to perform both IP4 and IP6 tests
2020-01-10 17:54:39 +01:00
Evelyne Donnaes
8a4bba33bd
Fixed baremetal build failures
2020-01-10 13:20:59 +00:00
Martin Kojtal
3e790cc9ab
Merge pull request #12065 from AriParkkila/cell-fea-nidd
...
Non-IP socket implementation for NIDD over CP
2020-01-07 15:55:15 +01:00
Martin Kojtal
9d16a17e7e
Merge pull request #11653 from tymoteuszblochmobica/multiple
...
Add Getaddrinfo interface for multiple DNS adresses
2020-01-07 14:53:36 +01:00
Ari Parkkila
4b3ef73333
Cellular: Fix astyle
2020-01-06 22:35:53 -08:00
Ari Parkkila
27024b34e3
Cellular: Add NIDD over CP socket tests
2020-01-06 22:35:18 -08:00
Michal Paszta
6dfa2d78ad
Increase UDP test timeout to 1200s
...
This is because the ESP8266 is now waiting for SEND OK and takes much
more to complete the send_repeat, and echo_burst tests in RAAS.
(but has higher pass ratio).
2020-01-02 17:21:09 +02:00
Ari Parkkila
6b374804be
TESTS: Allow NSAPI_ERROR_NO_MEMORY on UDPSOCKET_ECHOTEST_BURST
2019-12-20 04:44:29 -08:00
Martin Kojtal
9cd3813282
Merge pull request #12045 from tymoteuszblochmobica/wisun
...
Netsocket test adjusted to Wisun
2019-12-19 08:23:36 +01:00
Tymoteusz Bloch
8b2f4c2e7e
Getaddrinfo interface for multiple DNS adresses added.
...
New members are added to the network interface
-getaddrinfo
-getaddrinfo_async
gethostbyname is unchanged but gethostbyname_async result param now contains results od DNS records found.
Test cases for sync/async added added to DNS test folder.
2019-12-16 13:59:46 +01:00
Tymoteusz Bloch
0859ff7b79
Netsocket tests timeouts and JSON and TLS configuration adjusted to pass under mesh Wisun.
...
Netsocket timeouts increased due to long node join on current Wisun implementation.
2019-12-11 17:42:29 +01:00
Kimmo Vaisanen
c2d72b5e73
Update netsocket test README for connect-send-recv UDP tests
2019-12-09 16:23:07 +02:00
Kimmo Vaisanen
767c40d970
Add UDP ECHOTEST with connect/send/recv calls
...
UDPSocket can be used also similar to TCPSocket using connect(), send() and recv() methods.
This commit adds UDP ECHOTESTS which uses these methods instead of sendto() and recvfrom().
2019-12-03 13:39:50 +02:00
Martin Kojtal
ffdd54315f
Merge pull request #11941 from michalpasztamobica/remove_internal_string_apis
...
Remove string-based API usage within mbed-os
2019-11-28 14:26:03 +01:00
Michal Paszta
71db612913
Remove udpsocket_sendto_invalid
...
It tested parameter checks in the now obsoleted string-based API.
2019-11-27 20:04:47 +02:00
Michal Paszta
5ece00c787
Tests: TLSSocket invalid connect simplified
2019-11-27 20:02:27 +02:00
Michal Paszta
ea04c4f85e
Remove internal usage of deprecated APIs in IPCore
...
Updated:
* netsocket classes,
* unittests, stubs and mocks,
* greentea tests
2019-11-27 20:02:20 +02:00
Martin Kojtal
e4b3603fe4
Merge pull request #11936 from kivaisan/cancel_timedout_async_dns_query
...
DNS tests: Cancel asynchronous dns query if it times out
2019-11-26 11:47:33 +01:00
Martin Kojtal
860f18b59b
Merge pull request #11819 from tymoteuszblochmobica/timeouts
...
Add code to verify if external Wifi module is still responsible
2019-11-25 15:57:53 +01:00
Kimmo Vaisanen
896bc4432b
DNS tests: Cancel asynchronous dns query if it times out
...
In this test case if asynchronous DNS request results does not happen
in requested time, the request must be cancelled to ensure it does not
happen later on when test has exited already.
We've seen couple of crashes in CI tests which indicate this kind of behaviour
but this is very difficult to reproduce.
2019-11-25 10:07:46 +02:00
Ari Parkkila
d2f87a141d
TESTS: Fix TCP/TLS send_timeout test to non-block
2019-11-21 04:15:44 -08:00
Tymoteusz Bloch
983c9586ee
Adjustment of netsocket tests to the lossy mesh network limitation.
2019-11-20 12:13:34 +01:00
Martin Kojtal
2e96145b76
Merge pull request #11871 from AriParkkila/test-udpechotest-timeout
...
TESTS: Add socket.set_timeout in udpsocket_echotest
2019-11-16 07:55:53 +01:00
Chris Trowbridge
a1edbb9099
Switch to using mbed-trace for greentea test debug output
2019-11-15 11:18:13 -05:00
Ari Parkkila
ed754434b7
TESTS: Add socket.set_timeout in udpsocket_echotest
...
Some packet loss may be expected/allowed with UDP.
Set socket timeout to continue testing if no response is received within a timeout.
2019-11-14 06:04:37 -08:00
Tymoteusz Bloch
678b57c253
Add code to verify if external Wifi module is still responsible
...
after DNS Query flooding during DNS timeout test.
DNS timeout test requires flooding device with DNS queries.
This causes problem to ESP8266 module causing it to stuck for 11 sec.
In result all following tests fails. To avoid this "smart delay" is added.
If device preforms gethostbyname correctly then tests can proceed.
Otherwise after 1 sec sleep gethostbyname is repeated until success or re-check limit (set to 15).
Thanks to this all ethernet and non ESP8266 wireless devices don't need to wait but ESP must wait.
2019-11-12 14:41:15 +01:00
Martin Kojtal
09c24507c3
Merge pull request #11824 from rajkan01/feature-baremetal-greentea-net
...
Skip Bare Metal green tea test for Network component
2019-11-12 11:09:46 +01:00
RAJKUMAR KANAGARAJ
a682fde31c
Incorporated review comments
2019-11-11 05:01:23 -08:00
Martin Kojtal
816689d1bb
Merge pull request #11822 from tymoteuszblochmobica/tls
...
TLSSOCKET_HANDSHAKE_INVALID test skip if DNS AAA record not available.
2019-11-08 13:31:45 +01:00
RAJKUMAR KANAGARAJ
120ca1b245
Incorporated the review comments
2019-11-07 07:48:43 -08:00
Kimmo Vaisanen
582b16ffbc
Add sender address and port verification to UDPSOCKET_ECHOTEST
...
recvfrom method returns sender address and port and this commit
adds a test for it in UDPSOCKET_ECHOTEST.
2019-11-07 14:51:20 +02:00
Tymoteusz Bloch
eb3befdac9
TLSSOCKET_HANDSHAKE_INVALID test skip if DNS AAA record not available.
...
TLS test sevrver "badssl.com" doesn't support DNS AAA records for IPV6.
To avoid test fail if no IPV4 is chosen this test is skipped.
2019-11-06 17:57:19 +01:00
RAJKUMAR KANAGARAJ
c9eb48a0c5
Netsocket,lora,cellular,nework test case requires RTOS so MBED_CONF_RTOS_PRESENT guard to all test cases
2019-11-06 04:06:11 -08:00
Mirela Chirica
d2794c63c0
Cellular: Baud rate setting for UDPSOCKET_ECHOTES_BURST greentea test
2019-11-06 10:09:03 +02:00
Mirela Chirica
1993347532
Cellular: Baud rate setting for tls greentea tests
2019-11-06 10:08:34 +02:00
Martin Kojtal
5303b10509
Merge pull request #11693 from mtomczykmobica/ONME-4398
...
UDPSOCKET_ECHOTEST change to tolerate duplicate packets
2019-11-04 15:29:51 +01:00
Mirela Chirica
3fdbe2408d
Cellular: Baud rate setting for TCPSOCKET_RECV_100K greentea test
2019-11-01 17:22:06 +02:00
Marcin Tomczyk
11864c71aa
UDPSOCKET_ECHOTEST change to tolerate duplicate packets
2019-10-16 03:55:26 -07:00
Martin Kojtal
0e7d8927f1
Merge pull request #11615 from kivaisan/remove_deprecated_cellular_tests
...
Cellular: Remove old deprecated tests
2019-10-14 09:28:01 +02:00
Anna Bridge
51680cb55e
Merge pull request #11601 from michalpasztamobica/tests_dns_timeouts_esp8266
...
DNS tests modification for ESP8266-specific scenario
2019-10-07 16:49:11 +01:00
Anna Bridge
eeb033f814
Merge pull request #11357 from kivaisan/offloaded_tlssocket_bg96
...
Offloaded TLSSocket and BG96 support for it
2019-10-03 11:54:32 +01:00
Kimmo Vaisanen
b6ebfeea2c
Cellular: Remove old deprecated tests
...
Cellular tests have been replaced with generic mbed-os netsocket and network interface tests.
2019-10-03 10:24:12 +03:00
Michal Paszta
3297445ac2
Increase the timeout for DNS tests as their number increased
2019-10-01 15:14:44 +03:00
Michal Paszta
d6b77da270
Increase timeout in DNS_TIMEOUTS test for ESP8266
...
The test floods the device with UDP requests (it skips the 100 ms delay to simulate instant timeout). ESP8266 starts responding with "busy p..." message. It needs more time to process the data and recover for subsequent tests.
2019-10-01 15:14:25 +03:00
Antti Kauppila
f0eba17ca2
Added missing include
2019-09-30 14:50:26 +03:00
Antti Kauppila
f26074c7be
Added missing include + cleaned up some tests
2019-09-27 11:13:20 +03:00