Skip to content

Commit

Permalink
Releasing version 25.0.0
Browse files Browse the repository at this point in the history
Releasing version 25.0.0
  • Loading branch information
github-anurag committed Sep 7, 2021
2 parents c9cda53 + d6dd363 commit 8f1947d
Show file tree
Hide file tree
Showing 154 changed files with 5,735 additions and 108 deletions.
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,20 @@ All notable changes to this project will be documented in this file.

The format is based on Keep a [Changelog](http://keepachangelog.com/).

## 25.0.0 - 2021-09-07
### Added
- Support for terraform advanced options (detailed log level, refresh, and parallelism) on jobs in the Resource Manager service
- Support for forced cancellation when cancelling jobs in the Resource Manager service
- Support for getting the detailed log content of a job in the Resource Manager service
- Support for provider information in the responses of list operations in the Management Dashboard service
- Support for scheduled jobs in Database Management service
- Support for monitoring and management of OCI virtual machine, bare metal, and ExaCS databases in the Database Management service
- Support for a unified way of managing both external and cloud databases in the Database Management service
- Support for metrics and Performance Hub on virtual machine, bare metal, and ExaCS databases in the Database Management service

### Breaking Changes
- The property `OciSplatGeneratedOcids` was removed from `CreateTemplateRequest` in the Resource Manager service

## 24.2.0 - 2021-08-31
### Added
- Support for Oracle Analytics Cloud and OCI Vault integration on connections in the Data Catalog service
Expand Down
4 changes: 2 additions & 2 deletions Common/Src/Version.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ namespace Oci.Common
{
public class Version
{
public static string MAJOR = "24";
public static string MINOR = "2";
public static string MAJOR = "25";
public static string MINOR = "0";
public static string PATCH = "0";
public static string TAG = "";

Expand Down
3 changes: 3 additions & 0 deletions Commontests/OCI.DotNetSDK.Commontests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,8 @@
<Content Include="cacert.pem">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="Regions.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
</ItemGroup>
</Project>
41 changes: 41 additions & 0 deletions Commontests/RealmTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,13 @@
*/

using System;
using System.IO;
using System.Diagnostics.CodeAnalysis;
using System.Collections.Generic;

using Oci.Common.Model;

using Newtonsoft.Json;
using Xunit;

namespace Oci.Common
Expand Down Expand Up @@ -76,5 +81,41 @@ public void RegisterNewRealm()
Assert.Equal(NEW_REALM_ID, realm.RealmId);
Assert.Equal(NEW_SECOND_LEVEL_DOMAIN, realm.SecondLevelDomain);
}

[Fact]
[Trait("Category", "Unit")]
[DisplayTestMethodNameAttribute]
public void ValidateAllKnownRealms()
{
var regionsJsonFile = "Regions.json";
Assert.True(File.Exists(regionsJsonFile), $"Regions json file \"{regionsJsonFile}\" not found.");
try
{
var content = File.ReadAllText(regionsJsonFile);
Assert.True(!String.IsNullOrEmpty(content), $"Regions json file \"{regionsJsonFile}\" is empty.");

var allRegions = JsonConvert.DeserializeObject<List<RegionSchema>>(content);
Assert.True(allRegions != null, $"Failed to get regions information from \"{regionsJsonFile}\".");
List<string> realms = new List<string>();
foreach (var region in Region.Values())
{
if (!realms.Contains(region.Realm.RealmId.ToLower()))
{
realms.Add(region.Realm.RealmId.ToLower());
}
}
foreach (RegionSchema region in allRegions)
{
if (region != null && region.isValid())
{
Assert.True(realms.Contains(region.realmKey.ToLower()), $"Realm {region.realmKey} not found in known regions.");
}
}
}
catch (Exception e)
{
logger.Warn($"Exception in ValidateAllKnownRegions(): {e}");
}
}
}
}
34 changes: 34 additions & 0 deletions Commontests/RegionTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
using Oci.Common.Model;
using Oci.Common.Utils;

using Newtonsoft.Json;
using Xunit;

[assembly: CollectionBehavior(DisableTestParallelization = true)]
Expand Down Expand Up @@ -186,6 +187,39 @@ public void FromRegionIdOrCodeExceptionTest()
Assert.Throws<ArgumentException>(() => Region.FromRegionCodeOrId("invalid"));
}

[Fact]
[Trait("Category", "Unit")]
[DisplayTestMethodNameAttribute]
public void ValidateAllKnownRegions()
{
var regionsJsonFile = "Regions.json";
Assert.True(File.Exists(regionsJsonFile), $"Regions json file \"{regionsJsonFile}\" not found.");
try
{
var content = File.ReadAllText(regionsJsonFile);
Assert.True(!String.IsNullOrEmpty(content), $"Regions json file \"{regionsJsonFile}\" is empty.");

var allRegions = JsonConvert.DeserializeObject<List<RegionSchema>>(content);
Assert.True(allRegions != null, $"Failed to get regions information from \"{regionsJsonFile}\".");
List<string> region_ids = new List<string>();
foreach (var region in Region.Values())
{
region_ids.Add(region.RegionId.ToLower());
}
foreach (RegionSchema region in allRegions)
{
if (region != null && region.isValid())
{
Assert.True(region_ids.Contains(region.regionIdentifier.ToLower()), $"Region {region.regionIdentifier} not found in known regions.");
}
}
}
catch (Exception e)
{
logger.Warn($"Exception in ValidateAllKnownRegions(): {e}");
}
}

private bool AreRegionsSame(Region r1, Region r2)
{
if (!r1.RegionId.Equals(r2.RegionId))
Expand Down
188 changes: 188 additions & 0 deletions Commontests/Regions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,188 @@
[
{
"regionKey": "yny",
"realmDomainComponent": "oraclecloud.com",
"regionIdentifier": "ap-chuncheon-1",
"realmKey": "OC1"
},
{
"regionKey": "hyd",
"realmDomainComponent": "oraclecloud.com",
"regionIdentifier": "ap-hyderabad-1",
"realmKey": "OC1"
},
{
"regionKey": "mel",
"realmDomainComponent": "oraclecloud.com",
"regionIdentifier": "ap-melbourne-1",
"realmKey": "OC1"
},
{
"regionKey": "bom",
"realmDomainComponent": "oraclecloud.com",
"regionIdentifier": "ap-mumbai-1",
"realmKey": "OC1"
},
{
"regionKey": "kix",
"realmDomainComponent": "oraclecloud.com",
"regionIdentifier": "ap-osaka-1",
"realmKey": "OC1"
},
{
"regionKey": "icn",
"realmDomainComponent": "oraclecloud.com",
"regionIdentifier": "ap-seoul-1",
"realmKey": "OC1"
},
{
"regionKey": "syd",
"realmDomainComponent": "oraclecloud.com",
"regionIdentifier": "ap-sydney-1",
"realmKey": "OC1"
},
{
"regionKey": "nrt",
"realmDomainComponent": "oraclecloud.com",
"regionIdentifier": "ap-tokyo-1",
"realmKey": "OC1"
},
{
"regionKey": "yul",
"realmDomainComponent": "oraclecloud.com",
"regionIdentifier": "ca-montreal-1",
"realmKey": "OC1"
},
{
"regionKey": "yyz",
"realmDomainComponent": "oraclecloud.com",
"regionIdentifier": "ca-toronto-1",
"realmKey": "OC1"
},
{
"regionKey": "ams",
"realmDomainComponent": "oraclecloud.com",
"regionIdentifier": "eu-amsterdam-1",
"realmKey": "OC1"
},
{
"regionKey": "fra",
"realmDomainComponent": "oraclecloud.com",
"regionIdentifier": "eu-frankfurt-1",
"realmKey": "OC1"
},
{
"regionKey": "zrh",
"realmDomainComponent": "oraclecloud.com",
"regionIdentifier": "eu-zurich-1",
"realmKey": "OC1"
},
{
"regionKey": "jed",
"realmDomainComponent": "oraclecloud.com",
"regionIdentifier": "me-jeddah-1",
"realmKey": "OC1"
},
{
"regionKey": "gru",
"realmDomainComponent": "oraclecloud.com",
"regionIdentifier": "sa-saopaulo-1",
"realmKey": "OC1"
},
{
"regionKey": "lhr",
"realmDomainComponent": "oraclecloud.com",
"regionIdentifier": "uk-london-1",
"realmKey": "OC1"
},
{
"regionKey": "iad",
"realmDomainComponent": "oraclecloud.com",
"regionIdentifier": "us-ashburn-1",
"realmKey": "OC1"
},
{
"regionKey": "phx",
"realmDomainComponent": "oraclecloud.com",
"regionIdentifier": "us-phoenix-1",
"realmKey": "OC1"
},
{
"regionKey": "sjc",
"realmDomainComponent": "oraclecloud.com",
"regionIdentifier": "us-sanjose-1",
"realmKey": "OC1"
},
{
"regionKey": "dxb",
"realmDomainComponent": "oraclecloud.com",
"regionIdentifier": "me-dubai-1",
"realmKey": "OC1"
},
{
"regionKey": "cwl",
"realmDomainComponent": "oraclecloud.com",
"regionIdentifier": "uk-cardiff-1",
"realmKey": "OC1"
},
{
"regionKey": "scl",
"realmDomainComponent": "oraclecloud.com",
"regionIdentifier": "sa-santiago-1",
"realmKey": "OC1"
},
{
"regionKey": "vcp",
"realmDomainComponent": "oraclecloud.com",
"regionIdentifier": "sa-vinhedo-1",
"realmKey": "OC1"
},
{
"regionKey": "lfi",
"realmDomainComponent": "oraclegovcloud.com",
"regionIdentifier": "us-langley-1",
"realmKey": "OC2"
},
{
"regionKey": "luf",
"realmDomainComponent": "oraclegovcloud.com",
"regionIdentifier": "us-luke-1",
"realmKey": "OC2"
},
{
"regionKey": "ric",
"realmDomainComponent": "oraclegovcloud.com",
"regionIdentifier": "us-gov-ashburn-1",
"realmKey": "OC3"
},
{
"regionKey": "pia",
"realmDomainComponent": "oraclegovcloud.com",
"regionIdentifier": "us-gov-chicago-1",
"realmKey": "OC3"
},
{
"regionKey": "tus",
"realmDomainComponent": "oraclegovcloud.com",
"regionIdentifier": "us-gov-phoenix-1",
"realmKey": "OC3"
},
{
"regionKey": "ltn",
"realmDomainComponent": "oraclegovcloud.uk",
"regionIdentifier": "uk-gov-london-1",
"realmKey": "OC4"
},
{
"regionKey": "brs",
"realmDomainComponent": "oraclegovcloud.uk",
"regionIdentifier": "uk-gov-cardiff-1",
"realmKey": "OC4"
},
{
"regionKey": "nja",
"realmDomainComponent": "oraclecloud8.com",
"regionIdentifier": "ap-chiyoda-1",
"realmKey": "OC8"
}
]

0 comments on commit 8f1947d

Please sign in to comment.