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

Fix: Update schemas for Terraform Backwards Compatibility #154

Merged
merged 6 commits into from
Jan 24, 2025

Conversation

tyao117
Copy link
Collaborator

@tyao117 tyao117 commented Dec 20, 2024

  • Made the field ControlSpecificationDescription to Description
  • Changed Patch for ControlLibrary to use Control rather than ControlPrototype
  • Changed Attributes from map[string]string to map[string]interface

PR summary

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

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

@tyao117 tyao117 changed the title Updates From Terraform Fix: Update schema for Terraform Backwards Compatibility Jan 14, 2025
@tyao117 tyao117 changed the title Fix: Update schema for Terraform Backwards Compatibility Fix: Update schemas for Terraform Backwards Compatibility Jan 14, 2025
@tyao117 tyao117 marked this pull request as ready for review January 15, 2025 17:07
@tyao117
Copy link
Collaborator Author

tyao117 commented Jan 23, 2025

integrations tests passing:

 scc-go-sdk/v5/securityandcompliancecenterapiv3 ➜ go test -v -tags=integration                                                                                               on  controls_update [?] via 🐹 v1.22.4 at 11:12:13 AM
=== RUN   TestSecurityAndComplianceCenterV3
Running Suite: SecurityAndComplianceCenterV3 Suite
==================================================
Random Seed: 1736961140
Will run 519 of 519 specs

•••••
------------------------------
• [SLOW TEST:5.055 seconds]
SecurityAndComplianceCenterV3 Integration Tests
/Users/timothyyao/workspace/public-github/IBM/scc-go-sdk/v5/securityandcompliancecenterapiv3/security_and_compliance_center_v3_integration_test.go:42
  CreateCustomControlLibrary - Create a custom control library
  /Users/timothyyao/workspace/public-github/IBM/scc-go-sdk/v5/securityandcompliancecenterapiv3/security_and_compliance_center_v3_integration_test.go:265
    CreateCustomControlLibrary(createCustomControlLibraryOptions *CreateCustomControlLibraryOptions)
    /Users/timothyyao/workspace/public-github/IBM/scc-go-sdk/v5/securityandcompliancecenterapiv3/security_and_compliance_center_v3_integration_test.go:269
------------------------------
••••••••••••••••
------------------------------
• [SLOW TEST:5.563 seconds]
SecurityAndComplianceCenterV3 Integration Tests
/Users/timothyyao/workspace/public-github/IBM/scc-go-sdk/v5/securityandcompliancecenterapiv3/security_and_compliance_center_v3_integration_test.go:42
  ReplaceCustomControlLibrary - Update a custom control library
  /Users/timothyyao/workspace/public-github/IBM/scc-go-sdk/v5/securityandcompliancecenterapiv3/security_and_compliance_center_v3_integration_test.go:997
    ReplaceCustomControlLibrary(replaceCustomControlLibraryOptions *ReplaceCustomControlLibraryOptions)
    /Users/timothyyao/workspace/public-github/IBM/scc-go-sdk/v5/securityandcompliancecenterapiv3/security_and_compliance_center_v3_integration_test.go:1001
------------------------------
••
------------------------------
• [SLOW TEST:5.326 seconds]
SecurityAndComplianceCenterV3 Integration Tests
/Users/timothyyao/workspace/public-github/IBM/scc-go-sdk/v5/securityandcompliancecenterapiv3/security_and_compliance_center_v3_integration_test.go:42
  ListProfiles - Get all profiles
  /Users/timothyyao/workspace/public-github/IBM/scc-go-sdk/v5/securityandcompliancecenterapiv3/security_and_compliance_center_v3_integration_test.go:1063
    ListProfiles(listProfilesOptions *ListProfileOptions) using ProfilesPager
    /Users/timothyyao/workspace/public-github/IBM/scc-go-sdk/v5/securityandcompliancecenterapiv3/security_and_compliance_center_v3_integration_test.go:1078
------------------------------
•••••
•••••••
------------------------------
• [SLOW TEST:11.451 seconds]
SecurityAndComplianceCenterV3 Integration Tests
/Users/timothyyao/workspace/public-github/IBM/scc-go-sdk/v5/securityandcompliancecenterapiv3/security_and_compliance_center_v3_integration_test.go:42
  CreateTarget - Create a target
  /Users/timothyyao/workspace/public-github/IBM/scc-go-sdk/v5/securityandcompliancecenterapiv3/security_and_compliance_center_v3_integration_test.go:1446
    CreateTarget(createTargetOptions *CreateTargetOptions)
    /Users/timothyyao/workspace/public-github/IBM/scc-go-sdk/v5/securityandcompliancecenterapiv3/security_and_compliance_center_v3_integration_test.go:1450
------------------------------
••
------------------------------
• [SLOW TEST:6.685 seconds]
SecurityAndComplianceCenterV3 Integration Tests
/Users/xxxxxxxxxx/workspace/public-github/IBM/scc-go-sdk/v5/securityandcompliancecenterapiv3/security_and_compliance_center_v3_integration_test.go:42
  ReplaceTarget - replace a target by ID
  /Users/timothyyao/workspace/public-github/IBM/scc-go-sdk/v5/securityandcompliancecenterapiv3/security_and_compliance_center_v3_integration_test.go:1531
    ReplaceTarget(replaceTargetOptions *ReplaceTargetOptions)
    /Users/timothyyao/workspace/public-github/IBM/scc-go-sdk/v5/securityandcompliancecenterapiv3/security_and_compliance_center_v3_integration_test.go:1535
------------------------------
••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
Ran 519 of 519 Specs in 126.331 seconds
SUCCESS! -- 519 Passed | 0 Failed | 0 Pending | 0 Skipped
--- PASS: TestSecurityAndComplianceCenterV3 (126.46s)
PASS
ok      github.com/IBM/scc-go-sdk/v5/securityandcompliancecenterapiv3   126.759s

@ltebben
Copy link

ltebben commented Jan 23, 2025

If Control and ControlPrototype are the same can we get rid of one please?

tyao117 and others added 6 commits January 24, 2025 11:20
- Made the field ControlSpecificationDescription to Description
- Changed Patch for ControlLibrary to use Control rather than
  ControlPrototype
- Changed Attributes from map[string]string to map[string]interface

Signed-off-by: Timothy-Yao <[email protected]>
Signed-off-by: Timothy-Yao <[email protected]>
Signed-off-by: Timothy-Yao <[email protected]>
## [5.5.1](v5.5.0...v5.5.1) (2024-12-18)

### Bug Fixes

* added missing objects from Minor Update ([#153](#153)) ([ad36577](ad36577))

Signed-off-by: Timothy-Yao <[email protected]>
@tyao117 tyao117 merged commit 8fb9904 into main Jan 24, 2025
5 checks passed
@tyao117 tyao117 deleted the controls_update branch January 24, 2025 17:38
tyao117 added a commit that referenced this pull request Jan 24, 2025
- **Breaking Change**: Took out ControlPrototype/ControlSpecificationPrototype/AssessmentPrototype
- Made the field ControlSpecificationDescription to Description
- Changed Patch for ControlLibrary to use Control rather than
  ControlPrototype
- Changed Attributes from map[string]string to map[string]interface
- Added functions and fields missing found from the terraform-provider-ibm
- Added missing objects from Minor Update ([#153](#153)) ([ad36577](ad36577))

---------

Signed-off-by: Timothy-Yao <[email protected]>
Co-authored-by: sccdeveloper <[email protected]>
sccibm pushed a commit that referenced this pull request Jan 24, 2025
## [5.5.2](v5.5.1...v5.5.2) (2025-01-24)

### Bug Fixes

* Update schemas for Terraform Backwards Compatibility ([#154](#154)) ([b642125](b642125)), closes [#153](#153)
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