Skip to content

Add filterEventByAttributes tests#3647

Closed
pierDipi wants to merge 1 commit into
knative:masterfrom
pierDipi:filter-tests
Closed

Add filterEventByAttributes tests#3647
pierDipi wants to merge 1 commit into
knative:masterfrom
pierDipi:filter-tests

Conversation

@pierDipi
Copy link
Copy Markdown
Member

Proposed Changes

  • Add filterEventByAttributes tests

Signed-off-by: Pierangelo Di Pilato <pierangelodipilato@gmail.com>
@googlebot googlebot added the cla: yes Indicates the PR's author has signed the CLA. label Jul 20, 2020
@knative-prow-robot knative-prow-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Jul 20, 2020
@knative-prow-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: pierDipi
To complete the pull request process, please assign n3wscott
You can assign the PR to them by writing /assign @n3wscott in a comment when ready.

The full list of commands accepted by this bot can be found 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
Copy link
Copy Markdown
Contributor

@pierDipi: The following test failed, say /retest to rerun all failed tests:

Test name Commit Details Rerun command
pull-knative-eventing-unit-tests da41123 link /test pull-knative-eventing-unit-tests

Full PR test history. Your PR dashboard.

Details

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. I understand the commands that are listed here.

@pierDipi pierDipi marked this pull request as draft July 20, 2020 11:29
@knative-prow-robot knative-prow-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jul 20, 2020
@knative-metrics-robot
Copy link
Copy Markdown

The following is the coverage report on the affected files.
Say /test pull-knative-eventing-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/mtbroker/filter/filter_handler.go 86.6% 88.1% 1.5

@pierDipi
Copy link
Copy Markdown
Member Author

Is having different behaviors for known and unknown (extensions) attributes correct?

@pierDipi
Copy link
Copy Markdown
Member Author

/cc @vaikas @lionelvillard @n3wscott

@pierDipi
Copy link
Copy Markdown
Member Author

pierDipi commented Sep 3, 2020

Ping.

Comment thread pkg/mtbroker/filter/filter_handler_test.go
Comment thread pkg/mtbroker/filter/filter_handler_test.go
@pierDipi
Copy link
Copy Markdown
Member Author

pierDipi commented Sep 3, 2020

I would like to have an answer to this question before:

Is having different behaviors for known and unknown (extensions) attributes when an empty string is specified correct?

@pierDipi
Copy link
Copy Markdown
Member Author

pierDipi commented Sep 3, 2020

These tests don't pass, so:

  • is it a bug? or
  • do we need to clarify the spec?

@slinkydeveloper
Copy link
Copy Markdown
Contributor

Is having different behaviors for known and unknown (extensions) attributes when an empty string is specified correct?

Can you clarify?

@slinkydeveloper
Copy link
Copy Markdown
Contributor

slinkydeveloper commented Sep 3, 2020

Ah i see, what happens when the extension doesn't exist at all in the event but there is a specific filter with an empty string, like extname1: "", am i right? in this case, i suppose the event should pass

@pierDipi
Copy link
Copy Markdown
Member Author

pierDipi commented Sep 3, 2020

Yes, you're right.

So, if I insert an extension that doesn't exist in the event, should the event pass?

  • If yes, it's a bug
  • if no, should we apply the same semantic to known and optional attributes like subject?
    • if yes, they both shouldn't pass, so it's a bug.
    • if no, we need to clarify this in the spec.

@slinkydeveloper
Copy link
Copy Markdown
Contributor

slinkydeveloper commented Sep 3, 2020

@pierDipi Can you bring this issue to the next week eventing delivery WG? At least add it to the calendar, if you can't be there, i can take care of it

@pierDipi
Copy link
Copy Markdown
Member Author

pierDipi commented Sep 3, 2020

Sure

@knative-prow-robot knative-prow-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Nov 7, 2020
@knative-prow-robot
Copy link
Copy Markdown
Contributor

@pierDipi: PR needs rebase.

Details

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.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Feb 6, 2021

This Pull Request is stale because it has been open for 90 days with
no activity. It will automatically close after 30 more days of
inactivity. Reopen with /reopen. Mark as fresh by adding the
comment /remove-lifecycle stale.

@github-actions github-actions Bot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Feb 6, 2021
@pierDipi
Copy link
Copy Markdown
Member Author

pierDipi commented Feb 8, 2021

Issue: #4847
/close

@knative-prow-robot
Copy link
Copy Markdown
Contributor

@pierDipi: Closed this PR.

Details

In response to this:

Issue: #4847
/close

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.

@pierDipi pierDipi deleted the filter-tests branch February 8, 2021 11:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes Indicates the PR's author has signed the CLA. do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants