Skip to content

rekt test to verify only one EventType created for MTBroker#7586

Merged
knative-prow[bot] merged 1 commit into
knative:mainfrom
Cali0707:et-created-once-test
Jan 17, 2024
Merged

rekt test to verify only one EventType created for MTBroker#7586
knative-prow[bot] merged 1 commit into
knative:mainfrom
Cali0707:et-created-once-test

Conversation

@Cali0707
Copy link
Copy Markdown
Member

Fixes #7196

Proposed Changes

  • Assert that there is exactly one eventtype created, rather than just checking that all required types were created

Signed-off-by: Calum Murray <cmurray@redhat.com>
@knative-prow
Copy link
Copy Markdown

knative-prow Bot commented Jan 16, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Cali0707

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 knative-prow Bot added approved Indicates a PR has been approved by an approver from all required OWNERS files. area/test-and-release Test infrastructure, tests or release size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Jan 16, 2024
@Cali0707
Copy link
Copy Markdown
Member Author

/cc @matzew @pierDipi

@knative-prow knative-prow Bot requested review from matzew and pierDipi January 16, 2024 21:29
@codecov
Copy link
Copy Markdown

codecov Bot commented Jan 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (580dc9b) 74.56% compared to head (a0b3584) 74.56%.
Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #7586   +/-   ##
=======================================
  Coverage   74.56%   74.56%           
=======================================
  Files         262      262           
  Lines       14951    14951           
=======================================
  Hits        11148    11148           
  Misses       3215     3215           
  Partials      588      588           

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

@pierDipi
Copy link
Copy Markdown
Member

/cc @Leo6Leo

@knative-prow knative-prow Bot requested a review from Leo6Leo January 17, 2024 09:55
@Leo6Leo
Copy link
Copy Markdown
Member

Leo6Leo commented Jan 17, 2024

/lgtm

@knative-prow knative-prow Bot added the lgtm Indicates that a PR is ready to be merged. label Jan 17, 2024
@knative-prow knative-prow Bot merged commit a74bef1 into knative:main Jan 17, 2024
mgencur pushed a commit to mgencur/eventing that referenced this pull request Jan 24, 2024
…7586)

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

Signed-off-by: Calum Murray <cmurray@redhat.com>
mgencur added a commit to mgencur/eventing that referenced this pull request Jan 25, 2024
mgencur pushed a commit to mgencur/eventing that referenced this pull request Jan 29, 2024
…7586)

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

Signed-off-by: Calum Murray <cmurray@redhat.com>
mgencur added 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 <cmurray@redhat.com>

* 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 <leoli@redhat.com>

* Add the auto eventType creation support

Signed-off-by: Leo Li <leoli@redhat.com>

* reformat and remove the comments

Signed-off-by: Leo Li <leoli@redhat.com>

* Remove the assertReference function

Signed-off-by: Leo Li <leoli@redhat.com>

* fix reviewDog issue

Signed-off-by: Leo Li <leoli@redhat.com>

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

Co-authored-by: Calum Murray <cmurray@redhat.com>

* fix reviewDog issue

Signed-off-by: Leo Li <leoli@redhat.com>

* Move the test to experimental rekt

Signed-off-by: Leo Li <leoli@redhat.com>

* Remove the eventtype test from the pingsource rekt test

Signed-off-by: Leo Li <leoli@redhat.com>

* Rename the test name to make it more intuitive

Signed-off-by: Leo Li <leoli@redhat.com>

* Revert the unit test change

Signed-off-by: Leo Li <leoli@redhat.com>

* Format fix

Signed-off-by: Leo Li <leoli@redhat.com>

* format fix

Signed-off-by: Leo Li <leoli@redhat.com>

* Fix Christoph's comment

Signed-off-by: Leo Li <leoli@redhat.com>

* go imports

Signed-off-by: Leo Li <leoli@redhat.com>

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

Co-authored-by: Christoph Stäbler <cstabler@redhat.com>

* Update test/experimental/eventtype_autocreation_test.go

Co-authored-by: Christoph Stäbler <cstabler@redhat.com>

* Apply suggestions from code review

Co-authored-by: Christoph Stäbler <cstabler@redhat.com>

* Change the name of the file

Signed-off-by: Leo Li <leoli@redhat.com>

* Update the deprecated string

Signed-off-by: Leo Li <leoli@redhat.com>

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

Co-authored-by: Calum Murray <cmurray@redhat.com>

* Manually merge the chanhges from Calum's ticket

Signed-off-by: Leo Li <leoli@redhat.com>

* Manually merge the chanhges from Calum's ticket

Signed-off-by: Leo Li <leoli@redhat.com>

---------

Signed-off-by: Leo Li <leoli@redhat.com>
Co-authored-by: Calum Murray <cmurray@redhat.com>
Co-authored-by: Christoph Stäbler <cstabler@redhat.com>
Co-authored-by: Matthias Wessendorf <mwessend@redhat.com>

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

Signed-off-by: Calum Murray <cmurray@redhat.com>

* change the deprecated string (knative#7179)

* change the deprecated string

* Apply suggestions from code review

Co-authored-by: Calum Murray <cmurray@redhat.com>

---------

Co-authored-by: Calum Murray <cmurray@redhat.com>

* 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 <cmurray@redhat.com>

* 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 <cmurray@redhat.com>
Signed-off-by: Leo Li <leoli@redhat.com>
Co-authored-by: Calum Murray <cmurray@redhat.com>
Co-authored-by: Leo Li <leoli@redhat.com>
Co-authored-by: Christoph Stäbler <cstabler@redhat.com>
Co-authored-by: Matthias Wessendorf <mwessend@redhat.com>
Co-authored-by: Iqbal H <52209787+Iiqbal2000@users.noreply.github.com>
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/S Denotes a PR that changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add rekt test for broker event type autocreate

3 participants