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

Added rekt test for channel event autocreate #7198

Merged
merged 1 commit into from
Aug 24, 2023

Conversation

Cali0707
Copy link
Member

Fixes #7197

Proposed Changes

  • Add experimental test for eventtype autocreate on IMC

Pre-review Checklist

  • At least 80% unit test coverage
  • E2E tests for any new behavior
  • Docs PR for any user-facing impact
  • Spec PR for any new API feature
  • Conformance test for any change to the spec

@knative-prow knative-prow bot added area/test-and-release Test infrastructure, tests or release size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Aug 23, 2023
@Cali0707
Copy link
Member Author

/cc @Leo6Leo @dsimansk @matzew

@codecov
Copy link

codecov bot commented Aug 23, 2023

Codecov Report

Patch coverage has no change and project coverage change: -0.05% ⚠️

Comparison is base (a2e2aa3) 77.95% compared to head (b5fda34) 77.90%.
Report is 4 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7198      +/-   ##
==========================================
- Coverage   77.95%   77.90%   -0.05%     
==========================================
  Files         246      246              
  Lines       13202    13202              
==========================================
- Hits        10291    10285       -6     
- Misses       2390     2394       +4     
- Partials      521      523       +2     

see 2 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@matzew matzew left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve

@knative-prow knative-prow bot added the lgtm Indicates that a PR is ready to be merged. label Aug 24, 2023
@knative-prow
Copy link

knative-prow bot commented Aug 24, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Cali0707, matzew

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

@knative-prow knative-prow bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 24, 2023
@matzew
Copy link
Member

matzew commented Aug 24, 2023

/test upgrade-tests

@knative-prow knative-prow bot merged commit 11f1ee4 into knative:main Aug 24, 2023
30 of 32 checks passed
mgencur pushed a commit to mgencur/eventing that referenced this pull request Jan 24, 2024
mgencur pushed a commit to mgencur/eventing that referenced this pull request Jan 29, 2024
openshift-merge-bot bot pushed a commit to openshift-knative/eventing that referenced this pull request Jan 29, 2024
* Added rekt test for channel event autocreate (knative#7198)

Signed-off-by: Calum Murray <[email protected]>

* Move eventtype rekttest pingsource to experiment (knative#7180)

* Fix the merge conflict and fix the logical error in the test

Signed-off-by: Leo Li <[email protected]>

* Add the auto eventType creation support

Signed-off-by: Leo Li <[email protected]>

* reformat and remove the comments

Signed-off-by: Leo Li <[email protected]>

* Remove the assertReference function

Signed-off-by: Leo Li <[email protected]>

* fix reviewDog issue

Signed-off-by: Leo Li <[email protected]>

* Update test/rekt/resources/eventtype/eventtype.go

Co-authored-by: Calum Murray <[email protected]>

* fix reviewDog issue

Signed-off-by: Leo Li <[email protected]>

* Move the test to experimental rekt

Signed-off-by: Leo Li <[email protected]>

* Remove the eventtype test from the pingsource rekt test

Signed-off-by: Leo Li <[email protected]>

* Rename the test name to make it more intuitive

Signed-off-by: Leo Li <[email protected]>

* Revert the unit test change

Signed-off-by: Leo Li <[email protected]>

* Format fix

Signed-off-by: Leo Li <[email protected]>

* format fix

Signed-off-by: Leo Li <[email protected]>

* Fix Christoph's comment

Signed-off-by: Leo Li <[email protected]>

* go imports

Signed-off-by: Leo Li <[email protected]>

* Update test/experimental/features/eventtype_autocreation/eventtype.go

Co-authored-by: Christoph Stäbler <[email protected]>

* Update test/experimental/eventtype_autocreation_test.go

Co-authored-by: Christoph Stäbler <[email protected]>

* Apply suggestions from code review

Co-authored-by: Christoph Stäbler <[email protected]>

* Change the name of the file

Signed-off-by: Leo Li <[email protected]>

* Update the deprecated string

Signed-off-by: Leo Li <[email protected]>

* Update test/rekt/features/pingsource/features.go

Co-authored-by: Calum Murray <[email protected]>

* Manually merge the chanhges from Calum's ticket

Signed-off-by: Leo Li <[email protected]>

* Manually merge the chanhges from Calum's ticket

Signed-off-by: Leo Li <[email protected]>

---------

Signed-off-by: Leo Li <[email protected]>
Co-authored-by: Calum Murray <[email protected]>
Co-authored-by: Christoph Stäbler <[email protected]>
Co-authored-by: Matthias Wessendorf <[email protected]>

* Added rekt test for broker eventtype autocreate (knative#7202)

Signed-off-by: Calum Murray <[email protected]>

* change the deprecated string (knative#7179)

* change the deprecated string

* Apply suggestions from code review

Co-authored-by: Calum Murray <[email protected]>

---------

Co-authored-by: Calum Murray <[email protected]>

* rekt test to verify only one EventType created for MTBroker (knative#7586)

fix: eventtype autocreate for broker asserts that only one et is created

Signed-off-by: Calum Murray <[email protected]>

* Generalize description of EventType in CRD. (knative#7617)

Generalize description of EventType.

EventType is now compatible with other resources as well, not just
Broker.

* Scripts for executing experimental reconciler tests

* Revert "change the deprecated string (knative#7179)"

This reverts commit 7659227.

* Revert "Move eventtype rekttest pingsource to experiment (knative#7180)"

This reverts commit c8d12c3.

* Revert "rekt test to verify only one EventType created for MTBroker (knative#7586)"

This reverts commit 4eac230.

* Revert "Revert "change the deprecated string (knative#7179)""

This reverts commit e469414.

* Use sources.ApiServerSourceEventResourceModeTypes for ApiServerSource

* Clean up imports

---------

Signed-off-by: Calum Murray <[email protected]>
Signed-off-by: Leo Li <[email protected]>
Co-authored-by: Calum Murray <[email protected]>
Co-authored-by: Leo Li <[email protected]>
Co-authored-by: Christoph Stäbler <[email protected]>
Co-authored-by: Matthias Wessendorf <[email protected]>
Co-authored-by: Iqbal H <[email protected]>
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. area/test-and-release Test infrastructure, tests or release 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.

Add rekt test for IMC event type autocreate
2 participants