Documentation ¶
Overview ¶
Package iotdevicetest provides utilities for iotdevice testing.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateRandomID ¶
func GenerateRandomID() string
func NewDevice ¶
func NewDevice(t *testing.T, c *iotservice.Client) *iotservice.Device
NewDevice creates a new test device and deletes it when the tests are done.
func NewModule ¶
func NewModule(t *testing.T, c *iotservice.Client, deviceID string) *iotservice.Module
NewModule creates a new test module, sets up SAS authentication and deletes it when the tests are done.
func NewServiceClient ¶
func NewServiceClient(t *testing.T) *iotservice.Client
NewServiceClient creates a service client based on the `TEST_IOTHUB_SERVICE_CONNECTION_STRING` connection string.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.