-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🎁 Add test flags for the conformance suite #960
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #960 +/- ##
==========================================
- Coverage 93.43% 93.41% -0.02%
==========================================
Files 36 36
Lines 1249 1003 -246
==========================================
- Hits 1167 937 -230
+ Misses 69 53 -16
Partials 13 13 ☔ View full report in Codecov by Sentry. |
- service domain to allow for customizing the domain used by the test - request delay to allow for a delay before trying the request to allow the service to get ready
2edd26f
to
fff22b1
Compare
/lgtm |
test/conformance/ingress/util.go
Outdated
dial := network.NewBackoffDialer(dialBackoff) | ||
ingressIP := ing.Status.PublicLoadBalancer.Ingress[0].IP | ||
if ingressIP != "" { | ||
return func(ctx context.Context, _ string, address string) (net.Conn, error) { | ||
if ingressIP != "" { | ||
return dial(ctx, "tcp", ingressIP+":80") | ||
} | ||
return nil, errors.New("service ingress does not contain dialing information") | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this change seems out of scope for the PR description
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this was added by mistake as part of my local testing, took it out
test/conformance/ingress/util.go
Outdated
@@ -1065,7 +1074,7 @@ func CreateDialContext(ctx context.Context, t *testing.T, ing *v1alpha1.Ingress, | |||
t.Fatalf("Unable to retrieve Kubernetes service %s/%s: %v", namespace, name, err) | |||
} | |||
|
|||
dial := network.NewBackoffDialer(dialBackoff) | |||
//dial := network.NewBackoffDialer(dialBackoff) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
commited my accident?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this was also added by mistake as part of my local testing, took it out
test/conformance/ingress/util.go
Outdated
@@ -1123,6 +1132,13 @@ func RuntimeRequestWithExpectations(ctx context.Context, t *testing.T, client *h | |||
opts ...RequestOption) *types.RuntimeInfo { | |||
t.Helper() | |||
|
|||
t.Logf("delay of %d before doing the request \n", test.NetworkingFlags.RequestDelay) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
t.Logf already prints new lines I believe
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed the new line
test/conformance/ingress/timeout.go
Outdated
@@ -86,9 +86,14 @@ func TestTimeout(t *testing.T) { | |||
|
|||
func checkTimeout(ctx context.Context, t *testing.T, client *http.Client, name string, code int, initial time.Duration, timeout time.Duration) { | |||
t.Helper() | |||
t.Logf("delay of %d before doing the request \n", test.NetworkingFlags.RequestDelay) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
t.Logf already prints new lines I believe
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we only print this if there is a delay
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, changed to only print if delay > 0
3e63502
to
642a0f2
Compare
@dprotaso addressed the comments, thanks for the review |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dprotaso, nader-ziada The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Changes
service domain
to allow for customizing the domain used by the test instead of hard-coding toexample.com
, defaults toexample.com
/kind enhancement
Release Note