Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding a fake controller-runtime Client implementation and improving …
…operator tests (#247) * multi-tenant interceptor and scaler Signed-off-by: Aaron Schlesinger <aaron@ecomaz.net> * specifying host in XKCD ingress Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com> * routing the xkcd chart to the interceptor properly Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com> * check host header first Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com> * sending true active response in stream Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com> * passing target pending requests through to the underlying ScaledObject (so the scaler can read it later) Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com> * removing broken target pending requests Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com> * using getHost in proxy handler Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com> * adding integration test Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com> * adding more tests to the integration test Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com> * splitting up integration tests Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com> * more checks Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com> * mark new test TODO Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com> * expanding interceptor integration tests Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com> * error messages Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com> * refactor test Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com> * more test improvements Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com> * rolling back target pending requests in ScaledObject Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com> * removing target metric error. it's not used anymore Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com> * improving waitFunc test Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com> * Refactoring the deployment cache to add better error handing and resilience. Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com> * adding doc comment Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com> * refactoring deploy cache and adding tests Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com> * Using interfaces for deployment watch & list this makes tests easier Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com> * adding more deploy cache tests Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com> * Fixing up TestK8sDeploymentCacheRewatch Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com> * shutting down everything else when one thing errors, and adding a deployments cache endpoint Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com> * removing commented code Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com> * clarifying deployment cache JSON output, and simplifying deployment watch function Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com> * adding TODO tests Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com> * error logs and restoring the count middleware Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com> * using consistent net/http package name throughout main.go Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com> * Refactoring deployment cache deployment storage Also, running go mod tidy and adding new TODO (i.e. failing) tests Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com> * using deployment.Status.ReadyReplicas, instead of just replicas Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com> * integration_tets ==> proxy_handlers_integration_test Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com> * adding some resilience to tests Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com> * adding deployment cache endpoint documentation Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com> * running the global test target with sh.RunV Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com> * adding timeout to magefile test target Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com> * finishing one TODO test and adding issue for the rest: Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com> * implementing a fake controller-runtime client Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com> * testing properly Signed-off-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
- Loading branch information