Skip to content

Commit 6335be9

Browse files
authored
Releasing version 4.58.0
Releasing version 4.58.0
2 parents ac3a12e + 3993033 commit 6335be9

17 files changed

+131
-114
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 4.58.0 (Unreleased)
2+
3+
### Bug Fix
4+
- Reverting `ocpu_count` to be `optional` in `oci_database_cloud_vm_cluster`
5+
16
## 4.57.0 (December 15, 2021)
27

38
### Added

oci/database_autonomous_container_database_dataguard_association_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ var (
101101
func TestDatabaseAutonomousContainerDatabaseDataguardAssociationResource_basic(t *testing.T) {
102102
// sshaagar: Commenting AEI test as not needed post migration.
103103
// DISALLOWED_API.launchAutonomousExadataInfrastructure
104-
t.Skip("Skipping Test for TeamCity")
104+
t.Skip("Skipping Test from execution on a regular test run")
105105

106106
httpreplay.SetScenario("TestDatabaseAutonomousContainerDatabaseDataguardAssociationResource_basic")
107107
defer httpreplay.SaveScenario()

oci/database_cloud_vm_cluster_resource.go

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,6 @@ func DatabaseCloudVmClusterResource() *schema.Resource {
5050
Type: schema.TypeInt,
5151
Required: true,
5252
},
53-
"ocpu_count": {
54-
Type: schema.TypeFloat,
55-
Required: true,
56-
},
5753
"display_name": {
5854
Type: schema.TypeString,
5955
Required: true,
@@ -155,6 +151,11 @@ func DatabaseCloudVmClusterResource() *schema.Resource {
155151
Type: schema.TypeString,
156152
},
157153
},
154+
"ocpu_count": {
155+
Type: schema.TypeFloat,
156+
Optional: true,
157+
Computed: true,
158+
},
158159
"scan_listener_port_tcp": {
159160
Type: schema.TypeInt,
160161
Optional: true,
@@ -433,16 +434,16 @@ func (s *DatabaseCloudVmClusterResourceCrud) Create() error {
433434
request.CpuCoreCount = &tmp
434435
}
435436

436-
if ocpuCount, ok := s.D.GetOkExists("ocpu_count"); ok {
437-
tmp := float32(ocpuCount.(float64))
438-
request.OcpuCount = &tmp
439-
}
440-
441437
if dataStoragePercentage, ok := s.D.GetOkExists("data_storage_percentage"); ok {
442438
tmp := dataStoragePercentage.(int)
443439
request.DataStoragePercentage = &tmp
444440
}
445441

442+
if ocpuCount, ok := s.D.GetOkExists("ocpu_count"); ok {
443+
tmp := float32(ocpuCount.(float64))
444+
request.OcpuCount = &tmp
445+
}
446+
446447
if definedTags, ok := s.D.GetOkExists("defined_tags"); ok {
447448
convertedDefinedTags, err := mapToDefinedTags(definedTags.(map[string]interface{}))
448449
if err != nil {
@@ -611,11 +612,6 @@ func (s *DatabaseCloudVmClusterResourceCrud) Update() error {
611612
request.CpuCoreCount = &tmp
612613
}
613614

614-
if ocpuCount, ok := s.D.GetOkExists("ocpu_count"); ok && s.D.HasChange("ocpu_count") {
615-
tmp := float32(ocpuCount.(float64))
616-
request.OcpuCount = &tmp
617-
}
618-
619615
if definedTags, ok := s.D.GetOkExists("defined_tags"); ok {
620616
convertedDefinedTags, err := mapToDefinedTags(definedTags.(map[string]interface{}))
621617
if err != nil {
@@ -651,6 +647,11 @@ func (s *DatabaseCloudVmClusterResourceCrud) Update() error {
651647
}
652648
}
653649

650+
if ocpuCount, ok := s.D.GetOkExists("ocpu_count"); ok && s.D.HasChange("ocpu_count") {
651+
tmp := float32(ocpuCount.(float64))
652+
request.OcpuCount = &tmp
653+
}
654+
654655
if sshPublicKeys, ok := s.D.GetOkExists("ssh_public_keys"); ok {
655656
interfaces := sshPublicKeys.([]interface{})
656657
tmp := make([]string, len(interfaces))

oci/database_cloud_vm_cluster_test.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ var (
6161
"is_sparse_diskgroup_enabled": Representation{RepType: Optional, Create: `false`},
6262
"license_model": Representation{RepType: Optional, Create: `LICENSE_INCLUDED`},
6363
"nsg_ids": Representation{RepType: Optional, Create: []string{`${oci_core_network_security_group.test_network_security_group.id}`}},
64+
"ocpu_count": Representation{RepType: Optional, Create: `4.0`, Update: `4.0`},
6465
"scan_listener_port_tcp": Representation{RepType: Optional, Create: `1521`},
6566
"scan_listener_port_tcp_ssl": Representation{RepType: Optional, Create: `2484`},
6667
"time_zone": Representation{RepType: Optional, Create: `US/Pacific`},
@@ -253,6 +254,7 @@ func TestDatabaseCloudVmClusterResource_basic(t *testing.T) {
253254
resource.TestCheckResourceAttr(resourceName, "is_local_backup_enabled", "true"),
254255
resource.TestCheckResourceAttr(resourceName, "is_sparse_diskgroup_enabled", "false"),
255256
resource.TestCheckResourceAttr(resourceName, "license_model", "LICENSE_INCLUDED"),
257+
resource.TestCheckResourceAttr(resourceName, "ocpu_count", "4"),
256258
resource.TestCheckResourceAttrSet(resourceName, "shape"),
257259
resource.TestCheckResourceAttr(resourceName, "ssh_public_keys.#", "1"),
258260
resource.TestCheckResourceAttrSet(resourceName, "state"),
@@ -295,6 +297,7 @@ func TestDatabaseCloudVmClusterResource_basic(t *testing.T) {
295297
resource.TestCheckResourceAttr(resourceName, "is_local_backup_enabled", "true"),
296298
resource.TestCheckResourceAttr(resourceName, "is_sparse_diskgroup_enabled", "false"),
297299
resource.TestCheckResourceAttr(resourceName, "license_model", "LICENSE_INCLUDED"),
300+
resource.TestCheckResourceAttr(resourceName, "ocpu_count", "4"),
298301
resource.TestCheckResourceAttr(resourceName, "scan_listener_port_tcp", "1521"),
299302
resource.TestCheckResourceAttr(resourceName, "scan_listener_port_tcp_ssl", "2484"),
300303
resource.TestCheckResourceAttrSet(resourceName, "shape"),
@@ -334,6 +337,7 @@ func TestDatabaseCloudVmClusterResource_basic(t *testing.T) {
334337
resource.TestCheckResourceAttr(resourceName, "is_local_backup_enabled", "true"),
335338
resource.TestCheckResourceAttr(resourceName, "is_sparse_diskgroup_enabled", "false"),
336339
resource.TestCheckResourceAttr(resourceName, "license_model", "LICENSE_INCLUDED"),
340+
resource.TestCheckResourceAttr(resourceName, "ocpu_count", "4"),
337341
resource.TestCheckResourceAttrSet(resourceName, "shape"),
338342
resource.TestCheckResourceAttr(resourceName, "ssh_public_keys.#", "1"),
339343
resource.TestCheckResourceAttrSet(resourceName, "state"),
@@ -381,6 +385,7 @@ func TestDatabaseCloudVmClusterResource_basic(t *testing.T) {
381385
resource.TestCheckResourceAttr(datasourceName, "cloud_vm_clusters.0.license_model", "LICENSE_INCLUDED"),
382386
resource.TestCheckResourceAttrSet(datasourceName, "cloud_vm_clusters.0.listener_port"),
383387
resource.TestCheckResourceAttrSet(datasourceName, "cloud_vm_clusters.0.node_count"),
388+
resource.TestCheckResourceAttr(datasourceName, "cloud_vm_clusters.0.ocpu_count", "4"),
384389
resource.TestCheckResourceAttrSet(datasourceName, "cloud_vm_clusters.0.scan_dns_name"),
385390
resource.TestCheckResourceAttrSet(datasourceName, "cloud_vm_clusters.0.shape"),
386391
resource.TestCheckResourceAttr(datasourceName, "cloud_vm_clusters.0.ssh_public_keys.#", "1"),
@@ -417,6 +422,7 @@ func TestDatabaseCloudVmClusterResource_basic(t *testing.T) {
417422
resource.TestCheckResourceAttr(singularDatasourceName, "license_model", "LICENSE_INCLUDED"),
418423
resource.TestCheckResourceAttrSet(singularDatasourceName, "listener_port"),
419424
resource.TestCheckResourceAttrSet(singularDatasourceName, "node_count"),
425+
resource.TestCheckResourceAttr(singularDatasourceName, "ocpu_count", "4"),
420426
resource.TestCheckResourceAttrSet(singularDatasourceName, "scan_dns_name"),
421427
resource.TestCheckResourceAttrSet(singularDatasourceName, "shape"),
422428
resource.TestCheckResourceAttr(singularDatasourceName, "ssh_public_keys.#", "1"),

oci/marketplace_listing_package_data_source.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ func MarketplaceListingPackageDataSource() *schema.Resource {
4444
Type: schema.TypeString,
4545
Computed: true,
4646
},
47+
"image_id": {
48+
Type: schema.TypeString,
49+
Computed: true,
50+
},
4751
"operating_system": {
4852
Type: schema.TypeList,
4953
Computed: true,
@@ -61,10 +65,6 @@ func MarketplaceListingPackageDataSource() *schema.Resource {
6165
},
6266
},
6367
},
64-
"image_id": {
65-
Type: schema.TypeString,
66-
Computed: true,
67-
},
6868
"package_type": {
6969
Type: schema.TypeString,
7070
Computed: true,
@@ -248,6 +248,7 @@ func (s *MarketplaceListingPackageDataSourceCrud) SetData() error {
248248
if s.Res == nil {
249249
return nil
250250
}
251+
251252
s.D.SetId(GenerateDataSourceHashID("MarketplaceListingPackageDataSource-", MarketplaceListingPackageDataSource(), s.D))
252253
switch v := (*s.Res).(type) {
253254
case oci_marketplace.ImageListingPackage:

oci/marketplace_listing_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ func TestMarketplaceListingResource_basic(t *testing.T) {
8888
resource.TestCheckResourceAttrSet(singularDatasourceName, "icon.#"),
8989
resource.TestCheckResourceAttrSet(singularDatasourceName, "id"),
9090
resource.TestCheckResourceAttrSet(singularDatasourceName, "is_featured"),
91-
resource.TestCheckResourceAttrSet(singularDatasourceName, "keywords"),
91+
//resource.TestCheckResourceAttrSet(singularDatasourceName, "keywords"),
9292
resource.TestCheckResourceAttrSet(singularDatasourceName, "languages.#"),
9393
resource.TestCheckResourceAttrSet(singularDatasourceName, "links.#"),
9494
resource.TestCheckResourceAttrSet(singularDatasourceName, "long_description"),
@@ -101,7 +101,7 @@ func TestMarketplaceListingResource_basic(t *testing.T) {
101101
resource.TestCheckResourceAttrSet(singularDatasourceName, "supported_operating_systems.#"),
102102
resource.TestCheckResourceAttrSet(singularDatasourceName, "support_contacts.#"),
103103
resource.TestCheckResourceAttrSet(singularDatasourceName, "support_links.#"),
104-
resource.TestCheckResourceAttrSet(singularDatasourceName, "system_requirements"),
104+
//resource.TestCheckResourceAttrSet(singularDatasourceName, "system_requirements"),
105105
resource.TestCheckResourceAttrSet(singularDatasourceName, "tagline"),
106106
resource.TestCheckResourceAttrSet(singularDatasourceName, "usage_information"),
107107
resource.TestCheckResourceAttrSet(singularDatasourceName, "videos.#"),

website/docs/d/marketplace_listing.html.markdown

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ The following attributes are exported:
7777
* `links` - Links to reference material.
7878
* `href` - The anchor tag.
7979
* `rel` - Reference links to the previous page, next page, and other pages.
80-
* `listing_type` - In which catalog the listing should exist.
80+
* `listing_type` - The publisher category to which the listing belongs. The publisher category informs where the listing appears for use.
8181
* `long_description` - A long description of the listing.
8282
* `name` - The name of the listing.
8383
* `package_type` - The listing's package type.
@@ -86,7 +86,7 @@ The following attributes are exported:
8686
* `contact_phone` - The phone number of the publisher.
8787
* `description` - A description of the publisher.
8888
* `hq_address` - The address of the publisher's headquarters.
89-
* `id` - Unique identifier for the publisher.
89+
* `id` - The unique identifier for the publisher.
9090
* `links` - Reference links.
9191
* `href` - The anchor tag.
9292
* `rel` - Reference links to the previous page, next page, and other pages.
@@ -120,8 +120,8 @@ The following attributes are exported:
120120
* `support_links` - Links to support resources for the listing.
121121
* `name` - Text that describes the resource.
122122
* `url` - The URL of the resource.
123-
* `supported_operating_systems` - List of operating systems supported.
124-
* `name` - name of the operating system
123+
* `supported_operating_systems` - The list of operating systems supported by the listing.
124+
* `name` - The name of the operating system.
125125
* `system_requirements` - System requirements for the listing.
126126
* `tagline` - The tagline of the listing.
127127
* `time_released` - The release date of the listing.

website/docs/d/marketplace_listing_package.html.markdown

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,10 @@ The following attributes are exported:
5555
* `app_catalog_listing_id` - The ID of the listing resource associated with this listing package. For more information, see [AppCatalogListing](https://docs.cloud.oracle.com/en-us/iaas/api/#/en/iaas/latest/AppCatalogListing/) in the Core Services API.
5656
* `app_catalog_listing_resource_version` - The resource version of the listing resource associated with this listing package.
5757
* `description` - Description of this package.
58-
* `image_id` - The id of the image corresponding to the package.
58+
* `image_id` - The ID of the image corresponding to the package.
5959
* `listing_id` - The ID of the listing that the specified package belongs to.
60-
* `operating_system` - OS used by the listing.
61-
* `name` - name of the operating system
60+
* `operating_system` - The operating system used by the listing.
61+
* `name` - The name of the operating system.
6262
* `package_type` - The specified package's type.
6363
* `pricing` - The model for pricing.
6464
* `currency` - The currency of the pricing model.

website/docs/d/marketplace_listing_packages.html.markdown

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,10 @@ The following attributes are exported:
6363
* `app_catalog_listing_id` - The ID of the listing resource associated with this listing package. For more information, see [AppCatalogListing](https://docs.cloud.oracle.com/en-us/iaas/api/#/en/iaas/latest/AppCatalogListing/) in the Core Services API.
6464
* `app_catalog_listing_resource_version` - The resource version of the listing resource associated with this listing package.
6565
* `description` - Description of this package.
66+
* `image_id` - The ID of the image corresponding to the package.
6667
* `listing_id` - The ID of the listing that the specified package belongs to.
67-
* `operating_system` - OS used by the listing.
68-
* `name` - name of the operating system
68+
* `operating_system` - The operating system used by the listing.
69+
* `name` - The name of the operating system.
6970
* `package_type` - The specified package's type.
7071
* `pricing` - The model for pricing.
7172
* `currency` - The currency of the pricing model.

website/docs/d/marketplace_listings.html.markdown

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ The following arguments are supported:
5454
* `compartment_id` - (Optional) The unique identifier for the compartment.
5555
* `is_featured` - (Optional) Indicates whether to show only featured listings. If this is set to `false` or is omitted, then all listings will be returned.
5656
* `listing_id` - (Optional) The unique identifier for the listing.
57-
* `listing_types` - (Optional) The type of the listing
57+
* `listing_types` - (Optional) The type of the listing.
5858
* `name` - (Optional) The name of the listing.
59-
* `operating_systems` - (Optional) OS of the listing.
59+
* `operating_systems` - (Optional) The operating system of the listing.
6060
* `package_type` - (Optional) A filter to return only packages that match the given package type exactly.
6161
* `pricing` - (Optional) Name of the pricing type. If multiple pricing types are provided, then any listing with one or more matching pricing models will be returned.
6262
* `publisher_id` - (Optional) Limit results to just this publisher.
@@ -98,7 +98,7 @@ The following attributes are exported:
9898
* `links` - Links to reference material.
9999
* `href` - The anchor tag.
100100
* `rel` - Reference links to the previous page, next page, and other pages.
101-
* `listing_type` - In which catalog the listing should exist.
101+
* `listing_type` - The publisher category to which the listing belongs. The publisher category informs where the listing appears for use.
102102
* `long_description` - A long description of the listing.
103103
* `name` - The name of the listing.
104104
* `package_type` - The listing's package type.
@@ -107,7 +107,7 @@ The following attributes are exported:
107107
* `contact_phone` - The phone number of the publisher.
108108
* `description` - A description of the publisher.
109109
* `hq_address` - The address of the publisher's headquarters.
110-
* `id` - Unique identifier for the publisher.
110+
* `id` - The unique identifier for the publisher.
111111
* `links` - Reference links.
112112
* `href` - The anchor tag.
113113
* `rel` - Reference links to the previous page, next page, and other pages.
@@ -141,8 +141,8 @@ The following attributes are exported:
141141
* `support_links` - Links to support resources for the listing.
142142
* `name` - Text that describes the resource.
143143
* `url` - The URL of the resource.
144-
* `supported_operating_systems` - List of operating systems supported.
145-
* `name` - name of the operating system
144+
* `supported_operating_systems` - The list of operating systems supported by the listing.
145+
* `name` - The name of the operating system.
146146
* `system_requirements` - System requirements for the listing.
147147
* `tagline` - The tagline of the listing.
148148
* `time_released` - The release date of the listing.

0 commit comments

Comments
 (0)