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

Add logical operations on Patterns and Named patterns + new test #294

Merged
merged 3 commits into from
Dec 14, 2023

Conversation

azgabur
Copy link
Contributor

@azgabur azgabur commented Nov 24, 2023

This PR:

  • Renames Rule to Pattern to better reflect the real use.
  • Adds new dataclasses AnyPatterns and AllPatterns which serve as logical operators OR and AND for Patterns.
  • Adds new function to AuthConfig/Policy add_patterns() which adds named patterns that can be referenced with PatternRef.
  • Add new test testing the logical operators functionality.

This PR is prerequisite before starting to work on issue #234

testsuite/objects/__init__.py Outdated Show resolved Hide resolved
testsuite/objects/__init__.py Outdated Show resolved Hide resolved
testsuite/objects/__init__.py Outdated Show resolved Hide resolved
testsuite/objects/__init__.py Outdated Show resolved Hide resolved
@azgabur azgabur force-pushed the patterns branch 2 times, most recently from 7d5229a to edb9536 Compare November 27, 2023 14:32
Copy link
Contributor

@averevki averevki left a comment

Choose a reason for hiding this comment

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

Few regression comments. LGTM otherwise!

@azgabur
Copy link
Contributor Author

azgabur commented Dec 11, 2023

^ rebased solving merge conflict

@pehala pehala merged commit b23ef2b into Kuadrant:main Dec 14, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants