Skip to content

Conversation

@IBM-Deeksha
Copy link
Contributor

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

Output from acceptance testing:

$ make testacc TESTARGS='-run=TestAccXXX'

...

@IBM-Deeksha
Copy link
Contributor Author

Pasted Graphic 92 21 922s Pasted Graphic 94 Pasted Graphic 121 Pasted Graphic 95 Pasted Graphic 109 Pasted Graphic 110 Pasted Graphic 96 Pasted Graphic 119 Pasted Graphic 120 Pasted Graphic 97 Pasted Graphic 98 Pasted Graphic 99 Pasted Graphic 118 TestAccIbeBackupRecoveryBasic Pasted Graphic 106 Pasted Graphic 105 Pasted Graphic 101 Pasted Graphic 104 Pasted Graphic 102 PASS Pasted Graphic 115 20 259s Pasted Graphic 107 Pasted Graphic 108 PASS Pasted Graphic 111 Pasted Graphic 112 TestAccIbmBackupRecoverySearchProtectedObjectsDataSourceBasic Pasted Graphic 114

}

if _, ok := d.GetOk("backup_recovery_endpoint"); ok {
if d.Get("backup_recovery_endpoint").(string) != "" {
Copy link
Collaborator

Choose a reason for hiding this comment

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

We don't need if d.Get("backup_recovery_endpoint").(string) explict this check
if _, ok := d.GetOk("backup_recovery_endpoint"); ok it enter this block when you set "backup_recovery_endpoint" itself in config.

Copy link
Collaborator

Choose a reason for hiding this comment

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

if you don't want to allow backup_recovery_endpoint empty string may be add some validation to check n't empty

@@ -11292,6 +22217,7 @@ func dataSourceIbmBackupRecoveryProtectionSourcesRead(context context.Context, d
}
protectionSources = append(protectionSources, protectionSourcesItemMap)
}
fmt.Println("protectionSources....", protectionSources)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Remove all these fmt stmts

},
Description: "Specifies struct with basic user details.",
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
Copy link
Collaborator

Choose a reason for hiding this comment

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

why we have such big diff here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Apart from the endpoint URL addition, there are a few changes in the schema.
The BRS backend has introduced sub nodes under the original nodes object breaking the current data source.
We have respectively added the same number of sub-nodes in the schema.

@hkantare
Copy link
Collaborator

Add respective documentation changes

}

domain := "cloud.ibm.com"
serviceName := "backup-recovery"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you add check for IAM endpoint type to decide if required to point to "test.cloud.ibm.com" when internal user targets stage env

@IBM-Deeksha
Copy link
Contributor Author

TestAccIbeBackupRecoverySourceRegistrationBasic Pasted Graphic 128 21 922s Pasted Graphic 94 Pasted Graphic 126 Pasted Graphic 109 Pasted Graphic 110 Pasted Graphic 129 Pasted Graphic 119 Pasted Graphic 120 Pasted Graphic 130 Pasted Graphic 131 Pasted Graphic 99 Pasted Graphic 118 Pasted Graphic 132 Pasted Graphic 133 Pasted Graphic 105 Pasted Graphic 106 Pasted Graphic 104 Pasted Graphic 134 PASS Pasted Graphic 115 Pasted Graphic 115 20 259s Pasted Graphic 135 Pasted Graphic 108 PASS Pasted Graphic 111 Pasted Graphic 112 TestAccIbmBackupRecoverySearchProtectedObjectsDataSourceBasic Pasted Graphic 114

@hkantare hkantare merged commit d0f2f7f into IBM-Cloud:master Oct 21, 2025
1 check passed
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.

2 participants