setservicename detect bad request
authordamon92 <damon92.lee@samsung.com>
Thu, 28 Mar 2019 08:06:21 +0000 (17:06 +0900)
committerdamon92 <damon92.lee@samsung.com>
Thu, 28 Mar 2019 08:06:21 +0000 (17:06 +0900)
src/restapi/v1/restapi_test.go

index 5746ea7..1b166e4 100644 (file)
@@ -251,7 +251,7 @@ func TestAPIV1DiscoverymgrDevicesGet(t *testing.T) {
 func TestAPIV1DiscoverymgrDevicesPost(t *testing.T) {
        targetURI := ConstDiscoverymgrDevicesPost
        ServiceNames := make(map[string][]string)
-       ServiceNames["servicenames"] = []string{"Distributed Web Engine", "Television", "Soundbox"}
+       ServiceNames["ServiceNames"] = []string{"Distributed Web Engine", "Television", "Soundbox"}
 
        bdbytes, err := json.Marshal(ServiceNames)
        if err != nil {