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: HOT FIX to include properties from issue 5579 #5818

Merged
merged 2 commits into from
Nov 26, 2024

Conversation

tyao117
Copy link
Contributor

@tyao117 tyao117 commented Nov 25, 2024

  • include the following properties to scc_instance_settings:
    • source_description
    • source_name

Community Note

  • Please vote on this pull request by adding a 👍 reaction to the original pull request comment to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for pull request followers and do not help prioritize the request

Relates OR Closes #0000
#5817
#5579

Output from acceptance testing:

$ make testacc TEST=./ibm/service/scc  TESTARGS="-run TestAccIbmSccInstance*"
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./ibm/service/scc -v -run TestAccIbmSccInstance* -timeout 700m
...
=== RUN   TestAccIbmSccInstanceSettingsDataSourceBasic
--- PASS: TestAccIbmSccInstanceSettingsDataSourceBasic (14.45s)
=== RUN   TestAccIbmSccInstanceSettingsBasic
--- PASS: TestAccIbmSccInstanceSettingsBasic (15.98s)
=== RUN   TestAccIbmSccInstanceSettingsAllArgs
--- PASS: TestAccIbmSccInstanceSettingsAllArgs (32.19s)
PASS
ok      github.com/IBM-Cloud/terraform-provider-ibm/ibm/service/scc     63.066s

- include the following properties to scc_instance_settings:
  - source_description
  - source_name
@hkantare hkantare merged commit 24b848b into IBM-Cloud:master Nov 26, 2024
1 check passed
hkantare pushed a commit that referenced this pull request Nov 26, 2024
* fix: hot fix to include properties from 5579

- include the following properties to scc_instance_settings:
  - source_description
  - source_name

* added some validation updates
"source_name": &schema.Schema{
Type: schema.TypeString,
Optional: true,
Description: "The name of the Event Notifications source connected Security and Compliance Center instance CRN.",
Copy link
Contributor

Choose a reason for hiding this comment

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

Although its marked as optional, this should probably say its required if a value is passed for instance_crn. Otherwise you get this:

│ Error: event_notifications.source_name needs to be defined along with event_notifications.instance_crn
│ 
│   with module.create_scc_instance.ibm_scc_instance_settings.scc_instance_settings[0],
│   on ../../main.tf line 89, in resource "ibm_scc_instance_settings" "scc_instance_settings":
│   89: resource "ibm_scc_instance_settings" "scc_instance_settings" {

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