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 list rule with service_group_id test #168

Merged
merged 4 commits into from
Oct 14, 2022

Conversation

cam-d12
Copy link
Contributor

@cam-d12 cam-d12 commented Oct 12, 2022

Signed-off-by: Cameron Davis [email protected]

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:

  • The commit message follows the Angular Commit Message Guidelines.
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

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?

  • Yes
  • No

Other information

@CLAassistant
Copy link

CLAassistant commented Oct 12, 2022

CLA assistant check
All committers have signed the CLA.

@@ -18,7 +18,8 @@

const { readExternalSources } = require('ibm-cloud-sdk-core');
const { v4: uuidv4 } = require('uuid');
const ContextBasedRestrictionsV1 = require('../../dist/context-based-restrictions/v1');
// const ContextBasedRestrictionsV1 = require('../../dist/context-based-restrictions/v1');
const ContextBasedRestrictionsV1 = require('@ibm-cloud/platform-services/context-based-restrictions/v1');
Copy link
Member

Choose a reason for hiding this comment

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

@cam-d12 did you make this change or the generator code? The dist folder should have the latest locally built code. If you need to help with how to build the code into the dist folder, try the readme or reach out and I can try to help.

ruleEtag = res.headers.etag;

//list rule with service_group_id attribute
const listParams = {
Copy link
Member

Choose a reason for hiding this comment

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

I would expect that we'd want to pass the serviceGroupId parameter to make sure filtering by the property is working as expected?

@padamstx padamstx self-assigned this Oct 13, 2022
@cam-d12 cam-d12 marked this pull request as ready for review October 13, 2022 19:54
Copy link
Member

@soohoowoohoo soohoowoohoo left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@padamstx padamstx left a comment

Choose a reason for hiding this comment

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

LGTM

@padamstx padamstx merged commit 8dbfe4b into IBM:main Oct 14, 2022
ibm-devx-sdk pushed a commit that referenced this pull request Oct 14, 2022
## [0.26.1](v0.26.0...v0.26.1) (2022-10-14)

### Bug Fixes

* **Context Based Restrictions:** add list rule with service_group_id test ([#168](#168)) ([8dbfe4b](8dbfe4b))
@ibm-devx-sdk
Copy link

🎉 This PR is included in version 0.26.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants