Commit Graph

1158 Commits

Author SHA1 Message Date
Ahson Khan
743399eca4
Disable BlobServiceClientTest::UndeleteBlobContainer to keep CI and live tests green (#2259) 2021-05-12 13:40:34 -07:00
Ahson Khan
579a58b250
Fix typo in share_responses docs (#2258) 2021-05-12 19:26:13 +00:00
Azure SDK Bot
5d46edbe65
Sync eng/common directory with azure-sdk-tools for PR 1594 (#2243)
* Update sparse checkout create directory step name

* plumb BaseBranchName to create pull request

Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
2021-05-12 14:44:10 -04:00
Anton Kolesnyk
530e49b217
Document final/virtual destructor changes (#2256) 2021-05-12 11:38:17 -07:00
JinmingHu
b4fa6b835a
Fix stream leak issue (#2257)
* Fix stream leak issue

* cl
2021-05-12 09:05:03 +00:00
Ahson Khan
ffd0860e00
Avoid using WinHttpQueryDataAvailable, and use WinHttpReadData directly for better throughput. (#2245)
* Avoid using WinHttpQueryDataAvailable, and use WinHttpReadData directly for better throughput.

* Add back new line at end of file.

* Reorder some lines for readability.
2021-05-11 20:03:14 -07:00
Anton Kolesnyk
ebb112f682
Add final specifier in Storage code (#2238)
Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2021-05-11 17:02:52 -07:00
Anton Kolesnyk
019db35863
Add final specifier (#2237) 2021-05-10 11:57:40 -07:00
Anton Kolesnyk
d73593827f
Update readme for Identity (#2241) 2021-05-10 11:31:12 -07:00
Anton Kolesnyk
5a414fb0a5
Correct options assignment for TokenCredentialOptions (#2239) 2021-05-10 11:30:42 -07:00
JinmingHu
11d3a3f286
add namespace explicit qualifier for friend classes (#2236) 2021-05-08 13:49:09 +08:00
JinmingHu
273d411838
add some coments (#2235) 2021-05-08 04:02:23 +00:00
Azure SDK Bot
5e6d4be92c
Add better error handling in Prepare-Release (#2233)
Co-authored-by: Wes Haggard <Wes.Haggard@microsoft.com>
2021-05-07 23:34:45 -04:00
JinmingHu
2b169ca777
Removed GetBlockListResult::ContentType, moved GetPageRangesResult to detail (#2234) 2021-05-08 11:16:30 +08:00
Ahson Khan
a103e51869
Rename IsBufferedDownload to ShouldBufferResponse to avoid using a (#2210)
storage specific verb in general purpose Request object.
2021-05-07 16:53:07 -07:00
Ahson Khan
23136690af
Add a key type pair context precondition test. (#2223)
* Add a key type pair context precondition test.

* Fixup test since after overriding the key type getting an int value should fail.
2021-05-07 16:22:01 -07:00
Victor Vazquez
1a71c46cbd
[Key Vault Keys] Cryptography client - Encrypt/Decrypt/Wrap/Unwrap/Sing/Verify (#2140) 2021-05-07 21:49:11 +00:00
Victor Vazquez
1f5bfb6984
Vcpkg sample (#2161)
* extra test

* sample

* typo

* Adding storage sample
2021-05-07 21:22:42 +00:00
Ahson Khan
fd9c3e5ebb
Fix true spelling errors across all source and header files within the SDK and add exceptions for false positives. (#2209)
Part of https://github.com/Azure/azure-sdk-for-cpp/issues/1277, checking what types of warnings the CI emits.

Verified all SDK product `.cpp`, `.hpp`, `.txt`, and `.md` files, primarily focused on azure-core. They are all clean now. There are some exceptions that needs to be added for keyvault and storage, but they are false positives, so not a concern.

> `cspell lint --config .vscode/cspell.json *.hpp */**/*.hpp`

CSpell: Files checked: 188, Issues found: 0 in 0 files

> `cspell lint --config .vscode/cspell.json *.cpp */**/*.cpp`

CSpell: Files checked: 186, Issues found: 88 in 15 files (keyvault and storage false positives, or tests)

> `cspell lint --config .vscode/cspell.json *.md */**/*.md`

CSpell: Files checked: 45, Issues found: 5 in 2 files (eng/common)

> `cspell lint --config .vscode/cspell.json *.txt */**/*.txt`

CSpell: Files checked: 44, Issues found: 0 in 0 files

> `cspell lint --config .vscode/cspell.json *.* */**/*`

CSpell: Files checked: 646, Issues found: 328 in 69 files (most of these are in eng\docs\api\assets\style.css or eng/common)

Deprioritize and ignored the errors from the test files (including test resource json files), and `eng/common` since those need to be centrally fixed.
2021-05-07 21:04:58 +00:00
Ahson Khan
597aac06c2
Removed the Azure::Core::Http::Request ctor overload that takes both a bodyStream and a bufferedDownload boolean since it is not used anywhere. (#2212)
* Removed the `Azure::Core::Http::Request` ctor overload that takes both a `bodyStream` and a `bufferedDownload` boolean since it is not used anywhere.

* Add back the unit tests by making them friends.

* Add back line at end of file.
2021-05-07 12:45:12 -07:00
Anton Kolesnyk
43ee2ee192
Additional tests for Nullable<T> (#2215)
Closes #1786
2021-05-07 16:11:41 +00:00
Kan Tang
941b67178e
File/datalake service doxygen comments and detail struct name refine. (#2207)
# 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
  - [] 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-05-07 07:47:35 +00:00
JinmingHu
3c04ad93a1
Add some comments to common package (#2216) 2021-05-07 13:01:26 +08:00
Mitch Denny
30dfa8d668
Extend Check Enforcer timeout (#2202)
Extend the timeout that Check Enforcer applies when waiting for a pipeline to start.
2021-05-07 14:02:36 +10:00
JinmingHu
8d5ea9e279
Add doxygen doc to blob generated code (#2206) 2021-05-07 03:41:32 +00:00
Azure SDK Bot
f5d9a25d41
Revert changes to SetDevVersion. (#2213)
Co-authored-by: Mitch Denny <midenn@microsoft.com>
2021-05-07 09:35:53 +10:00
Victor Vazquez
08c8147f54
Update abort() for AZURE_ASSERT (#2170)
* remove abort from Core
2021-05-06 15:30:46 -07:00
Ahson Khan
7982417480
Fix up wording in changelog for azure core (#2208)
Addressing https://github.com/Azure/azure-sdk-for-cpp/pull/2200#discussion_r626994352
2021-05-06 20:18:37 +00:00
Ahson Khan
9e7b61538e
Remove exposing windows.h header from our public headers within storage. (#2201)
* Remove exposing windows.h header from our public headers within storage.

* Revert "Remove exposing windows.h header from our public headers within storage."

This reverts commit 537d7dd64f65fd5d4b079e793334e840d9b40e70.

* Actually remove exposing windows.h header from the public header in storage.
2021-05-06 11:16:24 -07:00
JinmingHu
2901dbcab9
fix user agent for blob service (#2203) 2021-05-06 20:32:17 +08:00
Victor Vazquez
8e4a1ae59b
Rename download via stream (#2196)
rename parameter for download stream
2021-05-06 02:42:38 +00:00
Ahson Khan
7f0792f114
Add transport layer unit tests with non-ascii host strings as input. (#2198)
* Add transport layer unit tests with non-ascii host strings as input.

* Update test string.
2021-05-05 17:18:46 -07:00
Ahson Khan
e1340dcfa8
Check for context cancellation in more places within the winhttp transport layer before each I/O call. (#2185)
* Check for context cancellation in more places within the winhttp transport layer before each I/O call.

* Update cspell to add exceptions to false positives.

* Address PR feedback.

* Do not check for context cancellation before querying the response headers.
2021-05-05 17:17:54 -07:00
Rick Winter
22770cabbf
Add changelog entry for Uuid improvement (#2200) 2021-05-06 00:09:21 +00:00
Ahson Khan
a77686938a
Remove exposing windows.h header from our public headers and reduce risk of introducing it in non-public headers (#2188)
Fixes https://github.com/Azure/azure-sdk-for-cpp/issues/1853
2021-05-05 23:49:18 +00:00
Victor Vazquez
10d244e511
LRO operation resume token - following factory method design (#2195)
* Add tests for resume token pattern

* update deleteKeyOperation
2021-05-05 23:14:31 +00:00
Victor Vazquez
aa3b6f18f3
Adding noexcpt to isCancelled (#2197)
* Adding noexcpt to isCancelled

* revert cl
2021-05-05 22:01:01 +00:00
Rick Winter
0490d69e02
Ensure random Uuid generation (#2194)
Posix platforms do not generate secure random bytes with random_device().

On posix platforms use the openSSL random byte generator which generates cryptographically secure random bytes

**NOTE**: Once the assert work is done this abort() will be switched over to assert.
2021-05-05 21:41:39 +00:00
Ahson Khan
b5b547f590
Fix datetime doc comment typo (#2191) 2021-05-05 11:33:51 -07:00
Daniel Jurek
12cec8c08f
Add cspell.json to ignored paths (#2190) 2021-05-04 17:20:52 -07:00
Anton Kolesnyk
d69742ae10
Context::GetApplicationContext() => Context::ApplicationContext (#2178) 2021-05-04 15:26:33 -07:00
Victor Vazquez
84560cb5f7
Md5 enhance impl and test (#2157)
* re-design hash md5 header and implementation
2021-05-04 00:11:53 +00:00
Daniel Jurek
8cf7746b6b
Add spellcheck (#2181)
* Add spellcheck

* Add spelling error

* Format cspell.json

* Revert "Add spelling error"

This reverts commit 37446522791492e8ee2c1c54af0d2da1e162d2e4.
2021-05-03 19:13:02 +00:00
Azure SDK Bot
cdb5fbfb35
Sync eng/common directory with azure-sdk-tools for PR 1524 (#2179)
* Make RELEASE_TITLE_REGEX more specific

* Update eng/common/scripts/ChangeLog-Operations.ps1

Co-authored-by: Wes Haggard <weshaggard@users.noreply.github.com>

* Update release REGEX

* tighten up changelog verification

* Ensure releaseDate is in the appriopriate format.

* Update error messages.

* Retrun false after error

Co-authored-by: Chidozie Ononiwu <chononiw@microsoft.com>
Co-authored-by: Chidozie Ononiwu <31145988+chidozieononiwu@users.noreply.github.com>
Co-authored-by: Wes Haggard <weshaggard@users.noreply.github.com>
2021-05-03 10:27:04 -07:00
Azure SDK Bot
3bb84c8de6
Sync eng/common directory with azure-sdk-tools for PR 1579 (#2171)
* Allow propogation of SetDevVersion.

* Allow use of SetDevVersion locally and across stages.

Co-authored-by: Mitch Denny <midenn@microsoft.com>
2021-05-02 17:49:56 -07:00
Azure SDK Bot
aafdeeb526
Sync Devops helper scripts from azure-sdk repo (#2177)
DevOps helper scripts were updated in azure-sdk repo
so syncing those changes into the tools repo so they
can be used prepare-release script.

Co-authored-by: Wes Haggard <Wes.Haggard@microsoft.com>
2021-04-29 15:42:28 -07:00
Anton Kolesnyk
2c050661aa
Add HttpMethod extensible enum tests (#2175) 2021-04-29 12:47:41 -07:00
Azure SDK Bot
ead97d476b
Set multiple sparse checkout paths in one command/job (#2169)
Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
2021-04-29 13:23:33 -04:00
JinmingHu
61e3dae352
reorder model types (#2174) 2021-04-29 09:08:24 +00:00
JinmingHu
2aaceb0d3c
SetPathAccessControlListRecursive and ForceCloseAllHandles (#2173)
* SetPathAccessControlListRecursive

* ForceCloseAllHandles

* CL
2021-04-29 15:11:09 +08:00