// Test cases
func TestMain(m *testing.M) {
+ Logger = NewLogger("xapp-manager")
loadConfig()
xapp = Xapp{}
req, _ := http.NewRequest("DELETE", "/ric/v1/config", bytes.NewBuffer(payload))
response := executeRequest(req)
- checkResponseCode(t, http.StatusNotFound, response.Code)
+ checkResponseCode(t, http.StatusNoContent, response.Code)
}
// Error handling