diff --git a/go.mod b/go.mod index 08cb3b788e..1bb7f7eeba 100644 --- a/go.mod +++ b/go.mod @@ -4,7 +4,7 @@ require ( bitbucket.org/bertimus9/systemstat v0.0.0-20180207000608-0eeff89b0690 github.com/dgrijalva/jwt-go v3.2.0+incompatible github.com/edgexfoundry/go-mod-bootstrap/v2 v2.0.0-dev.67 - github.com/edgexfoundry/go-mod-core-contracts/v2 v2.0.0-dev.100 + github.com/edgexfoundry/go-mod-core-contracts/v2 v2.0.0-dev.103 github.com/edgexfoundry/go-mod-messaging/v2 v2.0.0-dev.16 github.com/edgexfoundry/go-mod-registry/v2 v2.0.0-dev.8 github.com/edgexfoundry/go-mod-secrets/v2 v2.0.0-dev.26 diff --git a/internal/core/metadata/controller/http/deviceprofile_test.go b/internal/core/metadata/controller/http/deviceprofile_test.go index e27a0de634..cfda8ea448 100644 --- a/internal/core/metadata/controller/http/deviceprofile_test.go +++ b/internal/core/metadata/controller/http/deviceprofile_test.go @@ -41,6 +41,7 @@ var testDeviceProfileLabels = []string{"MODBUS", "TEMP"} var testAttributes = map[string]interface{}{ "TestAttribute": "TestAttributeValue", } +var testMappings = map[string]string{"0": "off", "1": "on"} func buildTestDeviceProfileRequest() requests.DeviceProfileRequest { var testDeviceResources = []dtos.DeviceResource{{ @@ -58,6 +59,7 @@ func buildTestDeviceProfileRequest() requests.DeviceProfileRequest { ReadWrite: common.ReadWrite_RW, ResourceOperations: []dtos.ResourceOperation{{ DeviceResource: TestDeviceResourceName, + Mappings: testMappings, }}, }}