Skip to content

Commit

Permalink
Merge pull request #1894 from oracle/release_gh
Browse files Browse the repository at this point in the history
  Releasing OCI Terraform Provider v5.2.0
  • Loading branch information
vsin12 authored Jun 21, 2023
2 parents cc07929 + 423e759 commit 99c3933
Show file tree
Hide file tree
Showing 431 changed files with 6,947 additions and 475 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
## 5.2.0 (June 21, 2023)

### Added
- Support for ADB-S: Storage Allocation Enhancements
- validate function for pool state
- NSG Support for private Database Registrations/Private Endpoints.
- import dataset feature support
- Support for ARM Support for Runner Component
### Bug Fix
- Corrected outdated documentation for db_name field of the oci_database_autonomous_database resource.
- Fixed network-source/Domains/Polices resource discovery issue.

## 5.1.0 (June 14, 2023)

### Added
Expand Down
12 changes: 12 additions & 0 deletions examples/dataflow/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,18 @@ variable "invoke_run_display_name" {
variable "statement_code" {
}


resource "oci_dataflow_pool" "test_pool" {
compartment_id = var.compartment_id
description = "description"
display_name = "pool_name"
freeform_tags = {
"Department" = "Finance"
}
configurations = [{shape: "VM.Standard2.1", shapeConfig: {ocpus: 1, memoryInGBs: 15}, min: 0, max: 1}]
schedules = [{dayOfWeek: "SUNDAY", startTime: 3}]
}

resource "oci_dataflow_application" "tf_application" {
#Required
compartment_id = var.compartment_id
Expand Down
1 change: 1 addition & 0 deletions examples/functions/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ resource "oci_functions_application" "test_application" {
domain_id = var.application_trace_config.domain_id
is_enabled = var.application_trace_config.is_enabled
}
shape = var.application_shape
}

data "oci_functions_applications" "test_applications" {
Expand Down
4 changes: 4 additions & 0 deletions examples/functions/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -99,4 +99,8 @@ variable "pbf_listing_version_id" {
}

variable "pbf_trigger_name" {
}

variable "application_shape" {
default = "GENERIC_X86"
}
Binary file modified examples/zips/adm.zip
Binary file not shown.
Binary file modified examples/zips/aiAnomalyDetection.zip
Binary file not shown.
Binary file modified examples/zips/aiDocument.zip
Binary file not shown.
Binary file modified examples/zips/aiVision.zip
Binary file not shown.
Binary file modified examples/zips/always_free.zip
Binary file not shown.
Binary file modified examples/zips/analytics.zip
Binary file not shown.
Binary file modified examples/zips/announcements_service.zip
Binary file not shown.
Binary file modified examples/zips/api_gateway.zip
Binary file not shown.
Binary file modified examples/zips/apm.zip
Binary file not shown.
Binary file modified examples/zips/appmgmt_control.zip
Binary file not shown.
Binary file modified examples/zips/artifacts.zip
Binary file not shown.
Binary file modified examples/zips/audit.zip
Binary file not shown.
Binary file modified examples/zips/autoscaling.zip
Binary file not shown.
Binary file modified examples/zips/bastion.zip
Binary file not shown.
Binary file modified examples/zips/big_data_service.zip
Binary file not shown.
Binary file modified examples/zips/blockchain.zip
Binary file not shown.
Binary file modified examples/zips/budget.zip
Binary file not shown.
Binary file modified examples/zips/certificatesManagement.zip
Binary file not shown.
Binary file modified examples/zips/cloudBridge.zip
Binary file not shown.
Binary file modified examples/zips/cloudMigrations.zip
Binary file not shown.
Binary file modified examples/zips/cloudguard.zip
Binary file not shown.
Binary file modified examples/zips/compute.zip
Binary file not shown.
Binary file modified examples/zips/computeinstanceagent.zip
Binary file not shown.
Binary file modified examples/zips/concepts.zip
Binary file not shown.
Binary file modified examples/zips/container_engine.zip
Binary file not shown.
Binary file modified examples/zips/container_instances.zip
Binary file not shown.
Binary file modified examples/zips/database.zip
Binary file not shown.
Binary file modified examples/zips/databaseTools.zip
Binary file not shown.
Binary file modified examples/zips/databasemanagement.zip
Binary file not shown.
Binary file modified examples/zips/databasemigration.zip
Binary file not shown.
Binary file modified examples/zips/datacatalog.zip
Binary file not shown.
Binary file modified examples/zips/dataflow.zip
Binary file not shown.
Binary file modified examples/zips/dataintegration.zip
Binary file not shown.
Binary file modified examples/zips/datalabeling.zip
Binary file not shown.
Binary file modified examples/zips/datasafe.zip
Binary file not shown.
Binary file modified examples/zips/datascience.zip
Binary file not shown.
Binary file modified examples/zips/devops.zip
Binary file not shown.
Binary file modified examples/zips/disaster_recovery.zip
Binary file not shown.
Binary file modified examples/zips/dns.zip
Binary file not shown.
Binary file modified examples/zips/em_warehouse.zip
Binary file not shown.
Binary file modified examples/zips/email.zip
Binary file not shown.
Binary file modified examples/zips/events.zip
Binary file not shown.
Binary file modified examples/zips/fast_connect.zip
Binary file not shown.
Binary file modified examples/zips/functions.zip
Binary file not shown.
Binary file modified examples/zips/fusionapps.zip
Binary file not shown.
Binary file modified examples/zips/goldengate.zip
Binary file not shown.
Binary file modified examples/zips/health_checks.zip
Binary file not shown.
Binary file modified examples/zips/id6.zip
Binary file not shown.
Binary file modified examples/zips/identity.zip
Binary file not shown.
Binary file modified examples/zips/identity_data_plane.zip
Binary file not shown.
Binary file modified examples/zips/identity_domains.zip
Binary file not shown.
Binary file modified examples/zips/integration.zip
Binary file not shown.
Binary file modified examples/zips/jms.zip
Binary file not shown.
Binary file modified examples/zips/kms.zip
Binary file not shown.
Binary file modified examples/zips/license_manager.zip
Binary file not shown.
Binary file modified examples/zips/limits.zip
Binary file not shown.
Binary file modified examples/zips/load_balancer.zip
Binary file not shown.
Binary file modified examples/zips/log_analytics.zip
Binary file not shown.
Binary file modified examples/zips/logging.zip
Binary file not shown.
Binary file modified examples/zips/management_agent.zip
Binary file not shown.
Binary file modified examples/zips/management_dashboard.zip
Binary file not shown.
Binary file modified examples/zips/marketplace.zip
Binary file not shown.
Binary file modified examples/zips/media_services.zip
Binary file not shown.
Binary file modified examples/zips/metering_computation.zip
Binary file not shown.
Binary file modified examples/zips/monitoring.zip
Binary file not shown.
Binary file modified examples/zips/mysql.zip
Binary file not shown.
Binary file modified examples/zips/network_firewall.zip
Binary file not shown.
Binary file modified examples/zips/network_load_balancer.zip
Binary file not shown.
Binary file modified examples/zips/networking.zip
Binary file not shown.
Binary file modified examples/zips/nosql.zip
Binary file not shown.
Binary file modified examples/zips/notifications.zip
Binary file not shown.
Binary file modified examples/zips/object_storage.zip
Binary file not shown.
Binary file modified examples/zips/ocvp.zip
Binary file not shown.
Binary file modified examples/zips/onesubscription.zip
Binary file not shown.
Binary file modified examples/zips/opa.zip
Binary file not shown.
Binary file modified examples/zips/opensearch.zip
Binary file not shown.
Binary file modified examples/zips/operator_access_control.zip
Binary file not shown.
Binary file modified examples/zips/opsi.zip
Binary file not shown.
Binary file modified examples/zips/optimizer.zip
Binary file not shown.
Binary file modified examples/zips/oracle_cloud_vmware_solution.zip
Binary file not shown.
Binary file modified examples/zips/oracle_content_experience.zip
Binary file not shown.
Binary file modified examples/zips/oracle_digital_assistant.zip
Binary file not shown.
Binary file modified examples/zips/osmanagement.zip
Binary file not shown.
Binary file modified examples/zips/osp_gateway.zip
Binary file not shown.
Binary file modified examples/zips/osub_billing_schedule.zip
Binary file not shown.
Binary file modified examples/zips/osub_organization_subscription.zip
Binary file not shown.
Binary file modified examples/zips/osub_subscription.zip
Binary file not shown.
Binary file modified examples/zips/osub_usage.zip
Binary file not shown.
Binary file modified examples/zips/pic.zip
Binary file not shown.
Binary file modified examples/zips/queue.zip
Binary file not shown.
Binary file modified examples/zips/recovery.zip
Binary file not shown.
Binary file modified examples/zips/resourcemanager.zip
Binary file not shown.
Binary file modified examples/zips/serviceManagerProxy.zip
Binary file not shown.
Binary file modified examples/zips/service_catalog.zip
Binary file not shown.
Binary file modified examples/zips/service_connector_hub.zip
Binary file not shown.
Binary file modified examples/zips/service_mesh.zip
Binary file not shown.
Binary file modified examples/zips/stack_monitoring.zip
Binary file not shown.
Binary file modified examples/zips/storage.zip
Binary file not shown.
Binary file modified examples/zips/streaming.zip
Binary file not shown.
Binary file modified examples/zips/usage_proxy.zip
Binary file not shown.
Binary file modified examples/zips/vault_secret.zip
Binary file not shown.
Binary file modified examples/zips/vbs_inst.zip
Binary file not shown.
Binary file modified examples/zips/visual_builder.zip
Binary file not shown.
Binary file modified examples/zips/vn_monitoring.zip
Binary file not shown.
Binary file modified examples/zips/vulnerability_scanning_service.zip
Binary file not shown.
Binary file modified examples/zips/web_app_acceleration.zip
Binary file not shown.
Binary file modified examples/zips/web_app_firewall.zip
Binary file not shown.
Binary file modified examples/zips/web_application_acceleration_and_security.zip
Binary file not shown.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ require (
github.com/mitchellh/mapstructure v1.1.2 // indirect
github.com/mitchellh/reflectwalk v1.0.2 // indirect
github.com/oklog/run v1.0.0 // indirect
github.com/oracle/oci-go-sdk/v65 v65.41.0
github.com/oracle/oci-go-sdk/v65 v65.41.1
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/sony/gobreaker v0.5.0 // indirect
github.com/ulikunitz/xz v0.5.8 // indirect
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -289,8 +289,8 @@ github.com/oklog/run v1.0.0/go.mod h1:dlhp/R75TPv97u0XWUtDeV/lRKWPKSdTuV0TZvrmrQ
github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=
github.com/onsi/ginkgo v1.7.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=
github.com/onsi/gomega v1.4.3/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY=
github.com/oracle/oci-go-sdk/v65 v65.41.0 h1:BTGVqeTo7gCp3ebVYxlm6ezhSLKl58E9hm3eTGN6M8M=
github.com/oracle/oci-go-sdk/v65 v65.41.0/go.mod h1:MXMLMzHnnd9wlpgadPkdlkZ9YrwQmCOmbX5kjVEJodw=
github.com/oracle/oci-go-sdk/v65 v65.41.1 h1:+lbosOyNiib3TGJDvLq1HwEAuFqkOjPJDIkyxM15WdQ=
github.com/oracle/oci-go-sdk/v65 v65.41.1/go.mod h1:MXMLMzHnnd9wlpgadPkdlkZ9YrwQmCOmbX5kjVEJodw=
github.com/pierrec/lz4 v2.0.5+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY=
github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
Expand Down
8 changes: 8 additions & 0 deletions internal/acctest/test_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -641,6 +641,8 @@ func PreCheck(t *testing.T) {
copy(envVarChecklist, requiredTestEnvVars)
if getEnvSettingWithDefaultVar("use_obo_token", "false") != "false" {
envVarChecklist = append(envVarChecklist, requiredOboTokenAuthEnvVars...)
} else if getEnvSettingWithBlankDefaultVar("auth") == "SecurityToken" {
envVarChecklist = append(envVarChecklist, requiredSecurityTokenAuthEnvVars...)
} else {
envVarChecklist = append(envVarChecklist, requiredKeyAuthEnvVars...)
}
Expand All @@ -656,6 +658,9 @@ func PreCheck(t *testing.T) {
var requiredTestEnvVars = []string{"compartment_ocid", "compartment_id_for_create", "compartment_id_for_update", "tags_import_if_exists"}
var requiredKeyAuthEnvVars = []string{"tenancy_ocid", "user_ocid", "fingerprint"}
var requiredOboTokenAuthEnvVars = []string{"tenancy_ocid", "obo_token"}

var requiredSecurityTokenAuthEnvVars = []string{"config_file_profile"}

var TestAccProvider *schema.Provider
var TestAccProviders map[string]*schema.Provider

Expand Down Expand Up @@ -719,6 +724,9 @@ func GetTestClients(data *schema.ResourceData) *tf_client.OracleClients {
d.Set("private_key_path", getEnvSettingWithBlankDefaultVar("private_key_path"))
d.Set("private_key_password", getEnvSettingWithBlankDefaultVar("private_key_password"))
d.Set("private_key", getEnvSettingWithBlankDefaultVar("private_key"))
} else if auth = getEnvSettingWithBlankDefaultVar("auth"); auth == globalvar.AuthSecurityToken {
d.Set("auth", globalvar.AuthSecurityToken)
d.Set("config_file_profile", getEnvSettingWithDefaultVar("config_file_profile", globalvar.SecurityTokenProfileForTest))
} else {
d.Set("auth", getEnvSettingWithDefaultVar("auth", auth))
}
Expand Down
39 changes: 39 additions & 0 deletions internal/acctest/test_helpers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -820,6 +820,45 @@ func TestUnitGetTestClients(t *testing.T) {
}
}

func TestUnitGetTestClientsSecurityToken(t *testing.T) {
r := &schema.Resource{
Schema: provider.SchemaMap(),
}
d := r.Data(nil)
os.Setenv("auth", globalvar.AuthSecurityToken)
getEnvSettingWithDefaultVar = func(key string, value string) string {
return value
}
getEnvSettingWithBlankDefaultVar = func(key string) string {
return "dummy_value"
}
tfProviderConfigVar = func(d *schema.ResourceData) (interface{}, error) {
return &tf_client.OracleClients{
Configuration: map[string]string{"auth": "SecurityToken"},
}, nil
}
type args struct {
data *schema.ResourceData
}
tests := []struct {
name string
args args
}{
{
name: "Test positive case",
args: args{
data: d,
},
},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
client := GetTestClients(tt.args.data)
assert.NotEmpty(t, client)
})
}
}

func TestUnitGetUpdatedRepresentationCopy(t *testing.T) {
auditEventResourceRepresentation := map[string]interface{}{
"end_time": Representation{RepType: Required, Create: `create`},
Expand Down
1 change: 1 addition & 0 deletions internal/globalvar/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,5 +81,6 @@ const (
const (
DebugTestSteps = "DEBUG_TEST_STEPS"
DebugTestStepsShowConfigOnly = "DEBUG_TEST_STEPS_SHOW_CONFIG_ONLY"
SecurityTokenProfileForTest = "terraform-federation-test"
)
const TerraformDocumentLink = "https://registry.terraform.io/providers/oracle/oci/latest/docs/"
4 changes: 2 additions & 2 deletions internal/globalvar/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"log"
)

const Version = "5.1.0"
const ReleaseDate = "2023-06-13"
const Version = "5.2.0"
const ReleaseDate = "2023-06-21"

func PrintVersion() {
log.Printf("[INFO] terraform-provider-oci %s\n", Version)
Expand Down
15 changes: 15 additions & 0 deletions internal/integrationtest/data_labeling_service_dataset_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,12 @@ var (
datasetLabelSetRepresentation = map[string]interface{}{
"items": acctest.RepresentationGroup{RepType: acctest.Required, Group: datasetLabelSetItemsRepresentation},
}

datasetInitialImportDatasetConfigurationRepresentation = map[string]interface{}{
"import_format": acctest.RepresentationGroup{RepType: acctest.Required, Group: datasetInitialImportDatasetConfigurationImportFormatRepresentation},
"import_metadata_path": acctest.RepresentationGroup{RepType: acctest.Required, Group: datasetInitialImportDatasetConfigurationImportMetadataPathRepresentation},
}

//datasetInitialRecordGenerationConfigurationRepresentation = map[string]interface{}{}
datasetLabelSetItemsRepresentation = map[string]interface{}{
"name": acctest.Representation{RepType: acctest.Required, Create: `name`, Update: `name2`},
Expand All @@ -90,6 +96,15 @@ var (
"name": acctest.Representation{RepType: acctest.Required, Create: objectstorageBucket},
"namespace": acctest.Representation{RepType: acctest.Required, Create: objectstorageNamespace},
}
datasetInitialImportDatasetConfigurationImportFormatRepresentation = map[string]interface{}{
"name": acctest.Representation{RepType: acctest.Required, Create: `JSONL_CONSOLIDATED`},
}
datasetInitialImportDatasetConfigurationImportMetadataPathRepresentation = map[string]interface{}{
"bucket": acctest.Representation{RepType: acctest.Required, Create: `bucket`},
"namespace": acctest.Representation{RepType: acctest.Required, Create: `namespace`},
"path": acctest.Representation{RepType: acctest.Required, Create: `path`},
"source_type": acctest.Representation{RepType: acctest.Required, Create: `OBJECT_STORAGE`},
}

objectstorageNamespace = "${data.oci_objectstorage_namespace.test_namespace.namespace}"
objectstorageBucket = "tf_dataset_objectstoragebucket"
Expand Down
Loading

0 comments on commit 99c3933

Please sign in to comment.