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

test(integration): add failing case for rules with no distributions #3078

Merged
merged 6 commits into from
May 13, 2024

Conversation

GeorgeMac
Copy link
Contributor

@GeorgeMac GeorgeMac commented May 13, 2024

Fixes #3076

See failing test case:

    readonly_test.go:553: 
        	Error Trace:	/src/build/testing/integration/readonly/readonly_test.go:553
        	Error:      	Received unexpected error:
        	            	rpc error: code = NotFound desc = rule "12c38328-8077-4629-ade9-a4831db41279" not found
        	Test:       	TestReadOnly/[Protocol_"grpc";_Namespace_"default";_Authentication_K8sAuth]/Evaluation/Variant/match_no_distributions

This fixes GetEvaluationDistributions to retun an empty set, instead of rule not found when a rule is defined with no distirbutions.

Signed-off-by: George MacRorie <me@georgemac.com>
Signed-off-by: George MacRorie <me@georgemac.com>
Signed-off-by: George MacRorie <me@georgemac.com>
@GeorgeMac GeorgeMac force-pushed the gm/fix-snapshot-rule-not-found branch from 516f570 to 1160345 Compare May 13, 2024 20:06
@GeorgeMac GeorgeMac marked this pull request as ready for review May 13, 2024 20:06
@GeorgeMac GeorgeMac requested a review from a team as a code owner May 13, 2024 20:06
Signed-off-by: George MacRorie <me@georgemac.com>
Signed-off-by: George MacRorie <me@georgemac.com>
Copy link
Collaborator

@markphelps markphelps left a comment

Choose a reason for hiding this comment

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

Nice! Will cherry pick into a bug fix branch as I don't think we are quite ready for a release of main just yet

@markphelps markphelps merged commit 45707f5 into main May 13, 2024
28 of 29 checks passed
@markphelps markphelps deleted the gm/fix-snapshot-rule-not-found branch May 13, 2024 21:06
markphelps pushed a commit that referenced this pull request May 13, 2024
…3078)

* test(integration): add failing case for rules with no distributions

Signed-off-by: George MacRorie <me@georgemac.com>

* test(storage/fs): add failing case around no rule distributions

Signed-off-by: George MacRorie <me@georgemac.com>

* fix(storage/fs): return empty slice instead of rule not found

Signed-off-by: George MacRorie <me@georgemac.com>

* fix(testing/integration): update assertion to account for new flag cases

Signed-off-by: George MacRorie <me@georgemac.com>

* fix(testing/integration): update assertion to account for new flag cases

Signed-off-by: George MacRorie <me@georgemac.com>

---------

Signed-off-by: George MacRorie <me@georgemac.com>
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.

[Bug]: Rules aren't being linked correctly when importing features from a config file
2 participants