Skip to content

Commit 7c087ff

Browse files
authored
Merge pull request #2386 from oracle/release_gh
Releasing version 7.2.0
2 parents 248e33d + 3d2b7f5 commit 7c087ff

File tree

214 files changed

+797
-48
lines changed

Some content is hidden

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

214 files changed

+797
-48
lines changed

CHANGELOG.md

Lines changed: 32 additions & 0 deletions

examples/mysql/cross_region_backup/main.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ variable "compartment_ocid" {
3636
}
3737

3838
provider "oci" {
39+
# un-ignore to run backwards compatibility testing
40+
#version = "6.32.0"
3941
tenancy_ocid = var.tenancy_ocid
4042
user_ocid = var.user_ocid
4143
fingerprint = var.fingerprint

examples/mysql/main.tf

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ variable "compartment_ocid" {
2020
}
2121

2222
provider "oci" {
23+
# un-ignore to run backwards compatibility testing
24+
#version = "6.32.0"
2325
tenancy_ocid = var.tenancy_ocid
2426
user_ocid = var.user_ocid
2527
fingerprint = var.fingerprint
@@ -38,6 +40,11 @@ resource "oci_core_vcn" "test_vcn" {
3840
compartment_id = var.compartment_ocid
3941
}
4042

43+
resource "oci_core_network_security_group" "test_network_security_group" {
44+
compartment_id = var.compartment_ocid
45+
vcn_id = oci_core_vcn.test_vcn.id
46+
}
47+
4148
resource "oci_mysql_mysql_backup" "test_mysql_backup" {
4249
db_system_id = oci_mysql_mysql_db_system.test_mysql_backup_db_system.id
4350
}
@@ -111,6 +118,7 @@ resource "oci_mysql_mysql_db_system" "test_mysql_db_system" {
111118
window_start_time = "sun 01:00"
112119
}
113120

121+
nsg_ids = [oci_core_network_security_group.test_network_security_group.id]
114122
port = "3306"
115123
port_x = "33306"
116124

@@ -169,6 +177,16 @@ data "oci_identity_availability_domains" "test_availability_domains" {
169177
compartment_id = var.tenancy_ocid
170178
}
171179

180+
data "oci_mysql_mysql_db_system" "test_mysql_db_system" {
181+
#Required
182+
db_system_id = oci_mysql_mysql_db_system.test_mysql_backup_db_system.id
183+
}
184+
185+
data "oci_mysql_mysql_backup" "test_mysql_backup" {
186+
#Required
187+
backup_id = oci_mysql_mysql_backup.test_mysql_backup.id
188+
}
189+
172190
output "configuration_id" {
173191
value = data.oci_mysql_mysql_configurations.test_mysql_configurations.configurations[0].id
174192
}

examples/mysql/replica/main.tf

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,16 @@ variable "region" {
1919
variable "compartment_ocid" {
2020
}
2121

22+
provider "oci" {
23+
# un-ignore to run backwards compatibility testing
24+
#version = "6.32.0"
25+
tenancy_ocid = var.tenancy_ocid
26+
user_ocid = var.user_ocid
27+
fingerprint = var.fingerprint
28+
private_key_path = var.private_key_path
29+
region = var.region
30+
}
31+
2232
resource "oci_core_subnet" "test_subnet" {
2333
cidr_block = "10.0.0.0/24"
2434
compartment_id = var.compartment_ocid
@@ -30,6 +40,11 @@ resource "oci_core_vcn" "test_vcn" {
3040
compartment_id = var.compartment_ocid
3141
}
3242

43+
resource "oci_core_network_security_group" "test_network_security_group" {
44+
compartment_id = var.compartment_ocid
45+
vcn_id = oci_core_vcn.test_vcn.id
46+
}
47+
3348
resource "oci_mysql_mysql_db_system" "test_mysql_db_system" {
3449
#Required
3550
admin_password = "BEstrO0ng_#11"
@@ -98,7 +113,9 @@ resource "oci_mysql_replica" "test_replica" {
98113
is_delete_protected = false
99114
replica_overrides {
100115
configuration_id = data.oci_mysql_mysql_configurations.test_mysql_configurations.configurations[0].id
101-
mysql_version = "8.1.0"
116+
# TODO: fix unsupported version
117+
#mysql_version = "8.1.0"
118+
nsg_ids = [oci_core_network_security_group.test_network_security_group.id]
102119
shape_name = "MySQL.VM.Standard.E3.4.64GB"
103120
}
104121
}

examples/zips/adm.zip

0 Bytes
Binary file not shown.

examples/zips/aiAnomalyDetection.zip

0 Bytes
Binary file not shown.

examples/zips/aiDocument.zip

0 Bytes
Binary file not shown.

examples/zips/aiLanguage.zip

0 Bytes
Binary file not shown.

examples/zips/aiVision.zip

0 Bytes
Binary file not shown.

examples/zips/always_free.zip

0 Bytes
Binary file not shown.

examples/zips/analytics.zip

0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

examples/zips/api_gateway.zip

0 Bytes
Binary file not shown.

examples/zips/apm.zip

0 Bytes
Binary file not shown.

examples/zips/appmgmt_control.zip

0 Bytes
Binary file not shown.

examples/zips/artifacts.zip

0 Bytes
Binary file not shown.

examples/zips/audit.zip

0 Bytes
Binary file not shown.

examples/zips/autoscaling.zip

0 Bytes
Binary file not shown.

examples/zips/bastion.zip

0 Bytes
Binary file not shown.

examples/zips/big_data_service.zip

0 Bytes
Binary file not shown.

examples/zips/blockchain.zip

0 Bytes
Binary file not shown.

examples/zips/budget.zip

0 Bytes
Binary file not shown.

examples/zips/capacity_management.zip

0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

examples/zips/cloudBridge.zip

0 Bytes
Binary file not shown.

examples/zips/cloudMigrations.zip

0 Bytes
Binary file not shown.

examples/zips/cloudguard.zip

0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

examples/zips/compute.zip

0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

examples/zips/concepts.zip

0 Bytes
Binary file not shown.

examples/zips/container_engine.zip

0 Bytes
Binary file not shown.

examples/zips/container_instances.zip

0 Bytes
Binary file not shown.

examples/zips/database.zip

0 Bytes
Binary file not shown.

examples/zips/databaseTools.zip

0 Bytes
Binary file not shown.

examples/zips/databasemanagement.zip

0 Bytes
Binary file not shown.

examples/zips/databasemigration.zip

0 Bytes
Binary file not shown.

examples/zips/datacatalog.zip

0 Bytes
Binary file not shown.

examples/zips/dataflow.zip

0 Bytes
Binary file not shown.

examples/zips/dataintegration.zip

0 Bytes
Binary file not shown.

examples/zips/datalabeling.zip

0 Bytes
Binary file not shown.

examples/zips/datasafe.zip

0 Bytes
Binary file not shown.

examples/zips/datascience.zip

0 Bytes
Binary file not shown.

examples/zips/dblm.zip

0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

examples/zips/demand_signal.zip

0 Bytes
Binary file not shown.

examples/zips/desktops.zip

0 Bytes
Binary file not shown.

examples/zips/devops.zip

0 Bytes
Binary file not shown.

examples/zips/disaster_recovery.zip

0 Bytes
Binary file not shown.

examples/zips/dns.zip

0 Bytes
Binary file not shown.

examples/zips/em_warehouse.zip

0 Bytes
Binary file not shown.

examples/zips/email.zip

0 Bytes
Binary file not shown.

examples/zips/events.zip

0 Bytes
Binary file not shown.

examples/zips/fast_connect.zip

0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

examples/zips/fleetsoftwareupdate.zip

0 Bytes
Binary file not shown.

examples/zips/functions.zip

0 Bytes
Binary file not shown.

examples/zips/fusionapps.zip

0 Bytes
Binary file not shown.

examples/zips/generative_ai.zip

0 Bytes
Binary file not shown.

examples/zips/generative_ai_agent.zip

0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

examples/zips/goldengate.zip

0 Bytes
Binary file not shown.

examples/zips/health_checks.zip

0 Bytes
Binary file not shown.

examples/zips/id6.zip

0 Bytes
Binary file not shown.

examples/zips/identity.zip

0 Bytes
Binary file not shown.

examples/zips/identity_data_plane.zip

0 Bytes
Binary file not shown.

examples/zips/identity_domains.zip

0 Bytes
Binary file not shown.

examples/zips/integration.zip

0 Bytes
Binary file not shown.

examples/zips/jms.zip

0 Bytes
Binary file not shown.

examples/zips/jms_java_downloads.zip

0 Bytes
Binary file not shown.

examples/zips/kms.zip

0 Bytes
Binary file not shown.

examples/zips/license_manager.zip

0 Bytes
Binary file not shown.

examples/zips/limits.zip

0 Bytes
Binary file not shown.

examples/zips/load_balancer.zip

0 Bytes
Binary file not shown.

examples/zips/log_analytics.zip

0 Bytes
Binary file not shown.

examples/zips/logging.zip

0 Bytes
Binary file not shown.

examples/zips/lustre_file_storage.zip

0 Bytes
Binary file not shown.

examples/zips/management_agent.zip

0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

examples/zips/marketplace.zip

0 Bytes
Binary file not shown.

examples/zips/media_services.zip

0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

examples/zips/monitoring.zip

0 Bytes
Binary file not shown.

examples/zips/mysql.zip

310 Bytes
Binary file not shown.

examples/zips/network_firewall.zip

0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

examples/zips/networking.zip

0 Bytes
Binary file not shown.

examples/zips/nosql.zip

0 Bytes
Binary file not shown.

examples/zips/notifications.zip

0 Bytes
Binary file not shown.

examples/zips/object_storage.zip

0 Bytes
Binary file not shown.

examples/zips/ocvp.zip

0 Bytes
Binary file not shown.

examples/zips/onesubscription.zip

0 Bytes
Binary file not shown.

examples/zips/opa.zip

0 Bytes
Binary file not shown.

examples/zips/opensearch.zip

0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

examples/zips/opsi.zip

0 Bytes
Binary file not shown.

examples/zips/optimizer.zip

0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

examples/zips/os_management_hub.zip

0 Bytes
Binary file not shown.

examples/zips/osmanagement.zip

0 Bytes
Binary file not shown.

examples/zips/osp_gateway.zip

0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

examples/zips/osub_subscription.zip

0 Bytes
Binary file not shown.

examples/zips/osub_usage.zip

0 Bytes
Binary file not shown.

examples/zips/pic.zip

0 Bytes
Binary file not shown.

examples/zips/psql.zip

0 Bytes
Binary file not shown.

examples/zips/queue.zip

0 Bytes
Binary file not shown.

examples/zips/recovery.zip

0 Bytes
Binary file not shown.

examples/zips/redis.zip

0 Bytes
Binary file not shown.

examples/zips/resourcemanager.zip

0 Bytes
Binary file not shown.

examples/zips/resourcescheduler.zip

0 Bytes
Binary file not shown.

examples/zips/security_attribute.zip

0 Bytes
Binary file not shown.

examples/zips/serviceManagerProxy.zip

0 Bytes
Binary file not shown.

examples/zips/service_catalog.zip

0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

examples/zips/service_mesh.zip

0 Bytes
Binary file not shown.

examples/zips/stack_monitoring.zip

0 Bytes
Binary file not shown.

examples/zips/storage.zip

0 Bytes
Binary file not shown.

examples/zips/streaming.zip

0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

examples/zips/usage_proxy.zip

0 Bytes
Binary file not shown.

examples/zips/vault_secret.zip

0 Bytes
Binary file not shown.

examples/zips/vbs_inst.zip

0 Bytes
Binary file not shown.

examples/zips/visual_builder.zip

0 Bytes
Binary file not shown.

examples/zips/vn_monitoring.zip

0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

examples/zips/web_app_firewall.zip

0 Bytes
Binary file not shown.
Binary file not shown.

examples/zips/zpr.zip

0 Bytes
Binary file not shown.

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ require (
1414
github.com/hashicorp/terraform-plugin-mux v0.18.0
1515
github.com/hashicorp/terraform-plugin-sdk/v2 v2.36.1
1616
github.com/hashicorp/terraform-plugin-testing v1.9.0
17-
github.com/oracle/oci-go-sdk/v65 v65.91.0
17+
github.com/oracle/oci-go-sdk/v65 v65.91.1
1818
github.com/stretchr/testify v1.9.0
1919
golang.org/x/mod v0.24.0
2020
gopkg.in/yaml.v2 v2.4.0

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,8 @@ github.com/oklog/run v1.1.0/go.mod h1:sVPdnTZT1zYwAJeCMu2Th4T21pA3FPOQRfWjQlk7DV
156156
github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=
157157
github.com/onsi/ginkgo v1.7.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=
158158
github.com/onsi/gomega v1.4.3/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY=
159-
github.com/oracle/oci-go-sdk/v65 v65.91.0 h1:maO6AxKxVfszH0X4tbbtN21jOk03lCRR3IqiA8/FzZc=
160-
github.com/oracle/oci-go-sdk/v65 v65.91.0/go.mod h1:u6XRPsw9tPziBh76K7GrrRXPa8P8W3BQeqJ6ZZt9VLA=
159+
github.com/oracle/oci-go-sdk/v65 v65.91.1 h1:jRE4jUiJd+sDhJTyTCXIJdzLjTx+99gA3PgzpVTaF/I=
160+
github.com/oracle/oci-go-sdk/v65 v65.91.1/go.mod h1:u6XRPsw9tPziBh76K7GrrRXPa8P8W3BQeqJ6ZZt9VLA=
161161
github.com/pjbgf/sha1cd v0.3.2 h1:a9wb0bp1oC2TGwStyn0Umc/IGKQnEgF0vVaZ8QF8eo4=
162162
github.com/pjbgf/sha1cd v0.3.2/go.mod h1:zQWigSxVmsHEZow5qaLtPYxpcKMMQpa09ixqBxuCS6A=
163163
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=

internal/globalvar/version.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import (
77
"log"
88
)
99

10-
const Version = "7.1.0"
11-
const ReleaseDate = "2025-05-14"
10+
const Version = "7.2.0"
11+
const ReleaseDate = "2025-05-24"
1212

1313
func PrintVersion() {
1414
log.Printf("[INFO] terraform-provider-oci %s\n", Version)
Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
// Copyright (c) 2017, 2024, Oracle and/or its affiliates. All rights reserved.
2+
3+
package integrationtest
4+
5+
import (
6+
"fmt"
7+
"testing"
8+
9+
"github.com/hashicorp/terraform-plugin-testing/helper/resource"
10+
"github.com/hashicorp/terraform-plugin-testing/terraform"
11+
12+
"github.com/oracle/terraform-provider-oci/httpreplay"
13+
"github.com/oracle/terraform-provider-oci/internal/acctest"
14+
"github.com/oracle/terraform-provider-oci/internal/utils"
15+
)
16+
17+
var (
18+
disabledPitrPolicy = map[string]interface{}{
19+
"is_enabled": acctest.Representation{RepType: acctest.Optional, Create: `false`},
20+
}
21+
22+
disabledBackupPolicy = map[string]interface{}{
23+
"is_enabled": acctest.Representation{RepType: acctest.Optional, Create: `false`},
24+
"pitr_policy": acctest.RepresentationGroup{RepType: acctest.Optional, Group: disabledPitrPolicy},
25+
}
26+
27+
mysqlDbSystemNsgIds = map[string]interface{}{
28+
// standard required properties
29+
"admin_password": acctest.Representation{RepType: acctest.Required, Create: `BEstrO0ng_#11`},
30+
"admin_username": acctest.Representation{RepType: acctest.Required, Create: `adminUser`},
31+
"availability_domain": acctest.Representation{RepType: acctest.Required, Create: `${data.oci_identity_availability_domains.test_availability_domains.availability_domains.0.name}`},
32+
"compartment_id": acctest.Representation{RepType: acctest.Required, Create: `${var.compartment_id}`},
33+
"shape_name": acctest.Representation{RepType: acctest.Required, Create: `MySQL.VM.Standard.E3.1.8GB`},
34+
"subnet_id": acctest.Representation{RepType: acctest.Required, Create: `${oci_core_subnet.test_subnet.id}`},
35+
"data_storage_size_in_gb": acctest.Representation{RepType: acctest.Required, Create: `50`},
36+
37+
// use an easier to track display name
38+
"display_name": acctest.Representation{RepType: acctest.Optional, Create: `TestDbSystemNsgIds`},
39+
40+
// avoid wasting time setting up DBM when that's not what we're testing here
41+
"database_management": acctest.Representation{RepType: acctest.Optional, Create: `DISABLED`},
42+
43+
// disable backup policy to avoid wasting even more time and resources
44+
"backup_policy": acctest.RepresentationGroup{RepType: acctest.Required, Group: disabledBackupPolicy},
45+
46+
// create with the default NSG and then clear NSGs on update
47+
"nsg_ids": acctest.Representation{RepType: acctest.Optional,
48+
Create: []string{`${oci_core_network_security_group.test_network_security_group.id}`},
49+
Update: []string{}},
50+
}
51+
)
52+
53+
// issue-routing-tag: mysql/default
54+
func TestMysqlMysqlDbSystemResource_nsgIds(t *testing.T) {
55+
httpreplay.SetScenario("TestMysqlMysqlDbSystemResource_nsgIds")
56+
defer httpreplay.SaveScenario()
57+
58+
config := acctest.ProviderTestConfig()
59+
60+
compartmentId := utils.GetEnvSettingWithBlankDefault("compartment_ocid")
61+
compartmentIdVariableStr := fmt.Sprintf("variable \"compartment_id\" { default = \"%s\" }\n", compartmentId)
62+
63+
resourceName := "oci_mysql_mysql_db_system.test_mysql_db_system"
64+
65+
var resId, resId2 string
66+
67+
acctest.ResourceTest(t, nil, []resource.TestStep{
68+
// verify Create with optional fields
69+
{
70+
Config: config + compartmentIdVariableStr + MysqlMysqlDbSystemResourceDependencies +
71+
acctest.GenerateResourceFromRepresentationMap("oci_mysql_mysql_db_system", "test_mysql_db_system", acctest.Optional, acctest.Create, mysqlDbSystemNsgIds),
72+
Check: acctest.ComposeAggregateTestCheckFuncWrapper(
73+
resource.TestCheckResourceAttr(resourceName, "nsg_ids.#", "1"),
74+
75+
func(s *terraform.State) (err error) {
76+
resId, err = acctest.FromInstanceState(s, resourceName, "id")
77+
return err
78+
},
79+
),
80+
},
81+
82+
// verify it is possible to change the network security groups
83+
{
84+
Config: config + compartmentIdVariableStr + MysqlMysqlDbSystemResourceDependencies +
85+
acctest.GenerateResourceFromRepresentationMap("oci_mysql_mysql_db_system", "test_mysql_db_system", acctest.Optional, acctest.Update, mysqlDbSystemNsgIds),
86+
Check: acctest.ComposeAggregateTestCheckFuncWrapper(
87+
resource.TestCheckResourceAttr(resourceName, "nsg_ids.#", "0"),
88+
89+
func(s *terraform.State) (err error) {
90+
resId2, err = acctest.FromInstanceState(s, resourceName, "id")
91+
if resId != resId2 {
92+
return fmt.Errorf("Resource recreated when it was supposed to be updated.")
93+
}
94+
return err
95+
},
96+
),
97+
},
98+
})
99+
}

internal/integrationtest/mysql_mysql_db_system_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ var (
7474
"ip_address": acctest.Representation{RepType: acctest.Optional, Create: `10.0.0.3`},
7575
"is_highly_available": acctest.Representation{RepType: acctest.Optional, Create: `false`},
7676
"maintenance": acctest.RepresentationGroup{RepType: acctest.Optional, Group: MysqlMysqlDbSystemMaintenanceRepresentation},
77+
"nsg_ids": acctest.Representation{RepType: acctest.Optional, Create: []string{`${oci_core_network_security_group.test_network_security_group.id}`}},
7778
"port": acctest.Representation{RepType: acctest.Optional, Create: `3306`},
7879
"port_x": acctest.Representation{RepType: acctest.Optional, Create: `33306`},
7980
"secure_connections": acctest.RepresentationGroup{RepType: acctest.Optional, Group: MysqlMysqlDbSystemSecureConnectionsRepresentation},
@@ -135,6 +136,7 @@ var (
135136
MysqlMysqlDbSystemResourceDependencies = MysqlMysqlConfigurationResourceConfig +
136137
acctest.GenerateResourceFromRepresentationMap("oci_core_subnet", "test_subnet", acctest.Required, acctest.Create, CoreSubnetRepresentation) +
137138
acctest.GenerateResourceFromRepresentationMap("oci_core_vcn", "test_vcn", acctest.Required, acctest.Create, CoreVcnRepresentation) +
139+
acctest.GenerateResourceFromRepresentationMap("oci_core_network_security_group", "test_network_security_group", acctest.Required, acctest.Create, CoreNetworkSecurityGroupRepresentation) +
138140
AvailabilityDomainConfig +
139141
MysqlMysqlVersionResourceConfig
140142
)

internal/integrationtest/mysql_replica_test.go

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,10 @@ var (
6464

6565
MysqlReplicaReplicaOverridesRepresentation = map[string]interface{}{
6666
"configuration_id": acctest.Representation{RepType: acctest.Optional, Create: `${oci_mysql_mysql_db_system.test_mysql_db_system.configuration_id}`},
67-
"mysql_version": acctest.Representation{RepType: acctest.Optional, Create: `8.0.35`, Update: `8.1.0`},
68-
"shape_name": acctest.Representation{RepType: acctest.Optional, Create: `${oci_mysql_mysql_db_system.test_mysql_db_system.shape_name}`},
67+
// TODO: fix unsupported versions
68+
//"mysql_version": acctest.Representation{RepType: acctest.Optional, Create: `8.0.35`, Update: `8.1.0`},
69+
"nsg_ids": acctest.Representation{RepType: acctest.Optional, Create: []string{`${oci_core_network_security_group.test_network_security_group.id}`}},
70+
"shape_name": acctest.Representation{RepType: acctest.Optional, Create: `${oci_mysql_mysql_db_system.test_mysql_db_system.shape_name}`},
6971
}
7072

7173
ignoreDefinedTagsChangesForMysqlReplica = map[string]interface{}{
@@ -162,7 +164,8 @@ func TestMysqlReplicaResource_basic(t *testing.T) {
162164
resource.TestCheckResourceAttrSet(resourceName, "port_x"),
163165
resource.TestCheckResourceAttr(resourceName, "replica_overrides.#", "1"),
164166
resource.TestCheckResourceAttrSet(resourceName, "replica_overrides.0.configuration_id"),
165-
resource.TestCheckResourceAttr(resourceName, "replica_overrides.0.mysql_version", "8.0.35"),
167+
// TODO: fix unsupported versions
168+
//resource.TestCheckResourceAttr(resourceName, "replica_overrides.0.mysql_version", "8.0.35"),
166169
resource.TestCheckResourceAttrSet(resourceName, "replica_overrides.0.shape_name"),
167170
resource.TestCheckResourceAttrSet(resourceName, "state"),
168171
resource.TestCheckResourceAttrSet(resourceName, "time_created"),
@@ -199,7 +202,8 @@ func TestMysqlReplicaResource_basic(t *testing.T) {
199202
resource.TestCheckResourceAttrSet(resourceName, "port_x"),
200203
resource.TestCheckResourceAttr(resourceName, "replica_overrides.#", "1"),
201204
resource.TestCheckResourceAttrSet(resourceName, "replica_overrides.0.configuration_id"),
202-
resource.TestCheckResourceAttr(resourceName, "replica_overrides.0.mysql_version", "8.1.0"),
205+
// TODO: fix unsupported versions
206+
//resource.TestCheckResourceAttr(resourceName, "replica_overrides.0.mysql_version", "8.1.0"),
203207
resource.TestCheckResourceAttrSet(resourceName, "replica_overrides.0.shape_name"),
204208
resource.TestCheckResourceAttrSet(resourceName, "state"),
205209
resource.TestCheckResourceAttrSet(resourceName, "time_created"),
@@ -245,7 +249,8 @@ func TestMysqlReplicaResource_basic(t *testing.T) {
245249
resource.TestCheckResourceAttrSet(datasourceName, "replicas.0.port_x"),
246250
resource.TestCheckResourceAttr(datasourceName, "replicas.0.replica_overrides.#", "1"),
247251
resource.TestCheckResourceAttrSet(datasourceName, "replicas.0.replica_overrides.0.configuration_id"),
248-
resource.TestCheckResourceAttr(datasourceName, "replicas.0.replica_overrides.0.mysql_version", "8.1.0"),
252+
// TODO: fix unsupported versions
253+
//resource.TestCheckResourceAttr(datasourceName, "replicas.0.replica_overrides.0.mysql_version", "8.1.0"),
249254
resource.TestCheckResourceAttrSet(datasourceName, "replicas.0.replica_overrides.0.shape_name"),
250255
resource.TestCheckResourceAttrSet(datasourceName, "replicas.0.shape_name"),
251256
resource.TestCheckResourceAttrSet(datasourceName, "replicas.0.state"),
@@ -274,7 +279,8 @@ func TestMysqlReplicaResource_basic(t *testing.T) {
274279
resource.TestCheckResourceAttrSet(singularDatasourceName, "port"),
275280
resource.TestCheckResourceAttrSet(singularDatasourceName, "port_x"),
276281
resource.TestCheckResourceAttr(singularDatasourceName, "replica_overrides.#", "1"),
277-
resource.TestCheckResourceAttr(singularDatasourceName, "replica_overrides.0.mysql_version", "8.1.0"),
282+
// TODO: fix unsupported versions
283+
//resource.TestCheckResourceAttr(singularDatasourceName, "replica_overrides.0.mysql_version", "8.1.0"),
278284
resource.TestCheckResourceAttr(singularDatasourceName, "secure_connections.#", "1"),
279285
resource.TestCheckResourceAttrSet(singularDatasourceName, "shape_name"),
280286
resource.TestCheckResourceAttrSet(singularDatasourceName, "state"),

internal/service/data_safe/data_safe_unset_security_assessment_baseline_resource.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ func DataSafeUnsetSecurityAssessmentBaselineResource() *schema.Resource {
4040
"target_ids": {
4141
Type: schema.TypeList,
4242
Optional: true,
43-
Computed: true,
4443
ForceNew: true,
4544
Elem: &schema.Schema{
4645
Type: schema.TypeString,

internal/service/data_safe/data_safe_unset_user_assessment_baseline_resource.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ func DataSafeUnsetUserAssessmentBaselineResource() *schema.Resource {
4040
"target_ids": {
4141
Type: schema.TypeList,
4242
Optional: true,
43-
Computed: true,
4443
ForceNew: true,
4544
Elem: &schema.Schema{
4645
Type: schema.TypeString,

internal/service/mysql/mysql_mysql_backup_data_source.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ func (s *MysqlMysqlBackupDataSourceCrud) SetData() error {
8787
}
8888

8989
if s.Res.DbSystemSnapshot != nil {
90-
s.D.Set("db_system_snapshot", []interface{}{DbSystemSnapshotToMap(s.Res.DbSystemSnapshot)})
90+
s.D.Set("db_system_snapshot", []interface{}{DbSystemSnapshotToMap(s.Res.DbSystemSnapshot, true)})
9191
} else {
9292
s.D.Set("db_system_snapshot", nil)
9393
}

0 commit comments

Comments
 (0)