-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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 DomainMapping conformance test #9780
Add DomainMapping conformance test #9780
Conversation
@@ -35,6 +35,11 @@ func (dm *DomainMapping) GetGroupVersionKind() schema.GroupVersionKind { | |||
return SchemeGroupVersion.WithKind("DomainMapping") | |||
} | |||
|
|||
// IsReady returns true if the DomainMapping is ready. | |||
func (dms *DomainMappingStatus) IsReady() bool { |
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.
I think we have moved away from this and are instead providing this method on the type itself, including a Generation check, like:
// IsReady returns true if the Status condition MetricConditionReady
// is true and the latest spec has been observed.
func (m *Metric) IsReady() bool {
ms := m.Status
return ms.ObservedGeneration == m.Generation &&
ms.GetCondition(MetricConditionReady).IsTrue()
}
(this would also make the currently unused ReadyCondition constant used 😂 )
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.
ah, I copied this from Route
but sure that makes sense, lemme update
Codecov Report
@@ Coverage Diff @@
## master #9780 +/- ##
==========================================
+ Coverage 87.75% 87.79% +0.04%
==========================================
Files 180 180
Lines 8589 8590 +1
==========================================
+ Hits 7537 7542 +5
+ Misses 802 799 -3
+ Partials 250 249 -1
Continue to review full report at Codecov.
|
if !test.ServingFlags.EnableAlphaFeatures { | ||
t.Skip("Alpha features not enabled") | ||
} |
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.
We should enable this in .github/workflows/kind-e2e.yaml
and ./test/e2e-tests.sh
otherwise nothing is running this. I feel like we should be running this at least somewhere.
I'd kinda like to see the istio class annotation moved to be config-based before we start adding e2e tests that will light up folks testgrid.
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.
added to kind-e2e in #9837, Im gonna ping on slack to try to get some hand-holding for how to go about trying to iterate on modifications to e2e-tests.sh :)
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.
.. and added prow e2e in #9851. Think this may be ready to go now.
a47e56b
to
9d93fc7
Compare
Rebased on master so we can try this out with the new e2e test GitHub action 🤞. |
Neat: passes on contour and ingress, fails on kourier as expected bc I don't think we have RewriteHost implemented there yet. Do we want to |
4adf445
to
8823a40
Compare
Rebased so we can try this with the prow-based e2e-tests now #9851 has landed 🤞. |
/retest |
@julz yeah I'd add an exclude with |
good call @mattmoor, done. |
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.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: julz, mattmoor 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 |
/unhold |
Fourth part of #9713.
Now that (once #9752 lands) things work end-to-end, add a simple conformance test for DomainMapping.
Looks like this is the only thing outside of Ingress using the new alpha/beta conformance test stuff, so I hope I'm holding this right. Also if we want this to actually run in CI we'll need to deploy
config/domain-mapping
in test-infra.. gonna need some hand-holding on how that should work./hold for #9752./assign @mattmoor @dprotaso