resp := rh.GetCharts()
assert.NotEqual(t, nil, resp)
- successResp := resp.(*charts.GetChartsListOK)
- assert.Equal(t, "SAMPLE_RESPONSE", successResp.Payload)
+ if _, ok := resp.(*charts.GetChartsListOK); !ok {
+ assert.Fail(t, "response type did not match : %t", resp)
+ }
}
func TestDownloadChart(t *testing.T) {
}
+func TestUninstallxApp(t *testing.T) {
+ response := rh.UninstallChart("test", "test", "test")
+ if _, ok := response.(*d.DeleteDeployInternalServerError); !ok {
+ assert.Fail(t, "response type did not match actual: %T", response)
+ }
+}
+
type HealthCheckerMock struct {
mock.Mock
}