Skip to content

Commit 696f6bb

Browse files
authored
Release 3.28.0
Release 3.28.0
2 parents 00924ed + 13ba627 commit 696f6bb

File tree

412 files changed

+2259
-1181
lines changed

Some content is hidden

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

412 files changed

+2259
-1181
lines changed

CHANGELOG.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
## 3.28.0 (Unreleased)
2+
3+
### Added
4+
- Support for ATP-S autoscaling
5+
- Support for specifying Fault Domains in `launch_details` for `oci_core_instance_configuration` resource
6+
- Support for defined tags and tag namespace deletion
7+
18
## 3.27.0 (May 29, 2019)
29

310
### Added
@@ -43,7 +50,7 @@
4350
- Support for updating `license_model` for `oci_autonomous_database` resource
4451
- Support for updating `static_routes` and new `cpe_local_identifier` in `oci_core_ipsec` resource for improved VPN service usability
4552
- Support for updating `whitelisted_ips` in `autonomous_database`. Note: Cannot be used during creation.
46-
- Support tagging for Dynamic Groups in Identity
53+
- Support tagging for Dynamic Groups in Identity
4754

4855
## 3.22.0 (April 10, 2019)
4956

examples/database/adb/autonomous_data_warehouse.tf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ resource "oci_database_autonomous_database" "autonomous_data_warehouse" {
1212
#Required
1313
admin_password = "${random_string.autonomous_data_warehouse_admin_password.result}"
1414
compartment_id = "${var.compartment_ocid}"
15-
cpu_core_count = "${var.autonomous_database_cpu_core_count}"
16-
data_storage_size_in_tbs = "${var.autonomous_database_data_storage_size_in_tbs}"
17-
db_name = "${var.autonomous_data_warehouse_db_name}"
15+
cpu_core_count = "1"
16+
data_storage_size_in_tbs = "1"
17+
db_name = "adbdw1"
1818

1919
#Optional
2020
db_workload = "${var.autonomous_data_warehouse_db_workload}"
21-
display_name = "${var.autonomous_data_warehouse_display_name}"
21+
display_name = "example_autonomous_data_warehouse"
2222
freeform_tags = "${var.autonomous_database_freeform_tags}"
2323
license_model = "${var.autonomous_database_license_model}"
2424
}

examples/database/adb/autonomous_database.tf

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,16 @@ resource "oci_database_autonomous_database" "autonomous_database" {
1212
#Required
1313
admin_password = "${random_string.autonomous_database_admin_password.result}"
1414
compartment_id = "${var.compartment_ocid}"
15-
cpu_core_count = "${var.autonomous_database_cpu_core_count}"
16-
data_storage_size_in_tbs = "${var.autonomous_database_data_storage_size_in_tbs}"
17-
db_name = "${var.autonomous_database_db_name}"
15+
cpu_core_count = "1"
16+
data_storage_size_in_tbs = "1"
17+
db_name = "adbdb1"
1818

1919
#Optional
20-
db_workload = "${var.autonomous_database_db_workload}"
21-
display_name = "${var.autonomous_database_display_name}"
22-
freeform_tags = "${var.autonomous_database_freeform_tags}"
23-
license_model = "${var.autonomous_database_license_model}"
20+
db_workload = "${var.autonomous_database_db_workload}"
21+
display_name = "example_autonomous_database"
22+
freeform_tags = "${var.autonomous_database_freeform_tags}"
23+
is_auto_scaling_enabled = "true"
24+
license_model = "${var.autonomous_database_license_model}"
2425
}
2526

2627
data "oci_database_autonomous_databases" "autonomous_databases" {

examples/database/adb/variables.tf

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,6 @@ variable "private_key_path" {}
77
variable "region" {}
88
variable "compartment_ocid" {}
99

10-
variable "autonomous_database_cpu_core_count" {
11-
default = 1
12-
}
13-
14-
variable "autonomous_database_data_storage_size_in_tbs" {
15-
default = 1
16-
}
17-
18-
variable "autonomous_database_db_name" {
19-
default = "adbdb1"
20-
}
21-
22-
variable "autonomous_data_warehouse_db_name" {
23-
default = "adbdw1"
24-
}
25-
2610
variable "autonomous_database_db_workload" {
2711
default = "OLTP"
2812
}
@@ -35,14 +19,6 @@ variable "autonomous_database_defined_tags_value" {
3519
default = "value"
3620
}
3721

38-
variable "autonomous_database_display_name" {
39-
default = "example_autonomous_database"
40-
}
41-
42-
variable "autonomous_data_warehouse_display_name" {
43-
default = "example_autonomous_data_warehouse"
44-
}
45-
4622
variable "autonomous_database_freeform_tags" {
4723
default = {
4824
"Department" = "Finance"

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ require (
44
github.com/go-ini/ini v0.0.0-20170209042415-ee900ca56593 // indirect
55
github.com/hashicorp/hcl v0.0.0-20180404174102-ef8a98b0bbce // indirect
66
github.com/hashicorp/terraform v0.12.0-rc1
7-
github.com/oracle/oci-go-sdk v5.8.0+incompatible
7+
github.com/oracle/oci-go-sdk v5.9.0+incompatible
88
github.com/smartystreets/goconvey v0.0.0-20190222223459-a17d461953aa // indirect
99
github.com/stretchr/objx v0.1.1 // indirect
1010
github.com/stretchr/testify v1.3.0

go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,8 @@ github.com/oracle/oci-go-sdk v5.6.0+incompatible h1:SvLqCT/jr1H8yT20Iq9DGpc5f5dX
336336
github.com/oracle/oci-go-sdk v5.6.0+incompatible/go.mod h1:VQb79nF8Z2cwLkLS35ukwStZIg5F66tcBccjip/j888=
337337
github.com/oracle/oci-go-sdk v5.8.0+incompatible h1:OaobVD/YJYLiU7nJQUUYI+uqhpaCnz0eWCEJLuclgGY=
338338
github.com/oracle/oci-go-sdk v5.8.0+incompatible/go.mod h1:VQb79nF8Z2cwLkLS35ukwStZIg5F66tcBccjip/j888=
339+
github.com/oracle/oci-go-sdk v5.9.0+incompatible h1:YUb4nKl06QU1Y3768sS3siNmla1UlSzSqqareLOKYak=
340+
github.com/oracle/oci-go-sdk v5.9.0+incompatible/go.mod h1:VQb79nF8Z2cwLkLS35ukwStZIg5F66tcBccjip/j888=
339341
github.com/packer-community/winrmcp v0.0.0-20180102160824-81144009af58/go.mod h1:f6Izs6JvFTdnRbziASagjZ2vmf55NSIkC/weStxCHqk=
340342
github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc=
341343
github.com/pkg/errors v0.0.0-20170505043639-c605e284fe17/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=

oci/autoscaling_auto_scaling_configuration_resource.go

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import (
1010
"strings"
1111

1212
"github.com/hashicorp/terraform/helper/hashcode"
13-
1413
"github.com/hashicorp/terraform/helper/schema"
1514
"github.com/hashicorp/terraform/helper/validation"
1615

@@ -504,8 +503,7 @@ func (s *AutoscalingAutoScalingConfigurationResourceCrud) mapToAction(fieldKeyFo
504503
result := oci_autoscaling.Action{}
505504

506505
if type_, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "type")); ok {
507-
tmp := oci_autoscaling.ActionTypeEnum(type_.(string))
508-
result.Type = tmp
506+
result.Type = oci_autoscaling.ActionTypeEnum(type_.(string))
509507
}
510508

511509
if value, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "value")); ok {
@@ -587,21 +585,21 @@ func (s *AutoscalingAutoScalingConfigurationResourceCrud) mapToCreateAutoScaling
587585
tmp := make([]oci_autoscaling.CreateConditionDetails, len(interfaces))
588586
for i := range interfaces {
589587
stateDataIndex := autoScalingConfigurationPolicyRulesHashCodeForSets(interfaces[i])
590-
fieldKeyFormat := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "rules"), stateDataIndex)
591-
converted, err := s.mapToCreateConditionDetails(fieldKeyFormat)
588+
fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "rules"), stateDataIndex)
589+
converted, err := s.mapToCreateConditionDetails(fieldKeyFormatNextLevel)
592590
if err != nil {
593-
return nil, err
591+
return details, err
594592
}
595593
tmp[i] = converted
596594
}
597595
details.Rules = tmp
598596
}
599597
if capacity, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "capacity")); ok {
600598
if tmpList := capacity.([]interface{}); len(tmpList) > 0 {
601-
fieldKeyFormat := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "capacity"), 0)
602-
tmp, err := s.mapToCapacity(fieldKeyFormat)
599+
fieldKeyFormatNextLevel := fmt.Sprintf("%s.%d.%%s", fmt.Sprintf(fieldKeyFormat, "capacity"), 0)
600+
tmp, err := s.mapToCapacity(fieldKeyFormatNextLevel)
603601
if err != nil {
604-
return nil, err
602+
return details, fmt.Errorf("unable to convert capacity, encountered error: %v", err)
605603
}
606604
details.Capacity = &tmp
607605
}
@@ -717,8 +715,7 @@ func (s *AutoscalingAutoScalingConfigurationResourceCrud) mapToMetric(fieldKeyFo
717715
result := oci_autoscaling.Metric{}
718716

719717
if metricType, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "metric_type")); ok {
720-
tmp := oci_autoscaling.MetricMetricTypeEnum(metricType.(string))
721-
result.MetricType = tmp
718+
result.MetricType = oci_autoscaling.MetricMetricTypeEnum(metricType.(string))
722719
}
723720

724721
if threshold, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "threshold")); ok {
@@ -790,8 +787,7 @@ func (s *AutoscalingAutoScalingConfigurationResourceCrud) mapToThreshold(fieldKe
790787
result := oci_autoscaling.Threshold{}
791788

792789
if operator, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "operator")); ok {
793-
tmp := oci_autoscaling.ThresholdOperatorEnum(operator.(string))
794-
result.Operator = tmp
790+
result.Operator = oci_autoscaling.ThresholdOperatorEnum(operator.(string))
795791
}
796792

797793
if value, ok := s.D.GetOkExists(fmt.Sprintf(fieldKeyFormat, "value")); ok {

oci/autoscaling_auto_scaling_configuration_scenario_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ func (s *ResourceAutoscalingConfigurationTestSuite) SetupTest() {
9292
nested_object = "{\"some_string\": \"stringB\", \"object\": {\"some_string\": \"stringC\"}}"
9393
}
9494
95-
source_details = {
95+
source_details {
9696
source_type = "image"
9797
image_id = "${var.InstanceImageOCID[var.region]}"
9898
}

oci/budget_alert_rule_resource.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@ import (
1212

1313
func BudgetAlertRuleResource() *schema.Resource {
1414
return &schema.Resource{
15-
Importer: &schema.ResourceImporter{
16-
State: schema.ImportStatePassthrough,
17-
},
1815
Timeouts: DefaultTimeout,
1916
Create: createBudgetAlertRule,
2017
Read: readBudgetAlertRule,

oci/budget_alert_rule_test.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -209,10 +209,6 @@ func TestBudgetAlertRuleResource_basic(t *testing.T) {
209209
resource.TestCheckResourceAttrSet(singularDatasourceName, "version"),
210210
),
211211
},
212-
// remove singular datasource from previous step so that it doesn't conflict with import tests
213-
{
214-
Config: config + compartmentIdVariableStr + AlertRuleResourceConfig,
215-
},
216212
},
217213
})
218214
}

0 commit comments

Comments
 (0)