Commit Graph

259 Commits

Author SHA1 Message Date
Ahson Khan
b3497f8c16
Add a Hash base class to Azure::Core and redesign Md5 to derive from it. (#1632)
* Add MD5 hashing APIs to Azure::Core available from azure/core/md5.hpp.

* Add simplified header test for md5 and base64.

* Add changelog entry.

* Remove unnecessary include.

* Address feedback - add back ptr, length APIs.

* Address PR feedback - docs and typo fixes.

* Add a Hash base class and redesign Md5 to derive from it.

* Add test for call to final on empty instance.

* Remove old file which got renamed to hash.hpp.

* Remove md5.hpp file references.

* Address PR feedback - move to crypto, remove virtual, and misc.
2021-02-08 18:31:12 -08:00
Victor Vazquez
1f849ec384
fix docs (#1633) 2021-02-08 17:13:30 -08:00
Ahson Khan
4d3ecf39e7
Use the port defined in the URL when setting up the transport adapter usage. (#1611)
* Use the port defined in the URL when setting up the transport adapter usage.

* Fix typo when getting the request object.
2021-02-08 16:51:27 -08:00
Ahson Khan
568d4bcc4e
Add MD5 hashing APIs to Azure::Core available from azure/core/md5.hpp. (#1617)
* Add MD5 hashing APIs to Azure::Core available from azure/core/md5.hpp.

* Add simplified header test for md5 and base64.

* Add changelog entry.

* Remove unnecessary include.

* Address feedback - add back ptr, length APIs.

* Address PR feedback - docs and typo fixes.
2021-02-08 15:34:41 -08:00
Anton Kolesnyk
8389e86567
Add VcPkg OpenSSL dependency for Azure::Core (#1620)
* Add VcPkg OpenSSL dependency for Azure::Core

* OpenSSL is not required on UWP either

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2021-02-06 18:55:59 -08:00
Anton Kolesnyk
79864623f0
Tests: DateTime: add TimeRoundtrip test (#1613)
Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2021-02-05 16:21:24 -08:00
Rick Winter
a57cb349eb
Add context tests for ThrowIfCancelled and ApplicationContext (#1602) 2021-02-05 19:12:47 +00:00
Victor Vazquez
43aa7ff7ad
[Perf Framework] (#1528)
perf test infrastructure
2021-02-04 19:51:35 -08:00
Rick Winter
87cce3910f
Add conditional request support (#1592)
- MatchConditions
- RequestConditions
2021-02-04 19:46:12 +00:00
Sylvain Joubert
2f250f3968
Fix math for bearer token refresh time (#1593) 2021-02-04 03:29:42 -08:00
Azure SDK Bot
1c86f14cc8
Increment package version after release of azure-core (#1574) 2021-02-03 08:25:48 -08:00
Victor Vazquez
9b7849c155
changelog for release Core Beta 5 and Identity Beta 3 (#1572)
* changelog for release

* missing changelog entries
2021-02-02 18:15:33 -08:00
Anton Kolesnyk
06d66492eb
Add TokenRequestOptions and ClientSecretCredentialOptions (#1527)
* Add GetTokenOptions
2021-02-02 17:09:33 -08:00
Anton Kolesnyk
6b9b57815e
Follow suggestions for improving azure-core CMake files (#1534)
Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2021-02-02 15:03:19 -08:00
Anton Kolesnyk
4f0ee2eaa2
Update changelog for the 'retry-after' fix (#1535) 2021-02-02 14:11:17 -08:00
Anton Kolesnyk
376cca6acd
Changelog: add () after function names. (#1569)
Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2021-02-02 13:57:18 -08:00
Victor Vazquez
c6b919ac2a
release mode test for Linux with test (#1560)
* release mode test for Linux with test

* Fix GCC warning when building in Release configuration

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2021-02-01 21:43:40 -08:00
Rick Winter
72253e0957
CMakeLists for each Service (#1524)
* Add service level CMakeLists
* Fix CMake minimum version
2021-01-29 21:53:16 -08:00
Sylvain Joubert
8684be0970
Fix Retry-After header check (#1522)
This failed to be triggered because the response has all its headers as lower case
2021-01-29 12:51:26 -08:00
JinmingHu
a858a77ac0
make defaultNonUrlEncodeChars const (#1502) 2021-01-29 09:55:04 +08:00
Victor Vazquez
3b9a465a4f
[Keyvault] CreateKey API (#1459)
* mandatory data for create

* createKey API added with partial serialize/de-serialize
2021-01-28 10:46:07 -08:00
Victor Vazquez
60a4792a0f
Make cmake modules consistent names (#1498)
* AzureVersion

* Vcpkg

* coverage

* missing renames

* missing renames
2021-01-27 18:55:46 -08:00
Ahson Khan
af844a1272
Do not pass a placeholder user-agent string as a fallback when using WinHttp (#1495)
Verified the behavior is now as expected when telemetry policy is turned off.

**Before:**
![image](https://user-images.githubusercontent.com/6527137/106042018-65d64e00-6091-11eb-8741-c6c42cb028d3.png)

**After:**
![image](https://user-images.githubusercontent.com/6527137/106042157-86060d00-6091-11eb-9699-929128eb6ea1.png)
2021-01-27 20:31:53 +00:00
Rick Winter
453d39c577
Fix const naming in Core to follow Guidelines (#1481)
* Fix grammar in doxygen comments

* Update constants to follow the Guidelines
  Remove 'c_' prefixes
2021-01-27 11:56:30 -08:00
Anton Kolesnyk
a2bfa7acf1
Move ValuePolicy from Details namespace to Internal (#1494)
Follow up on #1458.
2021-01-27 19:29:20 +00:00
Anton Kolesnyk
aeb386f286
Add ValuePolicy (#1458) 2021-01-27 10:51:53 -08:00
Victor Vazquez
6c3aeed35c
Json unit tests (#1464)
Adding json unit tests
2021-01-27 10:07:12 -08:00
Daniel Jurek
583120d3ef
Add timeout parameter to live test job (#1478) 2021-01-26 15:04:37 -08:00
Rick Winter
50a4186d96
Add support for HTTP Etag to Azure::Core (#1428)
* Add ETag class
2021-01-26 12:04:34 -08:00
Victor Vazquez
ccccd115f8
Adding missing comments in curl source (#1440)
fixes: #1416
2021-01-26 08:19:09 +00:00
JinmingHu
ae53a38c7a
Support poll operations in blob service (#1461)
* operation<T>

* add test cases

* changelog

* fix build error

* add virtual destructor

* fix build error

* use Azure::Core::RequestFailedException
2021-01-26 16:00:20 +08:00
Victor Vazquez
5af134b103
missing format (#1437)
Adding clang-format to json.hpp.  Not sure how it passed the gates before. I might need to revisit if the clang-format check is working
2021-01-22 19:38:59 +00:00
Victor Vazquez
385a7887a2
Moving json to internal (#1378)
Wrap nlohmann json lib inside core internal api
2021-01-22 11:12:27 -08:00
Anton Kolesnyk
15182d5a34
Fix link errors when producing a DLL, add UWP compilation support (#1346) 2021-01-21 16:52:07 -08:00
Victor Vazquez
a2bc2e9d99
remove static analysis from CI (#1423)
fixes: #1422
2021-01-21 20:20:27 +00:00
Victor Vazquez
1320d8a830
Add link to the doc (#1384)
* Add link to the doc
2021-01-20 10:02:21 -08:00
Victor Vazquez
d5cb9ccec0
revert timeout patch on libcurl (#1412)
Reverting https://github.com/Azure/azure-sdk-for-cpp/pull/1391/files as the patch is still required.

The previous validation was invalid because the current storage pipeline is not testing libcurl transport adapter
2021-01-20 06:50:22 +00:00
Victor Vazquez
3f67c21ba8
Fix the end of chunk parsing (#1403)
While parsing a chunked response with the curl HTTP transport adapter, there was an issue for parsing the last chunk.
As soon as the end of chunk data was found ("0") the adapter was returning and setting the session state as if the transfer was completed.
However, the HTTP RFC for chunked data (https://tools.ietf.org/html/rfc7230#section-4.1) defines that there is a CRLF after the last chunk info.

By not reading the last CRLF from the response, and if the connection was re-used right after reading the last chunk made the next request to get the `CRLF` as the first part for the response, making the parser crash.

The fix in this PR makes sure that when the last chunk is found and parsed, the CRLF is also parsed from the response to make sure that the response data transfer has completed

fixes: #1396
2021-01-20 05:57:45 +00:00
Victor Vazquez
f285aaead9
Make CI fail if there are clang format errors (#1328)
Won't pass until #1330 is merged first

fixes: #1329
2021-01-20 01:09:29 +00:00
Victor Vazquez
06a6a5628e
Remove libcurl patch for timeout (#1391) 2021-01-19 16:19:37 -08:00
Ahson Khan
c564c02544
Move APIs from Azure::Core::Strings to Azure::Core::Internal since they aren't meant for end users to call. (#1337)
Fixes https://github.com/Azure/azure-sdk-for-cpp/issues/1319

See https://github.com/Azure/azure-sdk-for-cpp/pull/1297#discussion_r554458422 for context.

~There is an open question whether this should be in the Jan or Feb milestone.~ Moved to Feb
2021-01-15 22:02:40 +00:00
Victor Vazquez
9492bef54b
adding-nlohmann-3.6-to-interna-core-headers (#1379)
Adding the original nlohmann main header to internal API so it is easier to see any futher changes made to it while adapting it
2021-01-15 20:21:27 +00:00
Azure SDK Bot
5d4e77bd6e
Increment package version after release of azure-core (#1362) 2021-01-14 10:44:25 -08:00
Ahson Khan
af097c8e65
Use two digit month in changelog release date to adhere to expected format for Azure::Core and Azure::Identity (#1360) 2021-01-14 00:39:06 +00:00
Ahson Khan
698fabcc71
Update changelog for Azure::Core and Azure::Identity (#1357)
Follow up to https://github.com/Azure/azure-sdk-for-cpp/pull/1317
2021-01-13 23:28:11 +00:00
Victor Vazquez
1ea035e0bd
changelog updated for Releasing Core 1.0.0-beta.4 and Identity 1.0.0-beta.2 (#1317)
* changelog updated for Releasing Core 1.0.0-beta.3 and Identity 1.0.0-beta.2
2021-01-13 15:05:07 -08:00
Daniel Jurek
f15c823e79
Automate publishing to vcpkg (#1283)
* Disable dependency on azure-core until azure-core releases to vcpkg.

* Remove release artifact creation script and pipeline step

* Copy items from root cmake generate outputs (no need to do individual project preparation)

* Space

* Add VcpkgPortName (package port names may change in the future to include non v1 version numbers like azure-template-cpp-v2)

* Destination should be artifact name, not vcpkg port name

* Disable PR steps

* SHA512 1 -> SHA512 %SHA512%

* New release procedure

* Unblock publishing process

* Increment azure-template version

* Update branch strategy, uncomment final release of template

* Increment version to test release

* Fix remote branch checkout logic

* Increment version

* Exit successfully

* Increment version

* Increment Version

* Version Increment

* Add a difference in the output file to validate multiple runs against a target PR branch

* Enable existing PR branches in create-pull-request.yml

* Increment version

* Fix archetype-cpp-release.yml syntax

* Skip checkout instead

* Increment version

* Fix automated version incrementing

* Increment version

* Update CHANGELOG.md

* Update CHANGELOG.md date

* Revert CONTROL file

* Remove Build-Depends

* Increment version

* Output commands

* Check out branch in either branch scenario

* Increment version

* Fetch the .tar.gz file using convention, the REST API does not give the location of the .tar.gz

* Increment Version

* ToLower

* Increment

* Increment version

* Version updater should not append a new line to the end of the file contents (existing new line at the end of the file will remain, if present)

* Add azure-template2 to validate base case of shipping different packages instead of file replacement validation from previous runs

* Remove extra backtick

* Add template2 to root CMakeLists.txt

* Review feedback: Support main scenario with packages coming from different location (no new file conflicts)

* Remove file blocking link check step. This is ok because the whole azure-template2 folder will be removed after this verification is complete

* Version increment

* Make template2 install in different locations

* Increment version

* Remove azure-template2 that was used for validating publishing multiple packages

* Remove template2 from ci.yml

* Use "SHA512 1" syntax as proposed by vcpkg documentation and regex replacement

* Review feedback

* Increment version

* Quotes

* Review feedback and re-add New-ReleaseAsset.ps1
2021-01-13 14:35:18 -08:00
Ahson Khan
d7cded9feb
Update the Azure Core changelog wording and content for the upcoming beta.4 release. (#1352)
Follow up to https://github.com/Azure/azure-sdk-for-cpp/pull/1340#issuecomment-759155935

Went through the commits related to Azure Core between beta.3 and what we plan to ship for beta.4:
1df5cfac9c...f8aebf5634
2021-01-13 21:13:31 +00:00
Ahson Khan
abf4a6bb29
Update the changelog wording and content for the upcoming release. (#1340)
* Update the changelog wording and content for the upcoming release.

* Add back the namespace text that was accidentally dropped.
2021-01-12 23:58:04 -08:00
JinmingHu
0127ddae91
void specialization of Response<T> (#1331)
* void specialization of Response<T>

* changelog:
2021-01-12 17:35:35 -08:00