SAP / terraform-provider-btp

Terraform provider for SAP BTP
https://registry.terraform.io/providers/SAP/btp/latest
Apache License 2.0
89 stars 18 forks source link

feat: add iframe parameter to security settings #907

Closed lechnerc77 closed 1 month ago

lechnerc77 commented 2 months ago

Purpose

Does this introduce a breaking change?

[ ] Yes
[X] No

Pull Request Type

What kind of change does this Pull Request introduce?

[ ] Bugfix
[X] Feature
[ ] Refactoring (no functional changes, no api changes)
[ ] Documentation content changes
[ ] Other... Please describe:

How to Test

go test ./...

What to Check

Verify that the following are valid:

Other Information

Due to the make fmt some files have been formated that are not subject to the change

Checklist for reviewer

The following organizational tasks must be completed before merging this PR:

lechnerc77 commented 2 months ago

Drift detection error is okay, as the test fixtures for the resources and data sources had to be re-recorded

diya-dhan commented 2 months ago

In the files examples/resources/btp_globalaccount_security_settings/resource.tf and examples/resources/btp_subaccount_security_settings/resource.tf, the attribute iframe_domains is a shown as a list although the attribute is a string as per the schema.

image image
diya-dhan commented 2 months ago

In the file internal/provider/datasource_globalaccount_security_settings.go and internal/provider/datasource_globalaccount_security_settings_test.go, the attribute iframe_domains is configured as Optional as well as Computed. This is being reflected in the documentation as well.

lechnerc77 commented 1 month ago

In the files examples/resources/btp_globalaccount_security_settings/resource.tf and examples/resources/btp_subaccount_security_settings/resource.tf, the attribute iframe_domains is a shown as a list although the attribute is a string as per the schema.

image image

Resolved

lechnerc77 commented 1 month ago

In the file internal/provider/datasource_globalaccount_security_settings.go and internal/provider/datasource_globalaccount_security_settings_test.go, the attribute iframe_domains is configured as Optional as well as Computed. This is being reflected in the documentation as well.

Fixed

diya-dhan commented 1 month ago

Drift detection can be ignored as fixtures were re-recorded

diya-dhan commented 1 month ago

Tested out changes, everything works fine