Skip to content

Commit 1f08527

Browse files
Merge pull request #1387 from terraform-providers/release_gh
Releasing version 4.29.0
2 parents ac021a6 + 4077acc commit 1f08527

File tree

125 files changed

+2839
-217
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

125 files changed

+2839
-217
lines changed

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
## 4.29.0 (Unreleased)
2+
3+
### Added
4+
- Support create an endpoint for listing fully hydrated NSGs attached to a given VLAN
5+
- Support ADBS: Customer Managed Keys (Integration Key Management System)
6+
- Support for Operations Insights External Databases added
7+
- Support for Custom Images in Databases resource
8+
9+
### Fixed
10+
- Doc update for `export_set` resource in `file_storage`
11+
- Fixed skewed doc rendering for `analytics` resources
12+
- Fixed functions to send `traceConfig` only when updated in update request
13+
- Doc update for `oci_core_ipsec_connection_tunnel_management` examples
14+
115
## 4.28.0 (May 26, 2021)
216

317
### Added

examples/database/external_databases/external_container_database.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,13 @@ resource "oci_database_external_container_database_management" "test_enable_exte
4949

5050
// Disable Database Management
5151

52-
resource "oci_database_external_container_database_management" "test_disable_external_container_database_management" {
52+
/*resource "oci_database_external_container_database_management" "test_disable_external_container_database_management" {
5353
depends_on = [oci_database_external_container_database_management.test_enable_external_container_database_management,
5454
oci_database_external_pluggable_database_management.test_disable_external_pluggable_database_management]
5555
external_container_database_id = oci_database_external_container_database.test_external_container_database.id
5656
external_database_connector_id = oci_database_external_database_connector.test_external_container_database_connector.id
5757
enable_management = false
58-
}
58+
}*/
5959

6060
data "oci_database_external_container_database" "test_external_container_database" {
6161
#Required

examples/database/external_databases/external_non_container_database.tf

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,22 @@ resource "oci_database_external_non_container_database_management" "test_enable_
4747
enable_management = true
4848
}
4949

50-
//Disable Database Management
50+
// Enable Operations Insights
51+
resource "oci_database_external_non_container_database_operations_insights_management" "test_enable_external_non_container_database_operations_insights_management" {
52+
external_non_container_database_id = oci_database_external_non_container_database.test_external_non_container_database.id
53+
external_database_connector_id = oci_database_external_database_connector.test_external_non_container_database_connector.id
54+
enable_operations_insights = true
55+
}
5156

52-
resource "oci_database_external_non_container_database_management" "test_disable_external_non_container_database_management" {
57+
//Commenting out this code block to unblock the failure in backward compatibility test
58+
//Disable Database Management
59+
/*resource "oci_database_external_non_container_database_management" "test_disable_external_non_container_database_management" {
5360
depends_on = [oci_database_external_non_container_database_management.test_enable_external_non_container_database_management]
5461
external_non_container_database_id = oci_database_external_non_container_database.test_external_non_container_database.id
5562
external_database_connector_id = oci_database_external_database_connector.test_external_non_container_database_connector.id
5663
enable_management = false
57-
}
64+
}*/
65+
5866

5967
data "oci_database_external_non_container_database" "test_external_non_container_database" {
6068
#Required

examples/database/external_databases/external_pluggable_database.tf

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,21 @@ resource "oci_database_external_pluggable_database_management" "test_enable_exte
4747
enable_management = true
4848
}
4949

50+
// Enable Operations Insights for the External Pluggable Databases
51+
resource "oci_database_external_pluggable_database_operations_insights_management" "test_enable_external_pluggable_database_operations_insights_management" {
52+
external_pluggable_database_id = oci_database_external_pluggable_database.test_external_pluggable_database.id
53+
external_database_connector_id = oci_database_external_database_connector.test_external_pluggable_database_connector.id
54+
enable_operations_insights = true
55+
}
56+
57+
//Commenting out this code block to unblock the failure in backward compatibility test
5058
// Disable Database Management for the External Pluggable Database
51-
resource "oci_database_external_pluggable_database_management" "test_disable_external_pluggable_database_management" {
59+
/*resource "oci_database_external_pluggable_database_management" "test_disable_external_pluggable_database_management" {
5260
depends_on = [oci_database_external_pluggable_database_management.test_enable_external_pluggable_database_management]
5361
external_pluggable_database_id = oci_database_external_pluggable_database.test_external_pluggable_database.id
5462
external_database_connector_id = oci_database_external_database_connector.test_external_pluggable_database_connector.id
5563
enable_management = false
56-
}
64+
}*/
5765

5866
data "oci_database_external_pluggable_database" "test_external_pluggable_database" {
5967
#Required

examples/database/external_databases/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ variable "service" {
7373
}
7474

7575
variable "connector_agent_id" {
76-
default = "testConnectorId"
76+
default = "ocid1.managementagent.oc1.phx.amaaaaaajobtc3iaes4ijczgekzqigoji25xocsny7yundummydummydummy"
7777
}
7878

7979
variable "external_database_connector_display_name" {

examples/networking/network_security_group/data_sources.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ data "oci_core_network_security_groups" "test_network_security_groups" {
1616
vcn_id = oci_core_vcn.test_vcn.id
1717
}
1818

19+
data "oci_core_network_security_groups" "test_network_security_groups_vlan" {
20+
#Required
21+
vlan_id = oci_core_vlan.test_vlan.id
22+
}
23+
1924
data "oci_core_network_security_group_security_rules" "test_network_security_group_security_rules" {
2025
#Required
2126
network_security_group_id = oci_core_network_security_group.test_network_security_group.id

examples/networking/network_security_group/network_security_group.tf

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ resource "oci_core_network_security_group" "test_network_security_group" {
6262
resource "oci_core_network_security_group_security_rule" "test_network_security_group_security_rule_1" {
6363
network_security_group_id = oci_core_network_security_group.test_network_security_group.id
6464
direction = "EGRESS"
65-
destination = "0.0.0.0/16"
65+
destination = "10.0.0.0/16"
6666
protocol = "7"
6767
count = 5
6868
}
@@ -99,7 +99,7 @@ resource "oci_core_network_security_group_security_rule" "test_network_security_
9999
network_security_group_id = oci_core_network_security_group.test_network_security_group.id
100100
protocol = 1
101101
direction = "INGRESS"
102-
source = "0.0.0.0/16"
102+
source = "10.0.0.0/16"
103103
stateless = true
104104

105105
icmp_options {
@@ -158,3 +158,15 @@ resource "oci_core_subnet" "subnet1" {
158158
}
159159
}
160160

161+
resource "oci_core_vlan" "test_vlan" {
162+
#Required
163+
cidr_block = "10.0.2.0/24"
164+
compartment_id = var.compartment_ocid
165+
vcn_id = oci_core_vcn.test_vcn.id
166+
167+
#Optional
168+
display_name = "testVlan"
169+
availability_domain = data.oci_identity_availability_domain.ad.name
170+
nsg_ids = [oci_core_network_security_group.test_network_security_group.id]
171+
}
172+

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ require (
66
github.com/hashicorp/hcl2 v0.0.0-20190618163856-0b64543c968c
77
github.com/hashicorp/terraform-exec v0.6.0
88
github.com/hashicorp/terraform-plugin-sdk v1.15.0
9-
github.com/oracle/oci-go-sdk/v41 v41.0.0
9+
github.com/oracle/oci-go-sdk/v41 v41.1.0
1010
github.com/stretchr/objx v0.1.1 // indirect
1111
github.com/stretchr/testify v1.6.1
1212
golang.org/x/mod v0.3.0

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,8 +200,8 @@ github.com/oklog/run v1.0.0/go.mod h1:dlhp/R75TPv97u0XWUtDeV/lRKWPKSdTuV0TZvrmrQ
200200
github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=
201201
github.com/onsi/ginkgo v1.7.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=
202202
github.com/onsi/gomega v1.4.3/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY=
203-
github.com/oracle/oci-go-sdk/v41 v41.0.0 h1:u7xxFgppywoItYiz5vhedQ1pLlaIAE9OZE8a3pCMJww=
204-
github.com/oracle/oci-go-sdk/v41 v41.0.0/go.mod h1:qQ7bDSctU2k0g4TmFSq1OgwpUHuaAeZrsePuipbTlHM=
203+
github.com/oracle/oci-go-sdk/v41 v41.1.0 h1:6q2+Ld1CYs3Amh9JKmG+DOvEDddDA6OTo0Z/Q8fmN7M=
204+
github.com/oracle/oci-go-sdk/v41 v41.1.0/go.mod h1:qQ7bDSctU2k0g4TmFSq1OgwpUHuaAeZrsePuipbTlHM=
205205
github.com/pierrec/lz4 v2.0.5+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY=
206206
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
207207
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=

oci/cloud_guard_data_mask_rule_test.go

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ var (
3131
}
3232

3333
dataMaskRuleDataSourceRepresentation = map[string]interface{}{
34-
"compartment_id": Representation{repType: Required, create: `${var.compartment_id}`},
34+
"compartment_id": Representation{repType: Required, create: `${var.tenancy_ocid}`},
3535
"access_level": Representation{repType: Optional, create: `ACCESSIBLE`},
3636
"data_mask_rule_status": Representation{repType: Optional, create: `ENABLED`, update: `DISABLED`},
3737
"display_name": Representation{repType: Optional, create: `displayName`, update: `displayName2`},
@@ -46,7 +46,7 @@ var (
4646
}
4747

4848
dataMaskRuleRepresentation = map[string]interface{}{
49-
"compartment_id": Representation{repType: Required, create: `${var.compartment_id}`},
49+
"compartment_id": Representation{repType: Required, create: `${var.tenancy_ocid}`},
5050
"data_mask_categories": Representation{repType: Required, create: []string{`PII`}, update: []string{`PHI`}},
5151
"display_name": Representation{repType: Required, create: `displayName`, update: `displayName2`},
5252
"iam_group_id": Representation{repType: Required, create: `${oci_identity_group.test_group.id}`},
@@ -76,6 +76,7 @@ func TestCloudGuardDataMaskRuleResource_basic(t *testing.T) {
7676

7777
compartmentId := getEnvSettingWithBlankDefault("compartment_ocid")
7878
compartmentIdVariableStr := fmt.Sprintf("variable \"compartment_id\" { default = \"%s\" }\n", compartmentId)
79+
tenancyId := getEnvSettingWithBlankDefault("tenancy_ocid")
7980

8081
resourceName := "oci_cloud_guard_data_mask_rule.test_data_mask_rule"
8182
datasourceName := "data.oci_cloud_guard_data_mask_rules.test_data_mask_rules"
@@ -98,7 +99,7 @@ func TestCloudGuardDataMaskRuleResource_basic(t *testing.T) {
9899
Config: config + compartmentIdVariableStr + DataMaskRuleResourceDependencies +
99100
generateResourceFromRepresentationMap("oci_cloud_guard_data_mask_rule", "test_data_mask_rule", Required, Create, dataMaskRuleRepresentation),
100101
Check: resource.ComposeAggregateTestCheckFunc(
101-
resource.TestCheckResourceAttr(resourceName, "compartment_id", compartmentId),
102+
resource.TestCheckResourceAttr(resourceName, "compartment_id", tenancyId),
102103
resource.TestCheckResourceAttr(resourceName, "data_mask_categories.#", "1"),
103104
resource.TestCheckResourceAttr(resourceName, "display_name", "displayName"),
104105
resource.TestCheckResourceAttrSet(resourceName, "iam_group_id"),
@@ -121,7 +122,7 @@ func TestCloudGuardDataMaskRuleResource_basic(t *testing.T) {
121122
Config: config + compartmentIdVariableStr + DataMaskRuleResourceDependencies +
122123
generateResourceFromRepresentationMap("oci_cloud_guard_data_mask_rule", "test_data_mask_rule", Optional, Create, dataMaskRuleRepresentation),
123124
Check: resource.ComposeAggregateTestCheckFunc(
124-
resource.TestCheckResourceAttr(resourceName, "compartment_id", compartmentId),
125+
resource.TestCheckResourceAttr(resourceName, "compartment_id", tenancyId),
125126
resource.TestCheckResourceAttr(resourceName, "data_mask_categories.#", "1"),
126127
resource.TestCheckResourceAttr(resourceName, "data_mask_rule_status", "ENABLED"),
127128
resource.TestCheckResourceAttr(resourceName, "defined_tags.%", "1"),
@@ -138,7 +139,7 @@ func TestCloudGuardDataMaskRuleResource_basic(t *testing.T) {
138139
func(s *terraform.State) (err error) {
139140
resId, err = fromInstanceState(s, resourceName, "id")
140141
if isEnableExportCompartment, _ := strconv.ParseBool(getEnvSettingWithDefault("enable_export_compartment", "true")); isEnableExportCompartment {
141-
if errExport := testExportCompartmentWithResourceName(&resId, &compartmentId, resourceName); errExport != nil {
142+
if errExport := testExportCompartmentWithResourceName(&resId, &tenancyId, resourceName); errExport != nil {
142143
return errExport
143144
}
144145
}
@@ -152,7 +153,7 @@ func TestCloudGuardDataMaskRuleResource_basic(t *testing.T) {
152153
Config: config + compartmentIdVariableStr + DataMaskRuleResourceDependencies +
153154
generateResourceFromRepresentationMap("oci_cloud_guard_data_mask_rule", "test_data_mask_rule", Optional, Update, dataMaskRuleRepresentation),
154155
Check: resource.ComposeAggregateTestCheckFunc(
155-
resource.TestCheckResourceAttr(resourceName, "compartment_id", compartmentId),
156+
resource.TestCheckResourceAttr(resourceName, "compartment_id", tenancyId),
156157
resource.TestCheckResourceAttr(resourceName, "data_mask_categories.#", "1"),
157158
resource.TestCheckResourceAttr(resourceName, "data_mask_rule_status", "DISABLED"),
158159
resource.TestCheckResourceAttr(resourceName, "defined_tags.%", "1"),
@@ -183,7 +184,7 @@ func TestCloudGuardDataMaskRuleResource_basic(t *testing.T) {
183184
generateResourceFromRepresentationMap("oci_cloud_guard_data_mask_rule", "test_data_mask_rule", Optional, Update, dataMaskRuleRepresentation),
184185
Check: resource.ComposeAggregateTestCheckFunc(
185186
resource.TestCheckResourceAttr(datasourceName, "access_level", "ACCESSIBLE"),
186-
resource.TestCheckResourceAttr(datasourceName, "compartment_id", compartmentId),
187+
resource.TestCheckResourceAttr(datasourceName, "compartment_id", tenancyId),
187188
resource.TestCheckResourceAttr(datasourceName, "data_mask_rule_status", "DISABLED"),
188189
resource.TestCheckResourceAttr(datasourceName, "display_name", "displayName2"),
189190
resource.TestCheckResourceAttrSet(datasourceName, "iam_group_id"),
@@ -201,7 +202,7 @@ func TestCloudGuardDataMaskRuleResource_basic(t *testing.T) {
201202
compartmentIdVariableStr + DataMaskRuleResourceConfig,
202203
Check: resource.ComposeAggregateTestCheckFunc(
203204
resource.TestCheckResourceAttrSet(singularDatasourceName, "data_mask_rule_id"),
204-
resource.TestCheckResourceAttr(singularDatasourceName, "compartment_id", compartmentId),
205+
resource.TestCheckResourceAttr(singularDatasourceName, "compartment_id", tenancyId),
205206
resource.TestCheckResourceAttr(singularDatasourceName, "data_mask_categories.#", "1"),
206207
resource.TestCheckResourceAttr(singularDatasourceName, "data_mask_rule_status", "DISABLED"),
207208
resource.TestCheckResourceAttr(singularDatasourceName, "defined_tags.%", "1"),

0 commit comments

Comments
 (0)