Skip to content
This repository was archived by the owner on Dec 1, 2022. It is now read-only.

[BACKPORT][0.22.0] Fix websocket test with https option#802

Merged
openshift-merge-robot merged 2 commits intoopenshift:release-v0.22.0from
nak3:backport-websocket
Jun 15, 2021
Merged

[BACKPORT][0.22.0] Fix websocket test with https option#802
openshift-merge-robot merged 2 commits intoopenshift:release-v0.22.0from
nak3:backport-websocket

Conversation

@nak3
Copy link

@nak3 nak3 commented Jun 11, 2021

This patch cherry-pick upstream tests:

/cc @markusthoemmes @mgencur

nak3 added 2 commits June 11, 2021 10:04
…native#11318)

`GetIngressEndpoint()` is a function to get ingress endpoint for the
spoof client. So we don't need to call it when `--resolvabledomain` is
enabled. Especially when Ingresss service uses `ClusterIP`, it alwasy
fails to get endpoint and test fails.

This patch changes to call GetIngressEndpoint() only when
resolvabledomain is false in websocket test.
* Support websocket https

* Use TLS for websocket and gRPC tests

Current gRPC and Websocket does not use TLS, but still uses HTTP even
when it runs with HTTPS mode.

This patch fixes it.

* Add ServerName to pseudo host with TLS.

* Decrease the length of test name

* Fix race issue

* Add workaround only https

* try dialer option

* Without parallel

* Use a single DialOption

* Revert "Without parallel"

This reverts commit 99455a6.

* Revert "Revert "Without parallel""

This reverts commit 7105cbc.

* Fix TestGRPCStreamingPingViaActivator

* Do not run gRPC with parallel

* Add TODO comment

* Use net.SplitHostPort

* make long ksvc name generic

* Revert "make long ksvc name generic"

This reverts commit 4119f08.
@openshift-ci openshift-ci bot requested review from markusthoemmes and mgencur June 11, 2021 01:07
@openshift-ci openshift-ci bot added the area/test-and-release Issues or PRs related to test and release label Jun 11, 2021
@nak3
Copy link
Author

nak3 commented Jun 14, 2021

/test 4.7-e2e-aws-ocp-47

Copy link

@markusthoemmes markusthoemmes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm
/approve

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Jun 15, 2021
@openshift-ci
Copy link

openshift-ci bot commented Jun 15, 2021

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: markusthoemmes, nak3

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 15, 2021
@openshift-merge-robot openshift-merge-robot merged commit 47cd72b into openshift:release-v0.22.0 Jun 15, 2021
markusthoemmes pushed a commit that referenced this pull request Jun 22, 2021
* Do not call GetIngressEndpoint() when --resolvabledomain is enabled (knative#11318)

`GetIngressEndpoint()` is a function to get ingress endpoint for the
spoof client. So we don't need to call it when `--resolvabledomain` is
enabled. Especially when Ingresss service uses `ClusterIP`, it alwasy
fails to get endpoint and test fails.

This patch changes to call GetIngressEndpoint() only when
resolvabledomain is false in websocket test.

* Use TLS for websocket and gRPC tests (knative#11322)

* Support websocket https

* Use TLS for websocket and gRPC tests

Current gRPC and Websocket does not use TLS, but still uses HTTP even
when it runs with HTTPS mode.

This patch fixes it.

* Add ServerName to pseudo host with TLS.

* Decrease the length of test name

* Fix race issue

* Add workaround only https

* try dialer option

* Without parallel

* Use a single DialOption

* Revert "Without parallel"

This reverts commit 99455a6.

* Revert "Revert "Without parallel""

This reverts commit 7105cbc.

* Fix TestGRPCStreamingPingViaActivator

* Do not run gRPC with parallel

* Add TODO comment

* Use net.SplitHostPort

* make long ksvc name generic

* Revert "make long ksvc name generic"

This reverts commit 4119f08.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. area/test-and-release Issues or PRs related to test and release lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants