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
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
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
Chris Trowbridge
a1edbb9099
Switch to using mbed-trace for greentea test debug output
2019-11-15 11:18:13 -05: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
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
1993347532
Cellular: Baud rate setting for tls greentea tests
2019-11-06 10:08:34 +02:00
Kimmo Vaisanen
986204f269
Fix TLSSocket tests
...
- set certs and keys after socket open() as required by offloaded TLSSocket
- Added more checks for invalid handshake test and removed google.com test as
as some modems (e.g. BG96) might contains root CA for google.com
2019-09-25 09:25:33 +03:00
Martin Kojtal
e134b22dab
Merge pull request #11473 from michalpasztamobica/gcc_warnings_fixes
...
Fix compilation warnings from GCC in netsocket/network tests
2019-09-19 10:36:16 +02:00
Michal Paszta
9ce69b6f7d
Fix compilation warnings from GCC
2019-09-16 12:11:26 +03:00
Marcin Tomczyk
da8dbca561
Add missing documentation about tls testing
2019-09-09 11:54:19 +02:00
Teppo Järvelin
65bf17eff5
Fix netsocket tests for IAR
...
Test case printed IP address. If ip address is null, IAR compiled binary fails.
Added check for printing null. If IP address is null, then it prints string 'null'.
2019-08-15 15:26:36 +03:00
int_szyk
ae6f8be146
Newline at the end of files
2019-08-01 08:44:58 +02:00
int_szyk
8b68a1ea58
Updated testcases
2019-07-31 10:46:38 +02:00
Martin Kojtal
dd77957d45
Merge pull request #10665 from tymoteuszblochmobica/json
...
Add hardcoded Echo server defaults for Greentea socket tests.
2019-06-09 18:05:03 +01:00
Kevin Bracey
2fbbd9d2ca
Introduce Semaphore::acquire methods
...
Deprecate wait() in favour of acquire(), try_acquire(),
try_acquire_for() and try_acquire_until().
Brings Semaphore more into line with CMSIS-RTOS 2 (which uses "acquire"),
itself (as it has "release"), and other classes having "try", "try for"
and "try until".
Also steps away from vague "wait" term - the primary operation here is
to acquire the semaphore, and this will of course sleep.
2019-05-28 17:02:06 +03:00
Tymoteusz Bloch
d42ed4e6a9
Added hardcoded Echo server defaults for Greentea socket tests.
2019-05-27 14:41:17 +02:00
Michal Paszta
631540a421
ECHOTEST internal loop simplification and fix
...
The loop was wrongly incrementing the index of the array after assiging
the value. Thus the first array element was used twice and the last one
was never user. The issue is fixed and the loops are refactored and
simplified to avoid such confusion in the future.
2019-04-15 11:54:03 +03:00
Michal Paszta
872edd4964
Relax TLSSOCKET_RECV_TIMEOUT sigio timeout
2019-04-08 12:56:41 +03:00
Anna Bridge
0f6a8357e7
Merge pull request #10037 from michalpasztamobica/tcp_skip_if_unsupported
...
TCP/TLS Socket tests will skip if TCP is not supported
2019-03-29 13:30:37 +00:00
Michal Paszta
09183c94b9
TCP/TLS Socket tests will skip if TCP is not supported
2019-03-28 10:08:53 +02:00
Michal Paszta
266d4c43a2
Handle oversized packets in tcp, tls and udp socket tests
2019-03-27 11:01:16 +02:00
Martin Kojtal
db8a018fec
Merge pull request #9959 from michalpasztamobica/refactor_socket_stats_usage
...
Refactor socket stats to reduce boiler plate
2019-03-21 10:46:15 +01:00
Martin Kojtal
91b81c65fb
Merge pull request #9905 from michalpasztamobica/test_recv_return_less_or_equal
...
Tests: check if recv returned too much data
2019-03-15 14:57:01 +01:00
Michal Paszta
b7ed4b5d9e
Refactor socket stats to reduce bioler plate
...
Add a proper test case setup and teardown which does the socket stats
checks in tcp, udp and tls.
2019-03-14 11:09:35 +02:00
kegilbert
194fa129fb
Update recently added previous macro name uses in tests
2019-03-01 13:53:47 -06:00
Michal Paszta
c81f71b2de
Tests: check if recv returned too much data
2019-03-01 18:01:38 +02:00
Martin Kojtal
b08ddaad8b
Merge pull request #9794 from michalpasztamobica/greentea_tcpsocket_sigio
...
Refactor tcpsocket tests to use sigio and not to wait
2019-02-26 10:30:56 +01:00
Cruz Monrreal
044d0c9cb1
Merge pull request #9778 from michalpasztamobica/add_missing_wifi_config_params
...
Add missing wifi parameters to test configs
2019-02-25 17:30:36 -06:00
Michal Paszta
999273f7e5
Refactor tcpsocket tests to use sigio and not to wait
2019-02-25 15:33:09 +02:00
Michal Paszta
19c6732105
Add missing wifi parameters to test configs
2019-02-22 10:13:14 +02:00
Cruz Monrreal
4cbcc36c3c
Merge pull request #9730 from michalpasztamobica/tlssocketsimultaneous_temporary_removal
...
Greentea: Remove TLSSocket_simultaneous test
2019-02-19 14:56:02 -06:00
Michal Paszta
ca57bdd481
Greentea tests: user-configurable timeouts
...
Now it is enough to add:
"macros": [
"MBED_GREENTEA_TEST_XXXSOCKET_TIMEOUT_S=20"
],
to mbed_app.json, where XXX is on of {DNS, TLS, UDP, TCP}.
Also network-* tests are now configurable: network-interface, network-wifi, network-emac with a similar macro.
2019-02-15 15:08:15 +02:00
Michal Paszta
a089661f05
Greentea: Remove TLSSocket_simultaneous test
...
The reason is that some platforms lack memory to run it. To be brought
back once TLS library memory consumption is optimized.
2019-02-15 11:59:28 +02:00
Cruz Monrreal
2e9d6d2938
Merge pull request #9645 from AriParkkila/cellular-netsocket
...
Change TESTS/netsocket/ for cellular testing
2019-02-13 17:28:35 -06:00
Ari Parkkila
56badd8616
Change TESTS/netsocket/ for cellular testing
2019-02-13 01:30:42 -08:00
Michal Paszta
b5c00aa6b7
Greentea tests: set correct port to test against google.com
2019-02-12 15:40:11 +02:00
Veijo Pesonen
ba75924c28
tests-netsocket-tls: TLSSOCKET_ECHOTEST deletes socket on failure case
2019-02-07 12:01:09 +02:00
Michal Paszta
c3f3dcbc0e
Use an ip4- and ip6-compliant site to test TLS certificate error reporting
2019-01-31 15:00:13 +02:00
Michal Paszta
af65522652
Publish TLSSocket test documentation
...
The whole README.md had to be updated to match the internal Confluence documentation, which can now be locked. In the process I also updated any spotted mistakes in tests documentation, removed the obsolete TCPServer tests documentation and added a test which was missing from UDPSocket's main.
2019-01-23 16:54:19 +02:00
Michal Paszta
d568e2160b
Add TLSSocket greentea tests.
...
TLSSocket tests based on existing TCPSocket greentea tests and TLSSocket icetea tests.
2019-01-22 12:46:48 +01:00