Supporting of reading subscriptions from subscription manager while restarting rtmgr
[ric-plt/rtmgr.git] / pkg / nbi / httpgetter_test.go
index 5c7082a..0080a84 100644 (file)
    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).
+
 ==================================================================================
 */
 /*
@@ -28,12 +33,12 @@ import (
        "net"
        "net/http"
        "net/http/httptest"
-       "routing-manager/pkg/rtmgr"
        "testing"
 )
 
 var (
        XMURL = "http://127.0.0.1:3000/ric/v1/xapps"
+       E2MURL = "http://127.0.0.1:8080/ric/v1/e2t/list"
 )
 
 func TestFetchXappListInvalidData(t *testing.T) {
@@ -46,7 +51,6 @@ func TestFetchXappListInvalidData(t *testing.T) {
 
 func TestFetchXappListWithInvalidData(t *testing.T) {
        var expected = 0
-       rtmgr.SetLogLevel("debug")
        b := []byte(`{"ID":"deadbeef1234567890", "Version":0, "EventType":"all"}`)
        l, err := net.Listen("tcp", "127.0.0.1:3000")
        if err != nil {