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

EventType tests verify the type under spec.reference #7888

Merged
merged 5 commits into from
May 6, 2024

Conversation

ctmphuongg
Copy link
Contributor

Fixes #7629

Proposed Changes

Add check for EventType Reference in tests

@knative-prow knative-prow bot added needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels May 3, 2024
Copy link

knative-prow bot commented May 3, 2024

Hi @ctmphuongg. Thanks for your PR.

I'm waiting for a knative member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@knative-prow knative-prow bot added the area/test-and-release Test infrastructure, tests or release label May 3, 2024
@knative-prow knative-prow bot requested review from evankanderson and mgencur May 3, 2024 00:30
@ctmphuongg
Copy link
Contributor Author

/cc @Cali0707

@knative-prow knative-prow bot requested a review from Cali0707 May 3, 2024 00:31
Copy link

codecov bot commented May 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 69.18%. Comparing base (7e1c082) to head (acff4e8).
Report is 27 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7888      +/-   ##
==========================================
- Coverage   69.22%   69.18%   -0.04%     
==========================================
  Files         339      341       +2     
  Lines       19494    15816    -3678     
==========================================
- Hits        13494    10943    -2551     
+ Misses       5337     4200    -1137     
- Partials      663      673      +10     

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

Copy link
Member

@Cali0707 Cali0707 left a comment

Choose a reason for hiding this comment

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

Hey @ctmphuongg this looks good to me, just one small request: can you run goimports on the files you changed to fix the formatting error?

@ctmphuongg
Copy link
Contributor Author

@Cali0707 I just fixed the format.

@Cali0707
Copy link
Member

Cali0707 commented May 3, 2024

/ok-to-test

@knative-prow knative-prow bot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels May 3, 2024
Copy link
Member

@Cali0707 Cali0707 left a comment

Choose a reason for hiding this comment

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

Just one small change (that should fix the tests) and then this should be good to go @ctmphuongg ! Thanks for working on this!

test/rekt/features/apiserversource/data_plane.go Outdated Show resolved Hide resolved
Copy link
Member

@Cali0707 Cali0707 left a comment

Choose a reason for hiding this comment

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

/lgtm

Thanks @ctmphuongg !

@knative-prow knative-prow bot added the lgtm Indicates that a PR is ready to be merged. label May 6, 2024
Copy link

knative-prow bot commented May 6, 2024

[APPROVALNOTIFIER] This PR is APPROVED

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

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 May 6, 2024
@knative-prow knative-prow bot merged commit c3a1c19 into knative:main May 6, 2024
33 of 39 checks passed
mgencur pushed a commit to mgencur/eventing that referenced this pull request Aug 20, 2024
* test ref

* test for reference

* format

* Update test/rekt/features/apiserversource/data_plane.go

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

* fix syntax

---------

Co-authored-by: Calum Murray <[email protected]>
openshift-merge-bot bot pushed a commit to openshift-knative/eventing that referenced this pull request Aug 27, 2024
…775)

* test ref

* test for reference

* format

* Update test/rekt/features/apiserversource/data_plane.go



* fix syntax

---------

Co-authored-by: Phuong Cao <[email protected]>
Co-authored-by: Calum Murray <[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. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. 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.

EventType tests should verify the type under spec.reference
2 participants