Commit Graph

210 Commits

Author SHA1 Message Date
JinmingHu
0127ddae91
void specialization of Response<T> (#1331)
* void specialization of Response<T>

* changelog:
2021-01-12 17:35:35 -08:00
Ahson Khan
5de2ca7b3c
Update notice.txt files for storage and move nlohmann json notice content to azure-core. (#1339)
* Update notice.txt files for storage and move nlohmann json notice
content to azure-core.

* Add a new line.
2021-01-12 17:20:40 -08:00
Anton Kolesnyk
c3484c5d4d
DateTime: Add unit tests for comparison operators (#1332)
Add unit tests for the https://github.com/Azure/azure-sdk-for-cpp/pull/1326 fix.
2021-01-12 12:53:08 +00:00
JinmingHu
320b60806e
fix comparison bug introduced in #1320 (#1326) 2021-01-12 13:25:42 +08:00
Anton Kolesnyk
99a6ec5395
DateTime: better integration with chrono, support year 0001+ (#1320) 2021-01-11 17:40:16 -08:00
JinmingHu
dc8c9182e1
fix build error introduced in PR #1297 and #1298 (#1303)
# Pull Request Checklist

Please leverage this checklist as a reminder to address commonly occurring feedback when submitting a pull request to make sure your PR can be reviewed quickly:

See the detailed list in the [contributing guide](https://github.com/Azure/azure-sdk-for-cpp/blob/master/CONTRIBUTING.md#pull-requests).

- [x] [C++ Guidelines](https://azure.github.io/azure-sdk/cpp_introduction.html)
- [x] Doxygen docs
- [x] Unit tests
- [x] No unwanted commits/changes
- [x] Descriptive title/description
  - [x] PR is single purpose
  - [x] Related issue listed
- [x] Comments in source
- [x] No typos
- [x] Update changelog
- [x] Not work-in-progress
- [x] External references or docs updated
- [x] Self review of PR done
- [x] Any breaking changes?
2021-01-11 03:40:48 +00:00
Ahson Khan
fb33402844
Remove Base64 encode and decode methods from Azure::Storage and move the string-based helper to Internal. Update storage call sites. (#1298)
Follow up from https://github.com/Azure/azure-sdk-for-cpp/pull/1297 as the second step to fix #1020
2021-01-09 08:12:06 +00:00
Ahson Khan
1efbfb3056
Add Base64 encoding and decoding utility APIs to the Azure::Core namespace available from azure/core/base64.hpp. (#1297)
* Add Base64 encode and decode APIs to Azure::Core (from Azure::Storage).

* Revert changes to crypt.hpp to leave callsite updates for auto-gen
storage component for later.

* Add entry to changelog.

* Add basic unit tests.

* Remove definition of NOMINMAX since it is unnecessary.

* Include missing header from openssl.

* Include missing open ssl buffer header.

* Address feedback around angle brackets, and move implementation into a
namespace block.

* Remove redundant namespace qualifier in the signature.

* Link openssl to azure-core for non-Windows platforms, to fix the MacOS
linking issue.
2021-01-08 21:20:44 -08:00
Ahson Khan
4753cf64e3
Update cg manifest files and move the declaration of the nlohmann json dependency to core. (#1295) 2021-01-08 19:31:15 -08:00
Anton Kolesnyk
9e94941250
Add copyright and license comments to CONTROL files (#1296)
Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2021-01-08 18:15:42 -08:00
Anton Kolesnyk
9fb5e05efd
VcPkg: On Windows, also install WinHTTP by default (#1294)
# Pull Request Checklist

Please leverage this checklist as a reminder to address commonly occurring feedback when submitting a pull request to make sure your PR can be reviewed quickly:

See the detailed list in the [contributing guide](https://github.com/Azure/azure-sdk-for-cpp/blob/master/CONTRIBUTING.md#pull-requests).

- [ ] [C++ Guidelines](https://azure.github.io/azure-sdk/cpp_introduction.html)
- [ ] Doxygen docs
- [ ] Unit tests
- [ ] No unwanted commits/changes
- [ ] Descriptive title/description
  - [ ] PR is single purpose
  - [ ] Related issue listed
- [ ] Comments in source
- [ ] No typos
- [ ] Update changelog
- [ ] Not work-in-progress
- [ ] External references or docs updated
- [ ] Self review of PR done
- [ ] Any breaking changes?
2021-01-09 01:25:35 +00:00
Victor Vazquez
910731893a
docs for the HTTP transport adapter (#1285)
* docs for the HTTP transport adapter
2021-01-08 16:16:09 -08:00
Victor Vazquez
57b78dc0ad
Enhance the exception for body stream rewind (#1291) 2021-01-08 15:01:19 -08:00
Rick Winter
36fbcd9cee
Version strings (#1276)
Moves package version strings in the details namespace.
Fixes #1249 

# Pull Request Checklist

Please leverage this checklist as a reminder to address commonly occurring feedback when submitting a pull request to make sure your PR can be reviewed quickly:

See the detailed list in the [contributing guide](https://github.com/Azure/azure-sdk-for-cpp/blob/master/CONTRIBUTING.md#pull-requests).

- [x] [C++ Guidelines](https://azure.github.io/azure-sdk/cpp_introduction.html)
- [x] Doxygen docs
- [x] Unit tests
- [x] No unwanted commits/changes
- [x] Descriptive title/description
  - [x] PR is single purpose
  - [x] Related issue listed
- [x] Comments in source
- [x] No typos
- [x] Update changelog
- [x] Not work-in-progress
- [x] External references or docs updated
- [x] Self review of PR done
- [x] Any breaking changes?
2021-01-07 08:07:46 +00:00
Victor Vazquez
9d9f1e6f4c
remove cancellation check from retry policies (#1196)
* remove cancellation check from retry policies

* Update BodyStream to do cancellation check on Read
2021-01-05 18:38:06 -08:00
Victor Vazquez
e141cf1a6b
Update canceled to cancelled (#1256)
* rename all `canceled` to `cancelled`

* Adding changelog breaking changes
2021-01-05 16:28:05 -08:00
Kan Tang
fb869f10af
Resolves the leap year last day calculation issue. (#1254) 2021-01-05 09:45:21 +08:00
JinmingHu
da86ed7ec5
rename WinHTTP CMake target (#1240)
# Pull Request Checklist

Please leverage this checklist as a reminder to address commonly occurring feedback when submitting a pull request to make sure your PR can be reviewed quickly:

See the detailed list in the [contributing guide](https://github.com/Azure/azure-sdk-for-cpp/blob/master/CONTRIBUTING.md#pull-requests).

- [x] [C++ Guidelines](https://azure.github.io/azure-sdk/cpp_introduction.html)
- [x] Doxygen docs
- [x] Unit tests
- [x] No unwanted commits/changes
- [x] Descriptive title/description
  - [x] PR is single purpose
  - [x] Related issue listed
- [x] Comments in source
- [x] No typos
- [x] Update changelog
- [x] Not work-in-progress
- [x] External references or docs updated
- [x] Self review of PR done
- [x] Any breaking changes?
2021-01-04 16:59:46 +00:00
ku-sourav
14e947ff03
Throw exception if curl_easy_init returns Null (#1239) 2020-12-22 14:23:29 -08:00
Anton Kolesnyk
bdc2931855
Token: use DateTime (#1221) 2020-12-18 19:10:54 -08:00
Anton Kolesnyk
d40b4fb642
DateTime: add default constructor (#1220) 2020-12-18 18:21:24 -08:00
Anton Kolesnyk
e3d8719281
Fix gtest and related warnings (#1224) 2020-12-18 18:20:02 -08:00
Victor Vazquez
1502468dba
Reuse connection pool depending on host and connection options (#1189)
* Reuse connection pool depending on host and connection options
2020-12-18 17:27:47 -08:00
Victor Vazquez
5525d68a15
Fix main ut tests when not using libcurl (#1227)
* Fix for test cases when not using libcurl
2020-12-18 17:18:35 -08:00
Anton Kolesnyk
89351e4484
AuthenticationException: derives from std::exception (#1222)
Closes #1178
2020-12-19 00:42:00 +00:00
Marcelo Juchem
2443e7cfcb
fix curl dependency on non-standard install prefix (#1218)
* fix curl dependency on non-standard install prefix

When `libcurl` is installed to a non-standard install prefix `azure-core` will configure include/lib directories correctly (as long as `CMAKE_FIND_ROOT_PATH` is set appropriately) for its dependencies (`INTERFACE`) but not for itself (`PRIVATE`), thus failing the build.
2020-12-18 15:25:55 -08:00
Victor Vazquez
62949025b1
Merge param-tests for the transport adapter (#1217)
fixes: #1216 
fixes: #1087
2020-12-18 22:21:40 +00:00
Victor Vazquez
78df96ab6c
removed e2e core tests (#1215) 2020-12-18 11:02:10 -08:00
Victor Vazquez
0d312028ce
Check if error during test after opening a file (#1205)
fixes: #1074
2020-12-18 18:42:16 +00:00
Rick Winter
60e70a3695
Fix doxygen comments for Operation<T> (#1210) 2020-12-18 02:39:55 +00:00
Victor Vazquez
8aac9091c2
Mention min clang format version and format all cpp and hpp files with clang-format version 9.0 (#1208)
* Add info about clang-format version

* updates for cpp and hpp format

* special cases
2020-12-17 18:34:23 -08:00
Victor Vazquez
6a317e8b87
Move the default transport adapter assignation to the source (#1206)
fixes: #1169
2020-12-18 02:13:03 +00:00
Victor Vazquez
942c6aaffa
replace ifdef for if defined (#1199)
fixes: #1057
2020-12-17 22:57:40 +00:00
Rick Winter
bcb684f95e
Add Operation<T> (#1186)
* Add Operation<T>
2020-12-17 14:47:20 -08:00
Victor Vazquez
20954d5dba
unify fileBodyStream in one single definition for Win and Lin (#1198)
* unify fileBodyStream in one single definition for Win and Lin
2020-12-17 11:23:01 -08:00
Victor Vazquez
1bfbaf7330
use gtest_discover_tests for creating tests (#1195) 2020-12-16 15:00:01 -08:00
Victor Vazquez
dacd6aa6c1
Added HTTP Range (#1188)
* Added HTTP Rangeom>
2020-12-16 14:27:17 -08:00
Victor Vazquez
fc7d52926a
init fields to avoid MSVC warning (#1172)
Fixes: https://github.com/Azure/azure-sdk-for-cpp/issues/922
2020-12-15 22:21:24 +00:00
Victor Vazquez
8cd93803c4
Remove libcurl non required options (#1153)
Fixes: https://github.com/azure/azure-sdk-for-cpp/issues/931
2020-12-15 22:08:48 +00:00
Victor Vazquez
0b9befe13d
update default value to true for the SDK CurlTransportSSLOptions -> NoRevoke (#1181)
fixes: #1101
2020-12-15 01:01:12 +00:00
Ahson Khan
f2394ddb02
Following the guidelines, use quotes for files within the same project, and angle brackets for external dependencies. (#1150) 2020-12-11 14:04:59 -08:00
Anton Kolesnyk
3eae7c130c
Add VcPkg support (#1013) 2020-12-11 11:53:37 -08:00
Ahson Khan
c22392e943
Add context.IsCanceled to provide a non-throwing alternative to ThrowIfCanceled. (#1106) 2020-12-10 23:01:12 +00:00
Ahson Khan
0f854ffa9b
Add WinHTTP Transport support to the SDK for windows clients as another HTTP Transport. (#897)
Fixes https://github.com/Azure/azure-sdk-for-cpp/issues/354
2020-12-10 22:00:52 +00:00
Anton Kolesnyk
828bb4098a
Make changes towards making libraries individually buildable (#1108) 2020-12-09 04:02:29 -08:00
Anton Kolesnyk
035ba8509c
Move BearerTokenAuthenticationPolicy to Http namespace/policy.hpp (#1104) 2020-12-08 17:04:03 -08:00
Anton Kolesnyk
bbe4b54528
Do not use ${TARGET_NAME} unless necessary (#1094) 2020-12-07 20:20:06 -08:00
Anton Kolesnyk
d1f162f9e3
Fix typo (#1091)
This change was extracted from #1013, in order to isolate some of the changes.
2020-12-08 03:56:21 +00:00
Anton Kolesnyk
46419412c3
Use CONFIG QUIET when looking for packages (#1092)
This change was extracted from #1013, in order to isolate some of the changes.
2020-12-08 03:55:21 +00:00
Victor Vazquez
4cc1754b63
fix warning while building master (#1083) 2020-12-04 16:08:18 -08:00