amenzhinsky / iothub

Azure IoT Hub SDK for Golang
MIT License
53 stars 57 forks source link

Support module CRUD operations in device client #62

Closed beandrad closed 2 years ago

beandrad commented 2 years ago

This change adds all the CRUD module operations to the HTTP device client.

Note that the Module model definitions are the same as for the iotservice client and they have been reused instead of redefining them. Ideally, these model definitions should be in the common package but that would break backward compatibility.

beandrad commented 2 years ago

~@amenzhinsky I need to rebase and make some changes in the tests, otherwise, there are dupe helper functions.~ Tests should be fine now.

In CI some tests are failing because $TEST_IOTHUB_SERVICE_CONNECTION_STRING seems to be empty, not sure why.

Also, linting is failing with the error below. I run the same command on my local and it seems fine.

image