Skip to content

Add e2e test cases for Channel-Subscription model#976

Merged
knative-prow-robot merged 22 commits into
knative:masterfrom
chizhg:AddE2ETestCases
Apr 5, 2019
Merged

Add e2e test cases for Channel-Subscription model#976
knative-prow-robot merged 22 commits into
knative:masterfrom
chizhg:AddE2ETestCases

Conversation

@chizhg
Copy link
Copy Markdown
Contributor

@chizhg chizhg commented Mar 26, 2019

Added e2e test cases for the following two scenarios:

  1. Event delivery through channel chain
  2. Event transformation

More information can be found in the test case comment.

PS. currently there's some duplicate code in the test cases, we can probably refactor them into common functions in the future.

@googlebot googlebot added the cla: yes Indicates the PR's author has signed the CLA. label Mar 26, 2019
@knative-prow-robot knative-prow-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Mar 26, 2019
@chizhg
Copy link
Copy Markdown
Contributor Author

chizhg commented Mar 26, 2019

/retest

@knative-prow-robot knative-prow-robot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Mar 26, 2019
@chizhg
Copy link
Copy Markdown
Contributor Author

chizhg commented Mar 26, 2019

/retest

Comment thread test/e2e/event_transformation_test.go Outdated
Comment thread test/test_images/logevents/main.go Outdated
Comment thread test/test_images/transformevents/main.go
Comment thread test/e2e/e2e.go
Comment thread test/e2e/e2e.go Outdated
Comment thread test/e2e/event_transformation_test.go Outdated
Comment thread test/e2e/channel_chain_test.go Outdated
@vaikas
Copy link
Copy Markdown
Contributor

vaikas commented Mar 27, 2019

Thanks for adding tests!!! 💯

Comment thread test/test_images/logevents/main.go Outdated
Comment thread test/e2e/e2e.go Outdated
Comment thread test/e2e/e2e.go Outdated
Comment thread test/e2e/e2e.go Outdated
Comment thread test/e2e/channel_chain_test.go Outdated
@syedriko
Copy link
Copy Markdown
Contributor

syedriko commented Mar 27, 2019

This is a generic test, it doesn't depend on a particular CCP. Will it run against the various channels/channel providers? Through what mechanism?

@chizhg
Copy link
Copy Markdown
Contributor Author

chizhg commented Mar 29, 2019

This is a generic test, it doesn't depend on a particular CCP. Will it run against the various channels/channel providers? Through what mechanism?

Currently it's only running against the default in-memory channel. When we have support for setting up other CCPs like Kafka, we can reuse the same test cases to test them by simply changing the Provisioner flag.

@chizhg chizhg changed the title Add e2e test cases Add e2e test cases for Channel-Subscription model Mar 29, 2019
@chizhg
Copy link
Copy Markdown
Contributor Author

chizhg commented Apr 2, 2019

/retest

Comment thread test/crd.go Outdated
Comment thread test/crd.go Outdated
Comment thread test/e2e/e2e.go
Comment thread test/e2e/e2e.go Outdated
Comment thread test/e2e/e2e.go Outdated
Comment thread test/e2e/event_transformation_test.go Outdated
Comment thread test/e2e/event_transformation_test.go Outdated
Comment thread test/e2e/event_transformation_test.go Outdated
Comment thread test/e2e/event_transformation_test.go Outdated
Comment thread test/e2e/event_transformation_test.go Outdated
Copy link
Copy Markdown
Contributor

@Harwayne Harwayne left a comment

Choose a reason for hiding this comment

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

/approve
/lgtm

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

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Fredy-Z, Harwayne

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

@knative-prow-robot knative-prow-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 4, 2019
@chizhg
Copy link
Copy Markdown
Contributor Author

chizhg commented Apr 5, 2019

/retest

2 similar comments
@chizhg
Copy link
Copy Markdown
Contributor Author

chizhg commented Apr 5, 2019

/retest

@chizhg
Copy link
Copy Markdown
Contributor Author

chizhg commented Apr 5, 2019

/retest

@knative-prow-robot knative-prow-robot removed the lgtm Indicates that a PR is ready to be merged. label Apr 5, 2019
@chizhg
Copy link
Copy Markdown
Contributor Author

chizhg commented Apr 5, 2019

/retest

Copy link
Copy Markdown
Contributor

@Harwayne Harwayne left a comment

Choose a reason for hiding this comment

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

/lgtm

@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Apr 5, 2019
@chizhg
Copy link
Copy Markdown
Contributor Author

chizhg commented Apr 5, 2019

/retest

@knative-prow-robot knative-prow-robot removed the lgtm Indicates that a PR is ready to be merged. label Apr 5, 2019
@chizhg
Copy link
Copy Markdown
Contributor Author

chizhg commented Apr 5, 2019

/retest
The E2E tests are taking a longer time and cannot finish with 10 minutes, which is the default timeout for go test. So I'll have to change it to a larger value for now.
In the next PR, I'll change the test case to run parallel and hopefully we can make the running time shorter.

BTW, the current timeout for Serving e2e/conformance tests is 30 minutes.

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

@Harwayne Harwayne left a comment

Choose a reason for hiding this comment

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

/lgtm

@knative-prow-robot knative-prow-robot merged commit 339f227 into knative:master Apr 5, 2019
@chizhg chizhg deleted the AddE2ETestCases branch September 2, 2019 04:22
creydr added a commit to creydr/knative-eventing that referenced this pull request Dec 11, 2024
…kerfiler-v1.15

[release-v1.15] Make adapter independent from brokerfilter package
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. cla: yes Indicates the PR's author has signed the CLA. lgtm Indicates that a PR is ready to be merged. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants