- 01 Sep, 2022 5 commits
-
-
Francesco Pham authored
- add virtualization_tests.cpp containing virtualization tests. For now there is just one test copied from eddie-virt-client - add targets in linux/tests/CMakeLists.txt - fixture now starts `eddie-virt-server` instead of `resource-directory` - fixture starts `eddie-virt-server` with 3 mock example resources therefore adapting the communication tests - fixture-start.sh sleep time increased to 5 because timeout time is 5 seconds at initialization when the node searches for a non existent resource directory Signed-off-by:
Francesco Pham <francesco.pham@huawei.com>
-
Francesco Pham authored
dbus is required for the virtualization layer Signed-off-by:
Francesco Pham <francesco.pham@huawei.com>
-
Francesco Pham authored
- add --exampleres flag to add mock resources to the node - remove unused node parameter from VirtualizationReceiver::run - move mock_comm_setup from VirtualizationReceiver to virt_server Signed-off-by:
Francesco Pham <francesco.pham@huawei.com>
-
Francesco Pham authored
- VirtualizationSender: fix return of destroyed string by returning std::string instead of char* - VirtualizationReceiver: remove check if preferred_resource_type exists - parse program argument and forward ip and port parameter to EddieEndpoint - remove unused stuff Signed-off-by:
Francesco Pham <francesco.pham@huawei.com>
-
Francesco Pham authored
every time a new coap session is created the token generated are restarted from 0 causing the same token to be reused in different coap request, this gives rise to problem in matching responses with the correct requests. FIxing by initializing session token with the last generated token. Signed-off-by:
Francesco Pham <francesco.pham@huawei.com>
-
- 30 Aug, 2022 7 commits
-
-
Francesco Pham authored
- replacing the eddie blueprint repo with the correct url on EF. - eddie-server and eddie-client executable are no longer available Signed-off-by:
Francesco Pham <francesco.pham@huawei.com>
-
Francesco Pham authored
- Adding doxyfile that can be used to generate Doxygen documentation running `doxygen Doxyfile` inside docs/ directory. - .gitignore: ignore generated doxygen pages Signed-off-by:
Francesco Pham <francesco.pham@huawei.com>
-
Francesco Pham authored
- Add comment blocks to each public method in each class using doxygen style documentation, describing each method, their parameters and return values. - CoapServer: move get_quit and set_quit into private - CoapSite: return resources in link format as a string instead of a pointer into a buffer - CoapClient: rename max_timeout to timeout to keep in sync with the linux code Signed-off-by:
Francesco Pham <francesco.pham@huawei.com>
-
Francesco Pham authored
- Add comment blocks to each public method in each class using doxygen style documentation, describing each method, their parameters and return values. - CoapServer: move get_quit and set_quit into private - ResourceDirectory: move get_quit and set_quit into private Signed-off-by:
Francesco Pham <francesco.pham@huawei.com>
-
Francesco Pham authored
remove multicast_messages and treat multicast messages same as unicast messages by accepting the first response to the multicast request. For now this is enough for our purposes. Signed-off-by:
Francesco Pham <francesco.pham@huawei.com>
-
Francesco Pham authored
- documenting the code using doxygen comment block - send_message receive request_t parameter instead of the whole list of parameter - moving some methods into private because not used publicly - remove unused get_context method Signed-off-by:
Francesco Pham <francesco.pham@huawei.com>
-
Stefan Schmidt authored
This reverts commit ef15ba9d. This has been changed to the IPv4 localhost address because IPv6 was not enabled on our docker daemon running the Gitlab CI runners. This has been fixed now (#14 ), which means we can switch back to IPv6. Signed-off-by:
Stefan Schmidt <stefan.schmidt@huawei.com>
-
- 29 Aug, 2022 20 commits
-
-
Stefan Schmidt authored
This Dockerfile is used to build the image used to run the EDDIE CI. Keeping it here as a reference and to extend it over time when updating the image on the registry. Signed-off-by:
Stefan Schmidt <stefan.schmidt@huawei.com>
-
Francesco Pham authored
Signed-off-by:
Francesco Pham <francesco.pham@huawei.com>
-
Francesco Pham authored
Signed-off-by:
Francesco Pham <francesco.pham@huawei.com>
-
Francesco Pham authored
Signed-off-by:
Francesco Pham <francesco.pham@huawei.com>
-
Francesco Pham authored
- because the resource directory infer the port number from the resource publish request, we use the same socket used by the server in CoapClient. - adding a CoapClient constructor in case we want CoapClient to initialize a new socket instead of using a preinitialized one (i.e. the previous case) Signed-off-by:
Francesco Pham <francesco.pham@huawei.com>
-
Francesco Pham authored
Signed-off-by:
Francesco Pham <francesco.pham@huawei.com>
-
Francesco Pham authored
- move server thread into CoapServer - Zephyr: run server thread in CoapServer instead of main - add start_server and stop_server method in CoapServer Signed-off-by:
Francesco Pham <francesco.pham@huawei.com>
-
Francesco Pham authored
Signed-off-by:
Francesco Pham <francesco.pham@huawei.com>
-
Francesco Pham authored
- start server in a thread and allow non blocking server thread spawn, stop the thread using stop_server method. - CoapServer quit is now bool instead of int - CoapClient: returns GATEWAY_TIMEOUT in case of request timeout - add test that send post request to discovered resource and then a get request to check resource status Signed-off-by:
Francesco Pham <francesco.pham@huawei.com>
-
Francesco Pham authored
- set default values to request_t - fixture starts resource-directory executable instead of eddie-endpoint now: this allows to skip waiting 5 seconds for eddie-endpoint to set up - add tests for client request send and receive response Signed-off-by:
Francesco Pham <francesco.pham@huawei.com>
-
Francesco Pham authored
- run server on a separate thread so that it does not block and also this allows the node to answer its own request Signed-off-by:
Francesco Pham <francesco.pham@huawei.com>
-
Francesco Pham authored
process_simple_coap_reply now stops waiting after max_timeout has reached in which case it will return GATEWAY_TIMEOUT response. Signed-off-by:
Francesco Pham <francesco.pham@huawei.com>
-
Francesco Pham authored
Signed-off-by:
Francesco Pham <francesco.pham@huawei.com>
-
Francesco Pham authored
- Merge LinkFormat.h and EddieResource.h and rename EddieResource.h into eddie.h Signed-off-by:
Francesco Pham <francesco.pham@huawei.com>
-
Francesco Pham authored
CoapClient class properties don't need to be public Signed-off-by:
Francesco Pham <francesco.pham@huawei.com>
-
Francesco Pham authored
- replace send_request with send_message_and_wait_response, avoiding async paradigm - parse response in get_resources_from_rd and return parsed resources - logging discovered resources Signed-off-by:
Francesco Pham <francesco.pham@huawei.com>
-
Francesco Pham authored
- get_resources_from_rd returns parsed resources as vector<Link> - LinkFormat: parse href into host, port, path and store in Link - add tests - adapt VirtualizationReceiver - add logs in VirtualizationReceiver to use parsed links - add SPDX and copyright statement in LinkFormat.cpp Signed-off-by:
Francesco Pham <francesco.pham@huawei.com>
-
Francesco Pham authored
- add Link struct - parse_link_format now returns a more comprehensible std::vector<Link> instead of map Signed-off-by:
Francesco Pham <francesco.pham@huawei.com>
-
Francesco Pham authored
the error was caused by addrlen non initialized before recvfrom call. Signed-off-by:
Francesco Pham <francesco.pham@huawei.com>
-
Francesco Pham authored
change MockEddieResource to store data that can be accessed and changed by get/post/put requests. Signed-off-by:
Francesco Pham <francesco.pham@huawei.com>
-
- 05 Aug, 2022 7 commits
-
-
Francesco Pham authored
- add discover_rd() call - do not initialize resource directory when already initialized Signed-off-by:
Francesco Pham <francesco.pham@huawei.com>
-
Francesco Pham authored
Signed-off-by:
Francesco Pham <francesco.pham@huawei.com>
-
Francesco Pham authored
- add some tests - wait 5 seconds instead of 1 second to start server before running tests Signed-off-by:
Francesco Pham <francesco.pham@huawei.com>
-
Some integration tests or even units test with communication part we might need to spin up a server for some particular test case and tear it down again afterwards. This commits shows an example how to implement this test fixtures in ctest by using the FIXUP_SETUP/_CLEANUP properties on tests. The fixture execution and teardown is handed over to scripts for tracking PID. Signed-off-by:
Stefan Schmidt <stefan.schmidt@huawei.com>
-
Francesco Pham authored
Signed-off-by:
Francesco Pham <francesco.pham@huawei.com>
-
Francesco Pham authored
- add predicate to wait_until to stop waiting as soon as a response is received, without waiting until timeout - make client mutex and condition static - set BAD_REQUEST to response when the request times out Signed-off-by:
Francesco Pham <francesco.pham@huawei.com>
-
Francesco Pham authored
instead of getting the ip of the resource directory from base attribute, use the src ip from the response. Signed-off-by:
Francesco Pham <francesco.pham@huawei.com>
-
- 04 Aug, 2022 1 commit
-
-
Francesco Pham authored
coap_split_query also decodes percent encoded query string. This fixes ipv6 addresses in base that gets escaped because of square parenthesis in uri. Signed-off-by:
Francesco Pham <francesco.pham@huawei.com>
-