X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=pkg%2Fresthooks%2Fresthooks_test.go;h=01d11e79bb4c9ef81eaa9b71cdbcd81a799a7b3d;hb=c28a0f5b8812d67786a600932ecf877762e344cd;hp=ac3dc25ddf63e54cb4f17c87b99282ee54bab1af;hpb=b7a743adb64d9a737e505d54fbdbe46777551d06;p=ric-plt%2Fa1.git diff --git a/pkg/resthooks/resthooks_test.go b/pkg/resthooks/resthooks_test.go index ac3dc25..01d11e7 100644 --- a/pkg/resthooks/resthooks_test.go +++ b/pkg/resthooks/resthooks_test.go @@ -229,7 +229,11 @@ func TestGetPolicyInstanceStatus(t *testing.T) { var keys [1]string keys[0] = instancekey sdlInst.On("Get", a1MediatorNs, keys[:]).Return(httpBody) - + instancekey = a1HandlerPrefix + strconv.FormatInt(20001, 10) + "." + string(policyInstanceID) + var instancekeys [1]string + instancekeys[0] = instancekey + instancearr := []interface{}{instancekey, "OK"} + sdlInst.On("Get", a1MediatorNs, instancekeys[:]).Return(instancearr, nil) resp, errresp := rh.GetPolicyInstanceStatus(policyTypeId, policyInstanceID) assert.Nil(t, errresp)