-
Notifications
You must be signed in to change notification settings - Fork 61
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 list rule with service_group_id test #208
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few comments.
Expect(rule).ToNot(BeNil()) | ||
|
||
//list rule with service_group_id | ||
It(`ListRules(listRulesOptions *ListRulesOptions) with service_group_id (201)`, func() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Listing rules should result in a 200
|
||
Expect(err).To(Not(BeNil())) | ||
Expect(response.StatusCode).To(Equal(201)) | ||
Expect(ruleList).To(BeNil()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would expect the tests to assert that 1 rule was returned in the list and that it has the rule ID of the rule created above.
ruleList, response, err := contextBasedRestrictionsService.ListRules(listRulesOptions) | ||
|
||
Expect(err).To(Not(BeNil())) | ||
Expect(response.StatusCode).To(Equal(201)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be a 200
Signed-off-by: Cameron Davis <[email protected]>
Signed-off-by: Cameron Davis <[email protected]>
Signed-off-by: Cameron Davis <[email protected]>
18d993f
to
6ff9d10
Compare
Signed-off-by: Cameron Davis <[email protected]>
Signed-off-by: Cameron Davis <[email protected]>
Signed-off-by: Cameron Davis <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
## [0.28.6](v0.28.5...v0.28.6) (2022-10-14) ### Bug Fixes * **Context Based Restrictions:** add list rule with service_group_id test ([#208](#208)) ([e3b7581](e3b7581))
🎉 This PR is included in version 0.28.6 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
PR summary
This PR adds CBR support for the new service_group_id parameter in rules.
PR Checklist
Please make sure that your PR fulfills the following requirements:
Current vs new behavior
No current behavior should be modified. Adds the further control to be able to apply rules to service groups
Does this PR introduce a breaking change?
Other information