Commit Graph

14 Commits

Author SHA1 Message Date
Francesco Guardiani 00cee157bd Added test utilities methods (#902)
* Added WaitForPodState to wait a state of a single pod

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Added WaitForServiceEndpoints

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Changes from review

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Change from review

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
2019-11-27 07:13:21 -08:00
mattmoor-sockpuppet 1864f499dc golang format tools (#497)
Produced via:
  `gofmt -s -w $(find -path './vendor' -prune -o -type f -name '*.go' -print))`
  `goimports -w $(find -name '*.go' | grep -v vendor)`
/assign @mattmoor
2019-06-27 07:37:08 -07:00
Matt Moore 222dd25986 Migrate pkg to use the knative.dev/pkg import path (#489)
* Manual changes.

* scripted changes.
2019-06-26 13:02:06 -07:00
Chi Zhang 1e775ff271 Add a method to check if a single pod running (#375)
* add method to check if a single pod is running

* add a method to check if a single pod is running

* PodRunning function only returns bool

* change the pod running check to one line
2019-04-10 10:16:58 -07:00
Chi Zhang 28cfa16149 Do not hard code namespace when checking pod logs (#377) 2019-04-09 15:02:58 -07:00
Victor Agababov b032768e6d Fix v1beta1 deployment to v1 in test (#346) 2019-03-27 13:48:51 -07:00
srinivashegde86 46bd1f13c2 Add some more common test componets in pkg/test (#321) 2019-03-18 10:41:46 -07:00
dushyanthsc ec1c8ea324 Metrics logging fix in pkg/test: Issue-3150 (#279)
* Metrics logging fix in pkg/test: Issue-3150

https://github.com/knative/serving/issues/3150 describes the issue
that currently exists in our test logging framework. This change
fixes the problem by prefixing metrics that needs to be emited by
a constant which the logging.ExpoxtSpan method then uses to identify
the spans that needs to be emitted as logs

Note this only fixes part of the issue:
https://github.com/knative/serving/issues/3150
this change needs to be ported to knative serving before the issue
can be closed.

* Update test/logging/logging.go

Adding required lines.

Co-Authored-By: dushyanthsc <43390008+dushyanthsc@users.noreply.github.com>
2019-02-15 13:36:44 -08:00
Gregory Haynes 4171d75265 Remove knative-serving in test/kube_checks (#237)
This was hardcoded from when we moved it in from serving - it needs to
be configurable here.
2019-01-29 14:33:37 -08:00
Gregory Haynes 2a1c043ce3 Move crd checks from serving in to test (#236)
These are generally usable test cases for K8s and as such should live in
pkg/test
2019-01-22 14:18:33 -08:00
Nghia Tran 4365af623c Increase wait time a little bit. (#214)
In some cases, pods have entered 'Terminating' state, and we're only
waiting for K8s to kill the pods which unfortunately could go over the
5 minutes timeout here.
2019-01-08 10:45:41 -08:00
srinivashegde86 bb9898e8eb Move duration as an arg for WaitForDeploymentState (#113) 2018-10-10 10:04:27 -07:00
srinivashegde86 382a2bff0a Make kube_checks generic so that it can be used in serving (#58)
* Make kube_checks generic

* Use logging lib in cleanup
2018-08-31 16:01:12 -07:00
srinivashegde86 8bdbf4eeb9 Add the common test e2e files (#39)
* Add the common test e2e files

* Update deps

* Add the constants and remove serving related methods
2018-08-13 11:28:56 -07:00