diff --git a/go-server-server/go/default.go b/go-server-server/go/default.go index 688d773..ccafc72 100644 --- a/go-server-server/go/default.go +++ b/go-server-server/go/default.go @@ -1036,7 +1036,7 @@ func ConfigVrouterVrfIdPost(w http.ResponseWriter, r *http.Request) { guid := CacheGetVniId(uint32(attr.Vnid)) if guid != "" { WriteRequestErrorWithSubCode(w, http.StatusConflict, RESRC_EXISTS, - "Object already exists {\"vni\":\"" + strconv.Itoa(attr.Vnid) + "\", \"vnet_name\":\"" + guid +"\"}", []string{}, "") + "Object already exists: {\"vni\":\"" + strconv.Itoa(attr.Vnid) + "\", \"vnet_name\":\"" + guid +"\"}", []string{}, "") return } diff --git a/test/test_restapi.py b/test/test_restapi.py index 7f38783..bf26485 100644 --- a/test/test_restapi.py +++ b/test/test_restapi.py @@ -182,7 +182,7 @@ def test_post_vrouter_duplicate(self, setup_restapi_client): 'vnid': 1001 }) assert r.status_code == 409 - assert r.json()['error']['message'] == "Object already exists {\"vni\":\"1001\", \"vnet_name\":\"vnet-guid-1\"}" + assert r.json()['error']['message'] == "Object already exists: {\"vni\":\"1001\", \"vnet_name\":\"vnet-guid-1\"}" def test_post_vrouter_with_advertise_prefix(self, setup_restapi_client): _, _, configdb, restapi_client = setup_restapi_client