Skip to content

Move the resource test under conformance.#2733

Merged
knative-prow-robot merged 2 commits intoknative:masterfrom
mattmoor:resource-conformance
Dec 18, 2018
Merged

Move the resource test under conformance.#2733
knative-prow-robot merged 2 commits intoknative:masterfrom
mattmoor:resource-conformance

Conversation

@mattmoor
Copy link
Copy Markdown
Member

This was where I'd originally wanted this, but realized it had somehow ended up under e2e.

This also removes the pod checks, which reach around the Knative API surface.

@knative-prow-robot knative-prow-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Dec 16, 2018
@knative-prow-robot knative-prow-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Dec 16, 2018
@jonjohnsonjr
Copy link
Copy Markdown
Contributor

/lgtm
/approve

@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Dec 17, 2018
test.CleanupOnInterrupt(func() { TearDown(clients, names, logger) }, logger)
defer TearDown(clients, names, logger)

test.CleanupOnInterrupt(func() { tearDown(clients, names) }, logger)
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Shouldn't this be before CreateRunLatestServiceReady?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Done.

Comment thread test/conformance/resources_test.go Outdated
test.CleanupOnInterrupt(func() { tearDown(clients, names) }, logger)
defer tearDown(clients, names)

logger.Infof("When the Revision can have traffic routed to it, the Route is marked as Ready.")
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This is probably unnecessary. The CreateRunLatestServiceReady will have already validated that the service went into "Ready" meaning that Config/Route are Ready. It also validates that the domain is populated.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Removed.

Comment thread test/conformance/resources_test.go Outdated
@@ -69,43 +73,7 @@ func TestCustomResourcesLimits(t *testing.T) {
}
domain := route.Status.Domain
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

You should just be able to replace _ on CreateRunLatestServiceReady with objects, and do objects.Route.Status.Domain (or grab it from Service.Status.Domain).

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Nice.

@knative-prow-robot knative-prow-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed lgtm Indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Dec 17, 2018
@dgerd
Copy link
Copy Markdown

dgerd commented Dec 17, 2018

/lgtm
/approve

@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Dec 17, 2018
@knative-prow-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dgerd, jonjohnsonjr, mattmoor

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

@mattmoor
Copy link
Copy Markdown
Member Author

/retest

This was where I'd originally wanted this, but realized it had somehow ended up under e2e.

This also removes the pod checks, which reach around the Knative API surface.
@mattmoor mattmoor force-pushed the resource-conformance branch from b984a12 to ea31c12 Compare December 17, 2018 23:14
@knative-prow-robot knative-prow-robot removed the lgtm Indicates that a PR is ready to be merged. label Dec 17, 2018
@mattmoor
Copy link
Copy Markdown
Member Author

/retest

1 similar comment
@mattmoor
Copy link
Copy Markdown
Member Author

/retest

@markusthoemmes
Copy link
Copy Markdown
Contributor

/lgtm

@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Dec 18, 2018
@knative-prow-robot knative-prow-robot merged commit ce5e589 into knative:master Dec 18, 2018
@mattmoor mattmoor deleted the resource-conformance branch December 18, 2018 14:38
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/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants