Commit Graph

660 Commits

Author SHA1 Message Date
Azure SDK Bot
6b87e119a3
Increment package version after release of azure-storage-blobs (#3807) 2022-07-08 07:06:41 +08:00
JinmingHu
73da1df762
Azure Storage July Release (#3782) 2022-07-07 07:02:37 +08:00
JinmingHu
cb1c35eb77
add const qualifiers for CreateBatch() (#3800) 2022-07-06 15:43:09 +08:00
JinmingHu
9aeefefbbc
Blob batch improvement (#3790) 2022-07-01 07:19:27 +00:00
JinmingHu
dc04b2410e
Azure Storage Blob Batch (#3776) 2022-06-30 18:07:01 +08:00
Azure SDK Bot
3b9d526a26
Increment version for storage releases (#3713)
* Increment package version after release of azure-storage-common

* Increment package version after release of azure-storage-blobs
2022-06-08 09:08:35 +08:00
JinmingHu
0886fa2b81
Storage June Release (#3686) 2022-06-07 07:37:30 +08:00
Larry Osterman
8ec7a9958a
Removed version>= fields for openssl in vcpkg.json files (#3705) 2022-06-03 16:43:08 -07:00
Anton Kolesnyk
ad2591b58d
Format vcpkg.json (#3701)
Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2022-06-03 08:43:03 -07:00
JinmingHu
933486385a
storage unittest fix and improvement (#3667) 2022-05-24 14:08:14 +08:00
Anton Kolesnyk
80cf3d09fd
Update all-inclusive headers, and CMakeFiles for including all headers (#3640) 2022-05-17 20:45:46 -07:00
JinmingHu
e65ea2f71f
Storage Blob Stg78 Features (#3650) 2022-05-17 11:20:18 +08:00
JinmingHu
fc2f7c53b3
Fixed a bug where text of XML element cannot be empty. (#3643) 2022-05-12 08:56:06 +08:00
JinmingHu
5232334520
fix cmake in storage (#3604) 2022-04-30 10:36:29 +08:00
Daniel Jurek
140e05baa7
Migrate to matrix generator (#3553)
* Represent existing matrix in json
* Use new matrix
* Move to stage
* Cloud configuration
* MaxParallel
* DependsOn
* Quote CtestRegex
* Use template for cmake generate tests
* Template name mappings
* Formatting, parameters
* Remove duplicate bypass-local-dns.yml
* Enable Location override
* Add Location
* Add spelling words
* Use Ubuntu 20 where the name specifies Ubuntu 20
* Apply suggestions from code review

Co-authored-by: Ben Broderick Phillips <ben@benbp.net>

* PR feedback
* fix storage sample
* Matrix documentation

Co-authored-by: Ben Broderick Phillips <ben@benbp.net>
Co-authored-by: Victor Vazquez <vhvb1989@gmail.com>
2022-04-26 14:34:23 +00:00
JinmingHu
7b87ea1c85
some small fixes on Storage cmakefiles (#3588) 2022-04-26 12:09:03 +08:00
JinmingHu
87b230a51d
Add batch protocol layer (#3580)
* Add batch protocol layer
2022-04-26 08:58:20 +08:00
JinmingHu
7083d857af
Remove DefaultSasVersion (#3534)
because each service has its own version

closes https://github.com/Azure/azure-sdk-for-cpp/issues/3401
2022-04-07 23:54:19 -07:00
Azure SDK Bot
2403659257
Increment version for storage releases (#3506)
* Increment package version after release of azure-storage-common

* Increment package version after release of azure-storage-blobs

* Increment package version after release of azure-storage-queues
2022-04-06 04:40:31 +00:00
JinmingHu
fe0ed7e3bb
Storage April Release (#3478)
* Storage April Release

* update queue changelog

* update vcpkg.json

* update CL
2022-04-06 07:27:48 +08:00
JinmingHu
6c0f062bad
fix a bug where the xml body cannot be too big (#3502)
* fix a bug where the xml body cannot be too big

* ut

* CL

* record
2022-04-05 13:15:04 +08:00
JinmingHu
4053591a3d
remove amalgamate form CGManifest (#3467)
* remove amalgamate form CGManifest

* update NOTICE.txt
2022-03-28 11:22:17 +08:00
Victor Vazquez
835f156af9
Vcpkg manifest and binary caching (#3329)
* binary cache and manifest

* update packages

* udpate

* add cache to private pipeline

* next try

* aver

* other

* again

* aver quick

* more

* this way

* again

* one more

* print

* test

* use depend

* more deps

* dep

* Apply suggestions from code review

Co-authored-by: Daniel Jurek <djurek@microsoft.com>

* updated to use group variable

* update identity

* end line

* Update vcpkg.json

* Apply suggestions from code review

* cspell

* remove comment

* updates

* make cache mode depend on SAS env var

* map env var only for internal pipelines

* other approach

* what about this

* and this

* try

* amd

* another

* extra step

* typo

* override for internal

* use default succeded

* azure core update manifest

* a

* run cmake-generate nightly as well

* check for SAS

* check cache

* no secret

* fix is secret

* pass explicit

* use secret all the time

* char

* One more

* export

* echos

* last

* array

* remove question

* ok

* weird

* use account key

* substring

* VCPKG_BINARY_SOURCES

* Add module installation

* task:

* Correct pathing for module

* update source gen

* format

* update spelling

* IsWindoows

* Use pwsh

* Cannot clobber with PSModule-Helpers. Attempt plain install

* Attempt plain install

* Revert unnecessary change to Update-DocsMsToc.ps1

* template ready

* curl is required on Windows as well for some CI gates

* attestation

* fix format

Co-authored-by: Daniel Jurek <djurek@microsoft.com>
2022-03-24 09:11:30 -07:00
JinmingHu
01d0c8cbcf
Update migration guide, add sample for wraping sync into async (#3469) 2022-03-24 11:16:24 +08:00
Victor Vazquez
feaaf0b414
Update release mode windows + samples (#3451)
* changes

* vs generator

* use macro

* release and samples

* add target to build smoke test

* revert

* reuse macro for samples

* extra legs for samples only

* storage connection string

* format

* order and macro

* update

* samples

* missing
2022-03-22 01:39:39 +00:00
George Arama
13175a4f41
Openssl1.1.1 (#3457)
* open ssl 1.1.1n

* manifests and vcpkg for attestation

* opensll - > git

* oops git

* set 1.1.1n as min version
2022-03-21 13:59:20 -07:00
George Arama
282ed53068
open ssl 1.1.1n (#3447)
* open ssl 1.1.1n

* manifests and vcpkg for attestation

* opensll - > git

* oops git
2022-03-21 11:17:21 -07:00
JinmingHu
71bdfddfee
Fix bug where we cannot use SAS authentication to move file/directory (#3422)
* Fix bug where we cannot use SAS authentication to move file/directory

* CL

* ut
2022-03-18 21:36:13 +08:00
Victor Vazquez
64e3130e2c
Adding Test-Proxy support to [Perf Fw] tests (#3257)
* cp

* cp

* cp

* Enable test proxy for perf tests

* unwanted

* format

* fix docs

* cspell

* parallel support and multi proxy

* update arg name

* more logs

* fix request redirection

* Apply suggestions from code review

Co-authored-by: Ahson Khan <ahkha@microsoft.com>

* run once before record, then after recording on

Co-authored-by: Ahson Khan <ahkha@microsoft.com>
2022-03-11 17:13:15 -08:00
JinmingHu
53f167dc37
Add missing header (#3420) 2022-03-10 12:04:12 -08:00
Azure SDK Bot
21b4b6a7f3
Increment version for storage releases (#3413)
* Increment package version after release of azure-storage-common

* Increment package version after release of azure-storage-files-datalake

* Increment package version after release of azure-storage-files-shares

* Increment package version after release of azure-storage-queues
2022-03-09 23:52:18 +00:00
Azure SDK Bot
2938cd012f
Increment package version after release of azure-storage-blobs (#3415) 2022-03-10 07:38:26 +08:00
JinmingHu
66b9e75010
Storage Mar. Release (#3400)
* Storage Mar. Release

* upgrade vcpkg commit
2022-03-09 08:51:55 +08:00
JinmingHu
73304d6328
SAS token version related change (#3399) 2022-03-08 15:48:00 +08:00
JinmingHu
0af72dfa58
Different storage service has its own sas version(sv) (#3380) 2022-02-28 08:47:59 +00:00
JinmingHu
f628269290
New protocol layer for File Share service (#3371) 2022-02-28 14:12:12 +08:00
JinmingHu
b26df4804d
Blob STG 75 76 77 features (#3367) 2022-02-28 13:17:03 +08:00
Larry Osterman
ddc9eb355f
Fixed Live Tests for Attestation SDK. (#3366)
* Set WinHTTP_OPTION_CLIENT_CERT_CONTEXT to enable connections to attestation service

* Set serviceDirectory from environment variables

Co-authored-by: Victor Vazquez <victor.vazquez@microsoft.com>
2022-02-24 22:48:15 +00:00
Victor Vazquez
9f58947056
use ref instead of pointer (#3364) 2022-02-18 17:15:07 -08:00
Victor Vazquez
74576d640f
Increment gTest version to get rid of warning during cmake-configure (#3351)
* increase version

* update manifest

* fix test
2022-02-17 13:41:04 -08:00
Azure SDK Bot
269f1a3ca1
Increment version for storage releases (#3344)
* Increment package version after release of azure-storage-common

* Increment package version after release of azure-storage-blobs

* Increment package version after release of azure-storage-files-datalake

* Increment package version after release of azure-storage-queues
2022-02-14 03:58:40 +00:00
JinmingHu
116185409e
Storage Feb. Release (#3340)
* Storage Feb. Release

* Update sdk/storage/azure-storage-queues/CHANGELOG.md
2022-02-13 02:30:09 +00:00
JinmingHu
62865323e3
Remove CopyFromUri (#3339) 2022-02-11 04:17:20 +00:00
JinmingHu
077d32ffff
New protocol layer for blob, datalake and queue generated by CodeGen (#3261)
* new protocol layer

* remove some [[deprecated]] to eliminate compiler warnings

* remove unused helper functions

* ut record

* revert [[deprecated]]

* fix typo
2022-02-11 11:02:51 +08:00
Anton Kolesnyk
53e90d81fb
Undo assert internal macro and headers (#3318) 2022-02-07 12:25:22 -08:00
George Arama
5290690be0
Storage src (#3304)
* before sync

* download latest version

* blobs and datalake

* shares and queues

* some cleanup

* for PR
2022-02-07 11:47:08 -08:00
Anton Kolesnyk
c4e95dfcfc
Fix unit test compilation on UWP (#3298)
Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2022-01-31 18:43:37 -08:00
Anton Kolesnyk
2aae6be7a3
Encapsulate getenv(), and make it work on UWP (#3275)
It all started with UWP. The [docs](https://docs.microsoft.com/en-us/cpp/cppcx/crt-functions-not-supported-in-universal-windows-platform-apps?view=msvc-170) say: "`Environment variables are not available to UWP apps.`". And it truly won't work, I tried: linker error, the function is simply not present.

So, for a year or so, we were `ifdef`ing everything enivoronment-related: console logger, environment credential, managed identity credential.

And then just recently we wanted to enable our CI for UWP, including tests and samples. And it required to do more ifdefs (in vcpkg, we don't build samples or tests, so that problem did not exist).

It just became more messy. Especially in samples - you can see how we would disable warning with `#pragma warning(disable : 4996)` or defining `_CRT_SECURE_NO_WARNINGS` already, but now came UWP, so we would have to add comment that `getenv()` is not available and make the sample compilation to either fail with clear message, or throw an exception. Plus we would have to detect that we are being compiled on UWP, which also adds visual clutter for reader. You can see how such an irrelevant (for a sample) thing as `getenv` was consuming more and more lines of sample code and reader's attention.

But then! I read docs on more APIs for UWP. And I noticed that on .NET you can read environment variables. So I went and checked Win32 API docs for [GetEnvironmentVariable()](https://docs.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-getenvironmentvariable) - it says: "`Minimum supported client: ... UWP apps`".

**GetEnvironmentVariable() works on UWP!**
And so does `SetEnvironmentVariable()` (our tests use it, which means we can make all of them work and execute for UWP).

That's good news, but now it would probably be more code: it usually takes more lines to invoke WinAPI, it is no more an one-liner to call `getenv()/setenv()`. So, I encapsulated that into `Azure::Core::_internal::Environment::GetVariable()` and `SetVariable()`. You can see how much less ifdefs is in our code now. Not to mention it works on UWP!

Per team request, that API is SDK-internal. Samples use their own mini-helper project, `get-env-helper` that makes is so that `getenv()` works naturally on Linux and macOS, compiles without warnings and works on Win32, and compiles and works on UWP (using `GetEnvironmentStringsA()`)

If it was for me, I would just make `Azure::Core::Environment::GetVariable()` public and simplify even further, I think it would be beneficial for sample readers (you can see that extra `get-env-helper` stuff adds just a little more visual clutter, compared to nothing). But I can see reasons against that, why team did not want to do it.
2022-01-29 08:22:33 +00:00
Victor Vazquez
c10de791cc
Build ci gates per service (#3260) 2022-01-20 18:09:06 +00:00
t-ransemel
9d1ab66989
fixed typo in MigrationGuide.md (#3262) 2022-01-20 15:52:56 +00:00