Added debug API to request route and configuration details in routing manager
[ric-plt/rtmgr.git] / pkg / nbi / httpgetter_test.go
index 5c7082a..088917e 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.
    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,7 +33,6 @@ import (
        "net"
        "net/http"
        "net/http/httptest"
        "net"
        "net/http"
        "net/http/httptest"
-       "routing-manager/pkg/rtmgr"
        "testing"
 )
 
        "testing"
 )
 
@@ -46,7 +50,6 @@ func TestFetchXappListInvalidData(t *testing.T) {
 
 func TestFetchXappListWithInvalidData(t *testing.T) {
        var expected = 0
 
 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 {
        b := []byte(`{"ID":"deadbeef1234567890", "Version":0, "EventType":"all"}`)
        l, err := net.Listen("tcp", "127.0.0.1:3000")
        if err != nil {