Remove KubeConfig Dependency for Store Tests

Removes the KubeConfig Dependency for the Store Test by using the
FakeClient Instead. Unit Tests should not rely on a real KubeConfig.

Fixes #2789
This commit is contained in:
Fernando Diaz 2018-07-16 11:17:13 -05:00
parent 2486ad9500
commit c783c08d81
4 changed files with 254 additions and 152 deletions

View file

@ -272,7 +272,6 @@ func registerHealthz(ic *controller.NGINXController, mux *http.ServeMux) {
}
func registerMetrics(reg *prometheus.Registry, mux *http.ServeMux) {
mux.Handle(
"/metrics",
promhttp.InstrumentMetricHandler(