Commit Graph

5 Commits

Author SHA1 Message Date
Chi Zhang f591fc672a
export Client (#1278) 2020-05-04 00:22:43 -07:00
Kenjiro Nakayama f68639f04b
Shorten object name to avoid DNS issue defined (RFC 1035) (#1224)
* Shorten object name to avoid DNS issue defined (RFC 1035)

In serving, when running e2e test after changing the domainTempalte to
`{{.Name}}-{{.Namespace}}.{{Domain}}`, some tests failed with
following error:

```
Retrying for DNS error: Get http://service-to-service-call-via-activator-a-disabled-qgoluwzd-serving-tests.apps.ci-op-y42hx5lj-23b3e.origin-ci-int-aws.dev.rhcloud.com: dial tcp: lookup service-to-service-call-via-activator-a-disabled-qgoluwzd-serving-tests.apps.ci-op-y42hx5lj-23b3e.origin-ci-int-aws.dev.rhcloud.com: no such host
```

This is because DNS
label(`service-to-service-call-via-activator-a-disabled-qgoluwzd-serving-tests`)
became longer than 63 characters (RFC 1035).

To fix it, this patch changes the object name to less than 35
characters.

Note, the `35` is estimated by `Max(63) - (namespace(23) + buffer(5))`.

* Use kmeta.ChildName
2020-04-15 19:14:48 -07:00
coryrc 9d8b936ca0 Switch *testing.T uses to equivalent interface + structured logging (#935)
Working to introduce structured logging to our tests. See #907

This work allows these test functions to be called by objects other
than *testing.T. The t.Error() calls are made compatible with
structured logging (wrapping Zap sugared logger calls) or code using
testing.T.
2019-12-13 10:22:54 -08:00
Chi Zhang 3f11504864 Some refactors of the pkg/test code (#763)
* some refactors of the pkg/test code

* move clustermanager

* fix unit tests

* address comments

* address feedback

* move clustermanager package

* add comments

* address comment
2019-10-15 23:03:15 -07:00
Matt Moore d90a9bc97d Upstream the logstream package from knative/serving. (#472)
This also upstreams the utility for generating test resource names upon which it builds.
2019-06-18 20:29:46 -07:00