Repository navigation
Add Domainmapping AutoTLS e2e test - #10795
Conversation
|
Skipping CI for Draft Pull Request. |
e5b5a01 to
1b40084
Compare
Codecov Report
@@ Coverage Diff @@
## main #10795 +/- ##
==========================================
+ Coverage 87.66% 87.74% +0.08%
==========================================
Files 191 191
Lines 9190 9211 +21
==========================================
+ Hits 8056 8082 +26
+ Misses 881 876 -5
Partials 253 253
Continue to review full report at Codecov.
|
1b40084 to
c9b2f15
Compare
|
/test pull-knative-serving-contour-tls |
| ) | ||
|
|
||
| func TestDomainMappingAutoTLS(t *testing.T) { | ||
| //if !test.ServingFlags.EnableAlphaFeatures { |
There was a problem hiding this comment.
I am still trying to figure out how this will run with prow
There was a problem hiding this comment.
that's why I left the comment :), but will sure have to either uncomment of remove once the PR is ready, Thanks :)
| waitErr := wait.PollImmediate(test.PollInterval, test.PollTimeout, func() (bool, error) { | ||
| state, err := clients.ServingAlphaClient.DomainMappings.Get(context.Background(), dm.Name, metav1.GetOptions{}) | ||
| if err != nil { | ||
| return true, err | ||
| } | ||
|
|
||
| return state.IsReady(), nil | ||
| }) | ||
| if waitErr != nil { | ||
| t.Fatalf("The DomainMapping %s was not marked as Ready: %v", dm.Name, waitErr) | ||
| } |
There was a problem hiding this comment.
Fold into if like on line 72.
|
/assign @julz |
julz
left a comment
There was a problem hiding this comment.
mostly looking good, thanks! I think we want to align it with the other autotls tests which should help get it working properly in prow/non-prow contexts
| } | ||
|
|
||
| // Should be able to access the test image text via the mapped domain. | ||
| if err := shared.CheckDistribution(ctx, t, clients, &url.URL{Host: host, Scheme: "https"}, test.ConcurrentRequests, test.ConcurrentRequests, []string{test.PizzaPlanetText1}, resolvableCustomDomain); err != nil { |
There was a problem hiding this comment.
I think this isn't quite the way you want to do this here. I'd grab the code from auto_tls_test to make the TLS request with the right credentials. Since this is in the autotls package I'd expect it to work with the cases outlined in the README.
There was a problem hiding this comment.
@julz I think I've addressed the comments, but let me if I missed anything
9517659 to
b89dc1d
Compare
|
/retest pull-knative-serving-istio-stable-no-mesh-tls |
|
@YoussB: The
Use
DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
/test pull-knative-serving-istio-stable-no-mesh-tls |
|
/test pull-knative-serving-contour-tls |
b854a47 to
c31dd3c
Compare
|
/test pull-knative-serving-contour-tls |
|
We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for all the commit author(s) or Co-authors. If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google. ℹ️ Googlers: Go here for more info. |
thx @nak3 Signed-off-by: Bishoy Youssef <[email protected]>
|
/test pull-knative-serving-istio-stable-no-mesh-tls-with-http01 |
|
Thanks @nak3 for the suggestions, I have committed them all. |
|
/test pull-knative-serving-istio-stable-no-mesh-tls-with-http01 |
1 similar comment
|
/test pull-knative-serving-istio-stable-no-mesh-tls-with-http01 |
|
/test pull-knative-serving-istio-stable-no-mesh-tls-with-http01 |
Signed-off-by: Bishoy Youssef <[email protected]>
|
/test pull-knative-serving-istio-stable-no-mesh-tls-with-http01 |
|
Thanks @ZhiminXiang for the pointers, I wouldn't have been able to find this problem myself. |
|
@YoussB I'm sorry to have kept you waiting. Zhimin is taking leave until June 😅 |
Co-authored-by: Kenjiro Nakayama <[email protected]>
|
Hey @YoussB, |
Signed-off-by: Bishoy Youssef <[email protected]>
|
Thanks for the reminder @xtreme-sameer-vohra ... I will be happy to see this to completion :) |
|
@nak3 lmk if there is anything else you want me to change. |
|
/lgtm Thank you @YoussB |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: nak3 The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Fixes #10247
Proposed Changes
test/conformance/api/v1alpha1/domain_mapping_test.goexcept for the fact that it tests with https instead of http.Release Note