Skip to content

Commit f345236

Browse files
authored
Merge pull request #1120 from terraform-providers/release_merge_v3.86.0
Candidate for release_v3.86.0
2 parents b081fdd + 38733a2 commit f345236

38 files changed

+480
-117
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
## 3.86.0 (Unreleased)
2+
3+
### Added
4+
- Support for BYOL in `oci_oce_oce_instance`
5+
26
## 3.85.0 (July 15, 2020)
37

48
### Added

examples/oce/main.tf

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,13 @@ resource "oci_oce_oce_instance" "test_oce_instance" {
3333
tenancy_name = "${var.tenancy_name}"
3434

3535
#optional
36-
freeform_tags = "${map("freeformkey", "freeformvalue")}"
37-
description = "description"
38-
instance_access_type = "PUBLIC"
39-
instance_usage_type = "NONPRIMARY"
40-
upgrade_schedule = "UPGRADE_IMMEDIATELY"
41-
waf_primary_domain = "oracle.com"
36+
freeform_tags = "${map("freeformkey", "freeformvalue")}"
37+
description = "description"
38+
instance_access_type = "PUBLIC"
39+
instance_usage_type = "NONPRIMARY"
40+
instance_license_type = "BYOL"
41+
upgrade_schedule = "UPGRADE_IMMEDIATELY"
42+
waf_primary_domain = "oracle.com"
4243
}
4344

4445
data "oci_oce_oce_instances" "test_oce_instances" {

examples/storage/fss/variables.tf

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@ variable "ssh_public_key" {}
1414

1515
variable "ssh_private_key" {}
1616

17-
variable "api_public_key" {
18-
default = "-----BEGIN PUBLIC KEY-----MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA4fGHcxbEs3VaWoKaGUiPHGZ5ILiOXCcWN4nOgLr6CSzUjtgjmN3aA6rsT2mYiD+M5EecDbEUMectUhNtLl5LPABN9kpjuR0zxCJXvYYQiCBtdjb1/YxrZI9T/9Jtd+cTabCahJHR/cR8jFmvO4cKJCa/0+Y00zvktrqniHIn3edGAKC4Ttlwj/1NqT0ZVePMXg3rWHPsIW6ONfdn6FNfMet8Qa8K3C9xVvzImlYx8PQBy/44Ilu5T3A+puwb2QMeZnQZGDALOY4MvrBTTA1TdjFpg1NChj2rGYzreysqlnKFu+1qg64wel39kHkppz4Fv2vaLXF9qIeDjeo3G4sHQIDAQAB-----END PUBLIC KEY-----"
19-
}
17+
variable "api_public_key" {}
2018

2119
variable "my_vcn-cidr" {
2220
default = "10.0.0.0/16"

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ require (
77
github.com/hashicorp/hcl2 v0.0.0-20190618163856-0b64543c968c
88
github.com/hashicorp/terraform v0.12.4-0.20190628193153-a74738cd35fc
99
github.com/mitchellh/cli v1.0.0
10-
github.com/oracle/oci-go-sdk v21.3.0+incompatible
10+
github.com/oracle/oci-go-sdk v21.4.0+incompatible
1111
github.com/stretchr/objx v0.1.1 // indirect
1212
github.com/stretchr/testify v1.3.0
1313
gopkg.in/yaml.v2 v2.2.2

go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -461,6 +461,8 @@ github.com/oracle/oci-go-sdk v21.2.0+incompatible h1:iaZTdpIQjd73yYCju+s+3dgG49Z
461461
github.com/oracle/oci-go-sdk v21.2.0+incompatible/go.mod h1:VQb79nF8Z2cwLkLS35ukwStZIg5F66tcBccjip/j888=
462462
github.com/oracle/oci-go-sdk v21.3.0+incompatible h1:MB9osCinobSml7oDBfph+7Jv9M1yqH4I/iC/BJuURPM=
463463
github.com/oracle/oci-go-sdk v21.3.0+incompatible/go.mod h1:VQb79nF8Z2cwLkLS35ukwStZIg5F66tcBccjip/j888=
464+
github.com/oracle/oci-go-sdk v21.4.0+incompatible h1:ORX+RXBuG/INBs+rgx6S3qoShEZ5+rwEEyRn2s6bPiw=
465+
github.com/oracle/oci-go-sdk v21.4.0+incompatible/go.mod h1:VQb79nF8Z2cwLkLS35ukwStZIg5F66tcBccjip/j888=
464466
github.com/packer-community/winrmcp v0.0.0-20180102160824-81144009af58 h1:m3CEgv3ah1Rhy82L+c0QG/U3VyY1UsvsIdkh0/rU97Y=
465467
github.com/packer-community/winrmcp v0.0.0-20180102160824-81144009af58/go.mod h1:f6Izs6JvFTdnRbziASagjZ2vmf55NSIkC/weStxCHqk=
466468
github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c h1:Lgl0gzECD8GnQ5QCWA8o6BtfL6mDH5rQgM4/fX3avOs=

oci/audit_configuration_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ var (
2424

2525
configurationRepresentation = map[string]interface{}{
2626
"compartment_id": Representation{repType: Required, create: `${var.tenancy_ocid}`},
27-
"retention_period_days": Representation{repType: Required, create: `100`, update: `91`},
27+
"retention_period_days": Representation{repType: Required, create: `365`},
2828
}
2929

3030
ConfigurationResourceDependencies = ""
@@ -57,7 +57,7 @@ func TestAuditConfigurationResource_basic(t *testing.T) {
5757
generateResourceFromRepresentationMap("oci_audit_configuration", "test_configuration", Required, Create, configurationRepresentation),
5858
Check: resource.ComposeAggregateTestCheckFunc(
5959
resource.TestCheckResourceAttr(resourceName, "compartment_id", tenancyId),
60-
resource.TestCheckResourceAttr(resourceName, "retention_period_days", "100"),
60+
resource.TestCheckResourceAttr(resourceName, "retention_period_days", "365"),
6161

6262
func(s *terraform.State) (err error) {
6363
resId, err = fromInstanceState(s, resourceName, "id")
@@ -77,7 +77,7 @@ func TestAuditConfigurationResource_basic(t *testing.T) {
7777
generateResourceFromRepresentationMap("oci_audit_configuration", "test_configuration", Optional, Update, configurationRepresentation),
7878
Check: resource.ComposeAggregateTestCheckFunc(
7979
resource.TestCheckResourceAttr(resourceName, "compartment_id", tenancyId),
80-
resource.TestCheckResourceAttr(resourceName, "retention_period_days", "91"),
80+
resource.TestCheckResourceAttr(resourceName, "retention_period_days", "365"),
8181

8282
func(s *terraform.State) (err error) {
8383
resId2, err = fromInstanceState(s, resourceName, "id")
@@ -96,7 +96,7 @@ func TestAuditConfigurationResource_basic(t *testing.T) {
9696
Check: resource.ComposeAggregateTestCheckFunc(
9797
resource.TestCheckResourceAttr(singularDatasourceName, "compartment_id", tenancyId),
9898

99-
resource.TestCheckResourceAttr(singularDatasourceName, "retention_period_days", "91"),
99+
resource.TestCheckResourceAttr(singularDatasourceName, "retention_period_days", "365"),
100100
),
101101
},
102102
},

oci/budget_alert_rule_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ func TestBudgetAlertRuleResource_basic(t *testing.T) {
6767

6868
compartmentId := getEnvSettingWithBlankDefault("compartment_ocid")
6969
compartmentIdVariableStr := fmt.Sprintf("variable \"compartment_id\" { default = \"%s\" }\n", compartmentId)
70+
tenancyId := getEnvSettingWithBlankDefault("tenancy_ocid")
7071

7172
resourceName := "oci_budget_alert_rule.test_alert_rule"
7273
datasourceName := "data.oci_budget_alert_rules.test_alert_rules"
@@ -129,7 +130,7 @@ func TestBudgetAlertRuleResource_basic(t *testing.T) {
129130
compositeId = "budgets/" + budgetId + "/alertRules/" + resId
130131
log.Printf("[DEBUG] Composite ID to import: %s", compositeId)
131132
if isEnableExportCompartment, _ := strconv.ParseBool(getEnvSettingWithDefault("enable_export_compartment", "false")); isEnableExportCompartment {
132-
if errExport := testExportCompartmentWithResourceName(&compositeId, &compartmentId, resourceName); errExport != nil {
133+
if errExport := testExportCompartmentWithResourceName(&compositeId, &tenancyId, resourceName); errExport != nil {
133134
return errExport
134135
}
135136
}

oci/budget_budget_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ func TestBudgetBudgetResource_basic(t *testing.T) {
304304
func(s *terraform.State) (err error) {
305305
resId, err = fromInstanceState(s, resourceName, "id")
306306
if isEnableExportCompartment, _ := strconv.ParseBool(getEnvSettingWithDefault("enable_export_compartment", "false")); isEnableExportCompartment {
307-
if errExport := testExportCompartmentWithResourceName(&resId, &compartmentId, resourceName); errExport != nil {
307+
if errExport := testExportCompartmentWithResourceName(&resId, &tenancyId, resourceName); errExport != nil {
308308
return errExport
309309
}
310310
}

oci/core_dhcp_options_resource_test.go

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -556,22 +556,13 @@ func TestResourceCoreDHCPOptions_changeOptionsOrder(t *testing.T) {
556556
display_name = "testDhcpOptions"
557557
558558
// required
559-
options {
560-
type = "DomainNameServer"
561-
server_type = "VcnLocalPlusInternet"
562-
}
563-
564559
options {
565560
type = "DomainNameServer"
566561
server_type = "CustomDnsServer"
567562
custom_dns_servers = ["8.8.4.4", "8.8.8.8"]
568563
}
569564
}`,
570565
Check: resource.ComposeAggregateTestCheckFunc(
571-
CheckResourceSetContainsElementWithProperties("oci_core_dhcp_options.opt", "options", map[string]string{
572-
"type": "DomainNameServer",
573-
"server_type": "VcnLocalPlusInternet",
574-
}, []string{}),
575566
CheckResourceSetContainsElementWithProperties("oci_core_dhcp_options.opt", "options", map[string]string{
576567
"type": "DomainNameServer",
577568
"server_type": "CustomDnsServer",
@@ -599,24 +590,12 @@ func TestResourceCoreDHCPOptions_changeOptionsOrder(t *testing.T) {
599590
type = "DomainNameServer"
600591
server_type = "VcnLocalPlusInternet"
601592
}
602-
603-
options {
604-
type = "DomainNameServer"
605-
server_type = "CustomDnsServer"
606-
custom_dns_servers = ["8.8.8.8", "8.8.4.4"]
607-
}
608593
}`,
609594
Check: resource.ComposeAggregateTestCheckFunc(
610595
CheckResourceSetContainsElementWithProperties("oci_core_dhcp_options.opt", "options", map[string]string{
611596
"type": "DomainNameServer",
612597
"server_type": "VcnLocalPlusInternet",
613598
}, []string{}),
614-
CheckResourceSetContainsElementWithProperties("oci_core_dhcp_options.opt", "options", map[string]string{
615-
"type": "DomainNameServer",
616-
"server_type": "CustomDnsServer",
617-
"custom_dns_servers.0": "8.8.8.8",
618-
"custom_dns_servers.1": "8.8.4.4",
619-
}, []string{}),
620599
),
621600
},
622601
},

oci/core_volume_attachment_resource.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,10 @@ func (s *CoreVolumeAttachmentResourceCrud) SetData() error {
279279
s.D.Set("is_read_only", *v.IsReadOnly)
280280
}
281281

282+
if v.IsShareable != nil {
283+
s.D.Set("is_shareable", *v.IsShareable)
284+
}
285+
282286
s.D.Set("state", v.LifecycleState)
283287

284288
if v.TimeCreated != nil {
@@ -343,6 +347,10 @@ func (s *CoreVolumeAttachmentResourceCrud) SetData() error {
343347
s.D.Set("is_read_only", *v.IsReadOnly)
344348
}
345349

350+
if v.IsShareable != nil {
351+
s.D.Set("is_shareable", *v.IsShareable)
352+
}
353+
346354
s.D.Set("state", v.LifecycleState)
347355

348356
if v.TimeCreated != nil {
@@ -387,6 +395,10 @@ func (s *CoreVolumeAttachmentResourceCrud) SetData() error {
387395
s.D.Set("is_read_only", *v.IsReadOnly)
388396
}
389397

398+
if v.IsShareable != nil {
399+
s.D.Set("is_shareable", *v.IsShareable)
400+
}
401+
390402
s.D.Set("state", v.LifecycleState)
391403

392404
if v.TimeCreated != nil {

0 commit comments

Comments
 (0)