+
+func TestCustomOnaboardEmptyPkg(t *testing.T) {
+ svr := httptest.NewUnstartedServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
+ ricdms.Logger.Debug("request received by mock to get chart by name and version")
+ }))
+
+ svr.Listener.Close()
+ svr.Listener, _ = net.Listen("tcp", ricdms.Config.MockServer)
+
+ svr.Start()
+ defer svr.Close()
+
+ resp := rh.Onboarder.CustomOnboard(nil)
+ ricdms.Logger.Debug("resp type:%T", resp)
+
+ switch resp.(type) {
+ case *experiment.PostCustomOnboardInternalServerError:
+ break
+ default:
+ assert.Failf(t, "case 1 response type did not match", "[actual: %T]", resp)
+ }
+}