import (
"fmt"
+ "github.com/stretchr/testify/assert"
"io/ioutil"
"net/http"
"strconv"
return 0, false
}
+func (mc *testingSubmgrControl) VerifyAllClean(t *testing.T) {
+ // Verify that all resources are freed
+ assert.Equal(t, 0, len(mainCtrl.c.registry.register))
+ assert.Equal(t, 0, len(mainCtrl.c.registry.restSubscriptions))
+ verifyRESTKeyCount(t, 0)
+ verifyE2KeyCount(t, 0)
+}
+
func (mc *testingSubmgrControl) GetMetrics(t *testing.T) (string, error) {
req, err := http.NewRequest("GET", "http://localhost:8080/ric/v1/metrics", nil)
if err != nil {