return xapps, helmError
}
+func (h *MockedHelmer) SearchAll() (s []string) {
+ return s
+}
+
func (h *MockedHelmer) List() (names []string, err error) {
return names, helmError
}
// 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