Skip to content
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

Migrate Route controller to table testing. #1498

Merged
merged 1 commit into from
Jul 6, 2018

Conversation

mattmoor
Copy link
Member

@mattmoor mattmoor commented Jul 5, 2018

This migrates a significant portion of the Route controller's unit testing to use our TableTest method. I've tried to clear out any redundant testing in route_test.go while ensure we don't drop coverage.

This covers an uncovered case from my prior change where we reconcile updates to the underlying Service if it is changed around us.

Fixes: #1219

@google-prow-robot google-prow-robot added the size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. label Jul 5, 2018
@google-prow-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: 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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@google-prow-robot google-prow-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 5, 2018
This migrates a significant portion of the Route controller's unit testing to use our `TableTest` method.  I've tried to clear out any redundant testing in `route_test.go` while ensure we don't drop coverage.

This covers an uncovered case from my prior change where we reconcile updates to the underlying Service if it is changed around us.
@knative-metrics-robot
Copy link

The following is the coverage report on pkg/. Say /test pull-knative-serving-go-coverage to run the coverage report again

File Old Coverage New Coverage Delta
pkg/controller/route/labels.go 80.0% 82.6% 2.6

*TestCoverage feature is being tested, do not rely on any info here yet

@tcnghia
Copy link
Contributor

tcnghia commented Jul 6, 2018

/lgtm

@google-prow-robot google-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Jul 6, 2018
@google-prow-robot google-prow-robot merged commit 1ddb7b4 into knative:master Jul 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants