X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=cmd%2Fvesmgr%2FsubscribexAPPNotifications_test.go;h=1521da3c4bec0c2eed90f59c0e62ceab04276834;hb=refs%2Fchanges%2F53%2F2353%2F2;hp=6305f4043e6a725d514066924dd4158c1c611bbf;hpb=fc77ebb24a8627ccfb18edd8b5dbc038da475eab;p=ric-plt%2Fvespamgr.git diff --git a/cmd/vesmgr/subscribexAPPNotifications_test.go b/cmd/vesmgr/subscribexAPPNotifications_test.go index 6305f40..1521da3 100644 --- a/cmd/vesmgr/subscribexAPPNotifications_test.go +++ b/cmd/vesmgr/subscribexAPPNotifications_test.go @@ -13,6 +13,10 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. + * + * This source code is part of the near-RT RIC (RAN Intelligent Controller) + * platform project (RICP). + * */ package main @@ -53,9 +57,10 @@ func (suite *AppmgrHTTPServerTestSuite) TestSubscribexAppNotifications() { var result map[string]interface{} err := json.Unmarshal([]byte(body), &result) suite.Nil(err) - suite.Equal(5, int(result["maxRetries"].(float64))) - suite.Equal(5, int(result["retryTimer"].(float64))) - suite.Equal("all", result["eventType"].(string)) + data := result["Data"].(map[string]interface{}) + suite.Equal(5, int(data["maxRetries"].(float64))) + suite.Equal(5, int(data["retryTimer"].(float64))) + suite.Equal("all", data["eventType"].(string)) suite.Equal("POST", req.Method) res.Header().Add("Content-Type", "application/json") res.WriteHeader(http.StatusCreated)