Commit Graph

942 Commits

Author SHA1 Message Date
Anton Kolesnyk
d32aab96eb
Acknowledge community contributions in changelogs (#5850)
* Acknowledge cusomer contributions

* Update cspell

* Add more contributors

* More cspell

* Update contributions

---------

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2024-07-31 13:44:28 -07:00
Robert Schulze
401b97e0ac
Remove unneeded <regex> includes (#5851)
* Remove unneeded <regex> includes

* Fix build (hopefully)
2024-07-31 13:07:47 -07:00
Anton Kolesnyk
0f62b3aa63
Add consumption-time value of __cplusplus to User-Agent (#5662)
* Add consumption-time value of __cplusplus to User-Agent

---------

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2024-07-29 18:31:51 -07:00
Larry Osterman
90089ad326
Cleaned up Azure::Core::Context API surface (#5676)
* Deprecated Azure::Core::ApplicationContext because its use is confusing and inconsistent with the original design. 

---------

Co-authored-by: Rick Winter <rick.winter@microsoft.com>
Co-authored-by: Anton Kolesnyk <41349689+antkmsft@users.noreply.github.com>
Co-authored-by: Ahson Khan <ahkha@microsoft.com>
2024-07-17 12:38:30 -07:00
Larry Osterman
2b987eeed8
Improve code coverage numbers by excluding some options (#5805)
* Potentially improve code coverage numbers by excluding some options

* Removed dead lines; replicated switches to both gcovr executions

* added link to gcovr branch coverage faq
2024-07-17 18:36:10 +00:00
Anton Kolesnyk
e47e3168fe
Acknowledge community contribution in the changelog (#5797)
* Mention community contribution in the changelog

* cspell

* Remove double spaces

---------

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2024-07-15 18:45:06 +00:00
Azure SDK Bot
fb6c039f5e
Increment package version after release of azure-core (#5794) 2024-07-12 21:34:14 +00:00
Anton Kolesnyk
6b9e1cc691
Revert commits related to the new RetryPolicy method (#5793)
* Revert "Update the RetryPolicy for the GA release, keeping ShouldRetry extension point hidden. (#5771)"

This reverts commit 9ccd206ff8.

* Revert "Update the RetryPolicy and ShouldRetry customization logic to allow loosening the retry condition. (#5656)"

This reverts commit f1d95520d1.

* Do not remove changelog entry from a previous beta release

* Revert "Add a virtual ShouldRetry method to the RetryPolicy for customization. (#5584)"

This reverts commit ab90ef68b0.

---------

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2024-07-12 12:03:43 -07:00
Anton Kolesnyk
e8c7c559d9
Azure Core July GA Release (#5792)
Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2024-07-12 10:24:12 -07:00
Ahson Khan
9ccd206ff8
Update the RetryPolicy for the GA release, keeping ShouldRetry extension point hidden. (#5771)
* Update the RetryPolicy for the GA release, keeping ShouldRetry extension
point hidden.

* Mark test helper virtual functions private, so they aren't
accessible/callable by callers.

* Update the changelog.

* Update CL.
2024-07-11 17:39:37 -07:00
George Arama
313fb0e58f
Move tests to use azure pipeline credentials (#5754)
* test1

* hgdfchg

* remove the remnants of azure client secret

* test KV with federated auth

* UseFederatedAuth

* fdsa

* kv template with managed

* try try again

* retry permissions

* add net acls

* blunt force replace the resource json

* put back stuff

* trey again with new method

* attempt

* missed something

* flip if else

* Temporarily use empty sub config file path for preview cloud

* remove client secret

* try to fix the identity tests

* live skip failing tests and return in samples

* samples for identity fix

* disable failing samples in identity

* fix winhttp failing test

* comment out code

* remove managed identity

* restore version from main

* revert readme changes

* PR comments

* test 2

* clang

* attempt default creds with pipeline chanined

* clangs

* identity test and clangs

* oops

* live

* cleanup

* reter

* test

* revert the DAC change

* missed one

* taking the samples to a farm upstate

* PR comments

* Fix bad merge

---------

Co-authored-by: Daniel Jurek <djurek@microsoft.com>
Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
Co-authored-by: Anton Kolesnyk <41349689+antkmsft@users.noreply.github.com>
2024-07-11 17:38:19 -07:00
Anton Kolesnyk
22f5135d4c
Update vcpkg SHA (#5772) 2024-07-11 22:57:06 +00:00
Robert Schulze
8f26ebb8a8
Add missing include (#5766) 2024-07-08 09:17:46 -07:00
George Arama
0b5b5ac951
Json library update and Xcode15 (#5681)
* Move up macos and xcode version

* first pass

* to trigger builds, some other issue

* rewrwe

* Remove MSVC compiler warning suppressions in KeyVault

The code within the `mocked_transport_adapter_test.hpp` file, specifically within the `Azure::Security::KeyVault::Keys` namespace, has been updated. The `#if defined(_MSC_VER)` preprocessor directive along with its associated `#pragma warning(push)` and `#pragma warning(disable : 4996)` directives have been removed. The corresponding `#pragma warning(pop)` directive has also been removed. The lines of code that were between these preprocessor directives remain unchanged. These changes remove specific compiler warning suppressions for MSVC compilers, but do not alter the functional behavior of the code.

* dassa

* Add UseDotNet@2 where test proxy might run on a macos agent

* test CI

* fsd

* dasdas

* gregre

* gerregr

* ffdsfsd

* fwefew

* fewfwew

* reter

* fewfew

* fwefwe

* rewrw

* rwe

* temp move build step to exec faster

* gdfgd

* fsdfd

* fdsfs

* dgdf

* Roll forward instead of installing .NET 6

* remove manual install

* rewrew

* gfdffg

* rewrwe

* gfdgd

* fdsfs

* gfdgdf

* tertre

* dasda

* try http for test proxy

* revert readmes

* rew

* rew

* fdsfsd

* ewrew

* revert storages

* KV

* opentelemetry

* remove warnbing

* anton comments

* unit tests

* clangs

* clang

* comment out some asserts

* restore originals

* updated tests

* clangs

* restore cmake

* test

* Remove manual workaround (eng/common change fixes this)

* test2

* the fix doesn't work, need to put back

* Remove DOTNET_ROLL_FORWARD

* annotate macro , put back DOTNET_ROLL_FORWARD

* remove leftover files

* reww

* update changelog

* remove left over file

* remove some doxygen comments

---------

Co-authored-by: Daniel Jurek <djurek@microsoft.com>
2024-06-18 08:26:28 -07:00
Anton Kolesnyk
ef9d2a5e18
Remove 'include windows.h' from inc/* (#5691)
* Remove 'include windows.h' from inc/*

* Clang format

* Qualify namespace

* Clean up includes a bit further

* Fix errors

* Clang format

* move out _detail definitions

---------

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2024-06-07 03:07:10 -07:00
Azure SDK Bot
c5d0549cb5
Increment version for core releases (#5700)
* Increment package version after release of azure-core

* Increment package version after release of azure-core-amqp
2024-06-07 00:07:00 +00:00
Anton Kolesnyk
b43174a05b
Core June Beta Release (#5696)
Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2024-06-06 14:42:09 -07:00
Larry Osterman
803ad17e9a
Prepare for June AMQP release (#5697)
* Prepare for June AMQP release

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

Co-authored-by: Anton Kolesnyk <41349689+antkmsft@users.noreply.github.com>

---------

Co-authored-by: Anton Kolesnyk <41349689+antkmsft@users.noreply.github.com>
2024-06-06 14:41:42 -07:00
Ahson Khan
f1d95520d1
Update the RetryPolicy and ShouldRetry customization logic to allow loosening the retry condition. (#5656)
* Update the RetryPolicy and ShouldRetry customization logic to allow
loosen the retry condition.

* Add CL entry and update doc comment.

* Move WasLastAttempt check out, and add more tests.

* Address PR feedback, remove use of void and unused params.
2024-05-30 11:08:56 +08:00
Larry Osterman
a9526d9375
Minor tweaks to HTTP tests found during Rust HTTP testing (#5658)
* Minor tweaks to HTTP tests found during Rust HTTP testing

* PR feedback
2024-05-23 04:15:05 +00:00
Larry Osterman
4de01d6ed7
Updated AMQP changelog (#5655)
* Updated AMQP changelog

---------

Co-authored-by: Ahson Khan <ahkha@microsoft.com>
2024-05-22 21:27:09 +00:00
Larry Osterman
4fcf09d4ec
Fixed #5536, fixed a test deadlock discovered while testing the fix for 5536, added some diagnostics for uAMQP to help track the problem. (#5651)
* Fixed 5536, cleaned up a bunch of test bugs found during testing of 5536 fix
2024-05-22 11:39:03 -07:00
Ahson Khan
7db4f3ac1c
Remove redundant calls to gtest_discover_tests with default args in AMQP tests (#5644)
* Disable AMQP LinkAttachDetachMultipleOneSession test until it has been investigated.

* Line Coverage is now at 87.8049%.

* Remove redundant calls to gtest_discover_tests with default args in AMQP
tests.

* Revert "Line Coverage is now at 87.8049%."

This reverts commit deb07e74cde7f3e915bbf0de1310d964d60d3154.

* Revert "Disable AMQP LinkAttachDetachMultipleOneSession test until it has been investigated."

This reverts commit 89c8096c906691826d35f6bd0f58d10bdffb6939.
2024-05-21 18:43:41 +00:00
Anton Kolesnyk
fdb8657f41
Add HTTP request version logging, and scope the variables (#5643)
Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2024-05-20 14:06:55 -07:00
Anton Kolesnyk
597d12fd6a
Update CHANGELOG acknowledgements with customer contribution (#5640)
Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2024-05-20 11:04:35 -07:00
Ahson Khan
f517aabb98
Clean-up the HTTP versions check in response parsing, and don't reuse connections on any response other than HTTP/1.1 (#5608)
* Harden the HTTP versions check in response parsing, validating specifically for 1.1 or 1.0, and throwing otherwise.

* Address feedback - comment was confusing.

* Update sdk/core/azure-core/src/http/curl/curl.cpp

Co-authored-by: Rick Winter <rick.winter@microsoft.com>

* Clarify the http version check and set keep-alive as false instead of throwing for non-http1.x.

* Address PR feedback - add comment snippet, and update log message.

---------

Co-authored-by: Rick Winter <rick.winter@microsoft.com>
2024-05-20 00:23:48 -07:00
Larry Osterman
260ae116cc
Switched blob checkpoint store to use both connection string and token credentials. (#5632)
* Switched blob checkpoint store to use both connection string and token credentials; re-recorded tests using token credentials

* Added environment variable to ci.yml

* Try a slightly different storage url
2024-05-17 19:51:27 +00:00
Ahson Khan
741a71ceee
Update core changelog with attribution for a curl endless loop bug fix. (#5626)
* Update core changelog with attribution for a curl endless loop bug fix.

* Update cspell for contributor github alias.

* Fix typo in json, add a comma.
2024-05-16 12:02:50 -07:00
Anton Popov
5d3f95535a
fix possible endless loop while polling curl socket (#5589) 2024-05-16 12:02:01 -07:00
Ahson Khan
b7ae7b8987
Add retries to DisableCrlValidation test to improve reliability (#5537)
* Add retries to DisableCrlValidation test to improve reliability

* Add some test logging to CurlConnection ctor.

* Fix log level

* Revert changes to curl.cpp

* Reduce attempts to 3 and validate at least one passes.

* Remove unnecessary commented out code to reset CI.

* Remove unnecessary assert that won't fail.

* Remove unused variable.
2024-05-16 18:31:59 +00:00
Ahson Khan
d895f82ef8
Add basic tests for GetMajor/Minor HTTP versions in the response. (#5613)
* Add basic tests for GetMajor/Minor HTTP versions in the response.

* Make the tests parameterized.

* Address PR feedback - add more test cases.
2024-05-16 10:51:50 -07:00
Ahson Khan
6b5a8d1e36
Update CURLCode error to the non-obsoleted value. (#5545) 2024-05-16 17:49:09 +00:00
Ahson Khan
ab90ef68b0
Add a virtual ShouldRetry method to the RetryPolicy for customization. (#5584)
* Add a virtual ShouldTry method to the RetryPolicy for customization.

* Make test hooks virtual again.

* Add unit test for ShouldRetry.

* Fix typo.

* Address PR feedback.

* Revert making the mock'd functions private for non-test builds.

* Add new line.
2024-05-14 01:09:02 +00:00
Azure SDK Bot
3b9574c610
Increment package version after release of azure-core (#5614) 2024-05-13 15:42:57 -07:00
Azure SDK Bot
52737ee6ae
Increment package version after release of azure-core-amqp (#5602) 2024-05-13 17:23:46 +00:00
Anton Kolesnyk
a0cb5dd55c
Core May GA Release (#5572)
* Core May GA Release

* Add azure-core-amqp to release

* Update date on the core changelog.

---------

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
Co-authored-by: Ahson Khan <ahkha@microsoft.com>
2024-05-09 20:01:52 +00:00
Ahson Khan
9e80a87519
Core AMQP May beta Release (#5601) 2024-05-06 17:30:39 -07:00
George Arama
8db62bf8da
reenable the global cleanup test (#5590) 2024-05-01 14:02:09 -07:00
Larry Osterman
ec9ffac6af
Support EventHubs emulator; Added support for both connection string and azure credentials across the entire eventhubs test suite. (#5567)
* Added support for EventHubs Emulator; reworked eventhubs tests to run with ConnectionString and DefaultAzureCredential

* Don't run emulator variants
2024-04-25 10:00:36 -07:00
Scott Beddall
fd021f468c
Pin Newest Version of test-proxy in CI (#5568)
* pin version to proxy with common sanitizers added
* fixes for keyvault, storage, core, other misc packages to deal with new common proxy version
2024-04-24 15:57:50 -07:00
George Arama
9f30ba4a9a
one more set of patterns (#5535)
* one more set of patterns

* tr

* ads

* add signed Oid

* clangs
2024-04-15 13:25:10 -07:00
Larry Osterman
3f6543d2a9
Fixed test deadlock in processor test (#5513)
* Fixed test deadlock in processor test

* Updated changelog; Changed fatal to error in test logs

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

Co-authored-by: Anton Kolesnyk <41349689+antkmsft@users.noreply.github.com>

---------

Co-authored-by: Anton Kolesnyk <41349689+antkmsft@users.noreply.github.com>
2024-04-12 13:34:20 -07:00
George Arama
c7f2767d6a
headers sanitize (#5518)
* headers sanitize

* test-proxy client id

* Liveonly storage tests and a couple of disables

* typo

* cover

---------

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2024-04-12 12:09:52 -07:00
WangWeiLin-MV
e148d89745
Update sdk vcpkg portfile with VERSION and HEAD_REF (#5516)
* Update vcpkg portfile.cmake of sdk to add parameter HEAD_REF

* Update vcpkg portfile.cmake of sdk to use variable VERSION

* Update eng\scripts\Initialize-VcpkgRelease.ps1 regex for quoted REF

* Re-trigger CI

* Revert unnecessary change

---------

Co-authored-by: Anton Kolesnyk <41349689+antkmsft@users.noreply.github.com>
Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2024-04-12 10:25:19 -07:00
Azure SDK Bot
a74ecaad3d
Increment package version after release of azure-core (#5511) 2024-04-10 15:55:55 -07:00
Anton Kolesnyk
145f6dbdb6
Fixed libcurl connection pool to use Connection response header values (#5473)
* Fixed libcurl connection pool to use `Connection` response header values

---------

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2024-04-10 08:01:29 -07:00
Azure SDK Bot
7f2f593b30
Increment version for core releases (#5503)
* Increment package version after release of azure-core-amqp

* Increment package version after release of azure-core
2024-04-09 14:39:30 -07:00
Larry Osterman
68d88eb80a
Updated azure core dependency to the new 1.11.3 version (#5501) 2024-04-09 18:58:17 +00:00
Ahson Khan
0bdec1e3c9
Core April GA Release (#5491)
* Azure Core 1.12.0 April Release

* Update Core's CHANGELOG.md

* Update Core's package_version.hpp

* Update AMQPCHANGELOG.md

* Update ci.tests.yml

* Re-enable coverage checks

---------

Co-authored-by: Anton Kolesnyk <41349689+antkmsft@users.noreply.github.com>
Co-authored-by: Daniel Jurek <djurek@microsoft.com>
2024-04-09 10:45:25 -07:00
Ahson Khan
da1513977a
Rename the TESTING_BUILD macro to be _azure_TESTING_BUILD to highlight this is internal only and reduce chances of collision. (#5419)
* Remove the use of ifdef for TESTING_BUILD in KeyVault clients, where they are not needed.

* Rename the TESTING_BUILD macro to be _azure_TESTING_BUILD to highlight this is internal only and reduce chances of collision.

* Update remaining macro names and add comments.

* Revert rename change which was using BUILD_TESTING cmake flag in source.
2024-04-05 12:05:04 -07:00