Changelog updates for release (#3803)
* Changelog updates for relelase * Update with API version * quick update
This commit is contained in:
parent
648f406257
commit
b752357dc5
@ -1,6 +1,6 @@
|
||||
# Release History
|
||||
|
||||
## 4.1.0-beta.1 (Unreleased)
|
||||
## 4.1.0-beta.1 (2022-07-07)
|
||||
|
||||
### Features Added
|
||||
|
||||
@ -8,7 +8,7 @@
|
||||
|
||||
### Breaking Changes
|
||||
|
||||
- Removed ServiceVersion type, replaced with Version field in the CertificateClientOptions type.
|
||||
- Removed ServiceVersion type, replaced with ApiVersion field in the CertificateClientOptions type.
|
||||
|
||||
## 4.0.0 (2022-06-07)
|
||||
|
||||
|
||||
@ -28,13 +28,7 @@ namespace Azure { namespace Security { namespace KeyVault { namespace Certificat
|
||||
* @brief Service Version used.
|
||||
*
|
||||
*/
|
||||
std::string Version;
|
||||
|
||||
/**
|
||||
* @brief Construct a new Certificate Client Options object.
|
||||
*
|
||||
*/
|
||||
CertificateClientOptions() : Azure::Core::_internal::ClientOptions() { Version = "7.3"; }
|
||||
const std::string ApiVersion{"7.3"};
|
||||
};
|
||||
|
||||
}}}} // namespace Azure::Security::KeyVault::Certificates
|
||||
|
||||
@ -66,9 +66,9 @@ CertificateClient::CertificateClient(
|
||||
std::string const& vaultUrl,
|
||||
std::shared_ptr<Core::Credentials::TokenCredential const> credential,
|
||||
CertificateClientOptions options)
|
||||
: m_vaultUrl(vaultUrl), m_apiVersion(options.Version)
|
||||
: m_vaultUrl(vaultUrl), m_apiVersion(options.ApiVersion)
|
||||
{
|
||||
auto apiVersion = options.Version;
|
||||
auto apiVersion = options.ApiVersion;
|
||||
|
||||
std::vector<std::unique_ptr<HttpPolicy>> perRetrypolicies;
|
||||
{
|
||||
|
||||
@ -893,17 +893,8 @@ TEST_F(KeyVaultCertificateClientTest, ServiceVersion)
|
||||
{
|
||||
auto credential
|
||||
= std::make_shared<Azure::Identity::ClientSecretCredential>("tenantID", "AppId", "SecretId");
|
||||
{
|
||||
// 7.3
|
||||
EXPECT_NO_THROW(auto options = CertificateClientOptions(); CertificateClient certificateClient(
|
||||
"http://account.vault.azure.net", credential, options);
|
||||
EXPECT_EQ(options.Version, "7.3"););
|
||||
}
|
||||
{
|
||||
// arbitrary version
|
||||
EXPECT_NO_THROW(
|
||||
auto options = CertificateClientOptions(); options.Version = "1.0";
|
||||
CertificateClient certificateClient("http://account.vault.azure.net", credential, options);
|
||||
EXPECT_EQ(options.Version, "1.0"););
|
||||
}
|
||||
// 7.3
|
||||
EXPECT_NO_THROW(auto options = CertificateClientOptions(); CertificateClient certificateClient(
|
||||
"http://account.vault.azure.net", credential, options);
|
||||
EXPECT_EQ(options.ApiVersion, "7.3"););
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
# Release History
|
||||
|
||||
## 4.3.0-beta.1 (Unreleased)
|
||||
## 4.3.0-beta.1 (2022-07-07)
|
||||
|
||||
### Features Added
|
||||
|
||||
@ -8,7 +8,7 @@
|
||||
|
||||
### Breaking Changes
|
||||
|
||||
- Removed ServiceVersion type, replaced with Version field in the KeyClientOptions type.
|
||||
- Removed ServiceVersion type, replaced with ApiVersion field in the KeyClientOptions type.
|
||||
|
||||
|
||||
## 4.2.0 (2021-10-05)
|
||||
|
||||
@ -53,13 +53,7 @@ namespace Azure { namespace Security { namespace KeyVault { namespace Keys {
|
||||
* @brief Service Version used.
|
||||
*
|
||||
*/
|
||||
std::string Version;
|
||||
|
||||
/**
|
||||
* @brief Construct a new Key Client Options object.
|
||||
*
|
||||
*/
|
||||
KeyClientOptions() : Azure::Core::_internal::ClientOptions() { Version = "7.3"; }
|
||||
const std::string ApiVersion{"7.3"};
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
@ -68,7 +68,7 @@ KeyClient::KeyClient(
|
||||
std::string const& vaultUrl,
|
||||
std::shared_ptr<Core::Credentials::TokenCredential const> credential,
|
||||
KeyClientOptions options)
|
||||
: m_vaultUrl(vaultUrl), m_apiVersion(options.Version)
|
||||
: m_vaultUrl(vaultUrl), m_apiVersion(options.ApiVersion)
|
||||
{
|
||||
std::vector<std::unique_ptr<HttpPolicy>> perRetrypolicies;
|
||||
{
|
||||
|
||||
@ -32,18 +32,10 @@ TEST(KeyVaultKeyClientUnitTest, ServiceVersion)
|
||||
{
|
||||
auto credential
|
||||
= std::make_shared<Azure::Identity::ClientSecretCredential>("tenantID", "AppId", "SecretId");
|
||||
{
|
||||
// 7.3
|
||||
EXPECT_NO_THROW(auto options = KeyClientOptions();
|
||||
KeyClient keyClient("http://account.vault.azure.net", credential, options);
|
||||
EXPECT_EQ(options.Version, "7.3"););
|
||||
}
|
||||
{
|
||||
// arbitrary version
|
||||
EXPECT_NO_THROW(auto options = KeyClientOptions(); options.Version = "1.0";
|
||||
KeyClient keyClient("http://account.vault.azure.net", credential, options);
|
||||
EXPECT_EQ(options.Version, "1.0"););
|
||||
}
|
||||
// 7.3
|
||||
EXPECT_NO_THROW(auto options = KeyClientOptions();
|
||||
KeyClient keyClient("http://account.vault.azure.net", credential, options);
|
||||
EXPECT_EQ(options.ApiVersion, "7.3"););
|
||||
}
|
||||
|
||||
TEST(KeyVaultKeyClientUnitTest, GetUrl)
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
# Release History
|
||||
|
||||
## 4.1.0-beta.1 (Unreleased)
|
||||
## 4.1.0-beta.1 (2022-07-07)
|
||||
|
||||
### Features Added
|
||||
|
||||
@ -8,7 +8,7 @@
|
||||
|
||||
### Breaking Changes
|
||||
|
||||
- Removed ServiceVersion type, replaced with Version field in the SecretClientOptions type.
|
||||
- Removed ServiceVersion type, replaced with ApiVersion field in the SecretClientOptions type.
|
||||
|
||||
## 4.0.0 (2022-06-07)
|
||||
|
||||
|
||||
@ -21,13 +21,7 @@ namespace Azure { namespace Security { namespace KeyVault { namespace Secrets {
|
||||
* @brief Service Version used.
|
||||
*
|
||||
*/
|
||||
std::string Version;
|
||||
|
||||
/**
|
||||
* @brief Construct a new Secret Client Options object.
|
||||
*
|
||||
*/
|
||||
SecretClientOptions() : Azure::Core::_internal::ClientOptions() { Version = "7.3"; }
|
||||
const std::string ApiVersion{"7.3"};
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
@ -61,9 +61,9 @@ SecretClient::SecretClient(
|
||||
std::string const& vaultUrl,
|
||||
std::shared_ptr<Core::Credentials::TokenCredential const> credential,
|
||||
SecretClientOptions options)
|
||||
: m_vaultUrl(vaultUrl), m_apiVersion(options.Version)
|
||||
: m_vaultUrl(vaultUrl), m_apiVersion(options.ApiVersion)
|
||||
{
|
||||
auto apiVersion = options.Version;
|
||||
auto apiVersion = options.ApiVersion;
|
||||
Azure::Core::Url url(vaultUrl);
|
||||
|
||||
std::vector<std::unique_ptr<HttpPolicy>> perRetrypolicies;
|
||||
|
||||
@ -28,19 +28,10 @@ TEST(SecretClient, ServiceVersion)
|
||||
{
|
||||
auto credential
|
||||
= std::make_shared<Azure::Identity::ClientSecretCredential>("tenantID", "AppId", "SecretId");
|
||||
{
|
||||
// 7.3
|
||||
EXPECT_NO_THROW(auto options = SecretClientOptions(); SecretClient SecretClient(
|
||||
"http://account.vault.azure.net", credential, options);
|
||||
EXPECT_EQ(options.Version, "7.3"););
|
||||
}
|
||||
{
|
||||
// arbitrary version
|
||||
EXPECT_NO_THROW(
|
||||
auto options = SecretClientOptions(); options.Version = "1.0";
|
||||
SecretClient secretClient("http://account.vault.azure.net", credential, options);
|
||||
EXPECT_EQ(options.Version, "1.0"););
|
||||
}
|
||||
// 7.3
|
||||
EXPECT_NO_THROW(auto options = SecretClientOptions();
|
||||
SecretClient SecretClient("http://account.vault.azure.net", credential, options);
|
||||
EXPECT_EQ(options.ApiVersion, "7.3"););
|
||||
}
|
||||
|
||||
TEST(SecretClient, GetUrl)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user