Commit Graph

1241 Commits

Author SHA1 Message Date
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
Larry Osterman
f4e99416c9
RequestFailedException includes error information #3398 (#3397)
* RequestFailedException includes error information

* Fixed test collateral

* Added changelog entry for new core version; Added tests to verify response message contains all expected fields
2022-03-11 21:15:10 +00:00
Larry Osterman
8672f985aa
Create Extendable Enumeration base class (#3421)
* Created extendableenumeration class

* Convert attestation to use extendable enumeration; added test for extendable enumerations

Co-authored-by: Casey Carter <cartec69@gmail.com>
2022-03-11 02:37:31 +00: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
e01425a7ce
Increment version for keyvault releases (#3406)
* Increment package version after release of azure-security-keyvault-certificates

* Increment package version after release of azure-security-keyvault-secrets
2022-03-09 15:43:47 -08:00
Azure SDK Bot
50b58d1ed3
Increment package version after release of azure-identity (#3412) 2022-03-09 15:42:10 -08:00
Azure SDK Bot
2938cd012f
Increment package version after release of azure-storage-blobs (#3415) 2022-03-10 07:38:26 +08:00
Azure SDK Bot
60714c4641
Increment package version after release of azure-core (#3391) 2022-03-09 22:11:00 +00:00
JinmingHu
66b9e75010
Storage Mar. Release (#3400)
* Storage Mar. Release

* upgrade vcpkg commit
2022-03-09 08:51:55 +08:00
George Arama
8825ad181f
Remove empty changelog sections (#3407)
* update changelog

* text update

* sample issue fix

* readme update

* changelogs update

* remove changelog empty sections

* spaces

* updates

* typo

* remove extra space
2022-03-08 15:11:17 -08:00
Victor Vazquez
513805f37d
missing date (#3403) 2022-03-08 23:03:42 +00:00
George Arama
0ae33665d2
release dates in changelog (#3405)
* update changelog

* text update

* sample issue fix

* readme update

* changelogs update
2022-03-08 13:48:54 -08:00
George Arama
70ec55f365
Samples issue fix (#3402)
* update changelog

* text update

* sample issue fix

* readme update
2022-03-08 12:01:21 -08:00
Anton Kolesnyk
530189eaf8
Readme and dependency version updates for stable Identity release (#3386)
* Readme and dependency version updates for stable Identity release

* Lowest possible version I can get through our CI at the moment

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2022-03-08 11:26:33 -08:00
JinmingHu
73304d6328
SAS token version related change (#3399) 2022-03-08 15:48:00 +08:00
Larry Osterman
bd822a458b
Added SetAttestationPolicy and ResetAttestationPolicy (#3379)
* SetPolicy and ResetPolicy APIs

* Added tests for attestation result; cleaned up attest test suite a bit; fixed up attestation sample to be more real

* Further refactored test collateral to reduce wasted test cases

* Reformat with clang-format-11

* Removed use of Nullable::HasValue() and Nullable::Value() in favor of operator bool and operator *

* Get policy sample to run in CI pipeline

* Added AZURE_ variables to test-resources.json
2022-03-07 17:00:28 -08:00
George Arama
f7841a89b4
Certificates update changelog (#3395)
* update changelog

* text update
2022-03-07 22:26:29 +00:00
George Arama
5050bee3bf
[Certificates] Create Certificate operation return (#3392)
* fix cert create

* PR feedback, readme update

* clang
2022-03-04 12:38:16 -08:00
Victor Vazquez
172808eb1c
Azure Core change log for March release (#3390)
* version update

* add something

* Update sdk/core/azure-core/CHANGELOG.md

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

Co-authored-by: Ahson Khan <ahkha@microsoft.com>
2022-03-04 00:52:48 +00: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
Larry Osterman
cd9ae61a8e
Created Attestation Administration client (#3355)
* Created Attestation Administration client

* Integrated with main
2022-02-19 01:56:35 +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
Larry Osterman
d2fd862ce1
Create Attestation SDK (#3228)
* Created Attestation


Co-authored-by: Victor Vazquez <victor.vazquez@microsoft.com>
Co-authored-by: Daniel Jurek <djurek@microsoft.com>
2022-02-16 09:15:18 -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
Azure SDK Bot
dc4309a65a
Increment package version after release of azure-identity (#3333) 2022-02-09 10:42:28 -08:00
Larry Osterman
3642552d0b
Improve the quality of the WinHTTP transport error message. (#3330)
* Improved HTTP transport error message with Win32 error

* Use std::unique_ptr to manage lifetime of error message
2022-02-08 20:32:35 +00:00
Victor Vazquez
b728939fce
Feb 2022 identity release cl (#3319)
* feb 2022 release cl

* Update sdk/identity/azure-identity/CHANGELOG.md
2022-02-08 12:10:16 -08:00
Azure SDK Bot
8774c4ced6
Increment package version after release of azure-core (#3323) 2022-02-08 11:56:57 -08:00
Larry Osterman
60c075a64e
Base64::Decode throws std::runtime_error on failure. (#3305)
* Throw an exception when base64 decode has bogus inputs

Co-authored-by: Ahson Khan <ahkha@microsoft.com>
2022-02-08 09:34:00 -08:00
Anton Kolesnyk
16b4670a8c
Update Identity's dependency on Core 1.4.0-beta.1 features (#3325) 2022-02-08 09:41:54 +00: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
Victor Vazquez
7bd640ae55
Azure Core Feb2022 release changelog (#3307)
* Azure Core Feb2022 release changelog

* Update sdk/core/azure-core/CHANGELOG.md

Co-authored-by: Ahson Khan <ahson_ahmedk@yahoo.com>

Co-authored-by: Ahson Khan <ahson_ahmedk@yahoo.com>
2022-02-04 15:23:28 -08:00
Ahson Khan
031696179b
Delegate to RFE string ctor and move impl from header to src. (#3315)
* Removing the two param RFE ctor, there should be no callers

* Remove the two param RFE ctor from the source file.

* Fix-up unit test and add a changelog entry.

* Remove test that uses the removed ctor.

* Delegate to RFE string ctor and move impl from header to src.
2022-02-04 15:09:39 -08:00
Ahson Khan
9c79a0725d
Removing the two param RFE ctor, there should be no callers (#3215)
* Removing the two param RFE ctor, there should be no callers

* Remove the two param RFE ctor from the source file.

* Fix-up unit test and add a changelog entry.

* Remove test that uses the removed ctor.
2022-02-03 19:00:25 -08:00
Ahson Khan
40a3e34068
Add back azure_assert.hpp to core CMakeLists (#3311) 2022-02-03 17:49:54 -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
George Arama
e18c6ce6fc
keys source build (#3251)
* keys source build

* merge from main, apply changes
2022-01-25 15:38:55 -08:00
George Arama
1b722bdb4d
Switch secrets away from lambdas (#3264)
* first pass

* LROs

* final

* some quick changes

* constructor order

* formats

* comment update
2022-01-25 14:27:44 -08:00
George Arama
d9142e80b2
secrets build from source (#3250)
* secrets build

* typo
2022-01-25 14:27:04 -08:00
George Arama
71d4b87bb0
fix build (#3270)
* fix build

* add build samples to ci
2022-01-25 14:26:10 -08:00