Commit Graph

910 Commits

Author SHA1 Message Date
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
Ahson Khan
ce6b3bd124
Strengthen the client_secret sanitizer regex (#5474)
* Strengthen the client_secret sanitizer regex

* clang-format update
2024-04-04 15:04:15 -07:00
Anton Kolesnyk
d62b0d6669
Revert "Move the connection back to the connection pool when HTTP error 404 was received (#5308)" (#5472)
* Revert "Move the connection back to the connection pool when HTTP error 404 was received (#5308)"

This reverts commit 79cc06d004.

* Changelog

---------

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2024-04-02 17:08:34 -07:00
George Arama
84e4a81947
Api view comments (#5408)
* mroe quotes

* dssf

* listTables -> queryTables

* move create/delete to the tableservice

* one more batch

* small refactor, added default data types

* oops

* clangs

* table sas builder

* sas test

* cspell

* add more test

* cspell

* hjhjh

* clang

* rename table-> tables

* clang

* partition and row key

* clang why?

* constructors, update tests

* IT WORKSSSSS

* PR comments

* wqe

* ewr

* enum operator

* clang

* dsaada

* sada

* assets.json

* clang

* Update sdk/tables/azure-data-tables/inc/azure/data/tables/enum_operators.hpp

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

* Update sdk/core/azure-core/test/ut/string_test.cpp

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

* the = enums

* assert and remove empty

* compact string tests

* clangs

* complement

* azureSasCredentials

* PR cpmments

* some extra

* clang 11

---------

Co-authored-by: Anton Kolesnyk <41349689+antkmsft@users.noreply.github.com>
2024-03-15 14:30:45 -07:00
Larry Osterman
d7bd238560
Added blocking Open for message sender (#5374)
* Added blocking Open for message sender

* Blocking message sender open; added AZURE_NODISCARD to help ensure APIs that are likely to fail have their returns checked

* Update eventhubs stress test to use DefaultAzureCredential instead of ClientSecretCredential; Fixed stress test to correctly request client parameters; Removed hard coded resource name from producer client test

* Pull request feedback with link events; renamed AZURE_NODISCARD to _azure_NODISCARD

---------

Co-authored-by: Rick Winter <rick.winter@microsoft.com>
2024-03-13 12:44:41 -07:00
Scott Beddall
3658df22db
1ES Template Refactor (#5441)
* All eng/ folder changes necessary to enable 1es-templates for the azure-sdk-for-cpp
* Includes updates to all ci.yml files to reflect new syntax requirements from 1es-template changes to archetype-sdk-client
2024-03-12 15:20:45 -07:00
Anton Kolesnyk
aad2299dcd
Revert commits related to _azure_BUILD_FOR_TESTING and _azure_*_FOR_TESTS (#5416)
* Revert "Remove the use of ifdef for TESTING_BUILD in KeyVault clients, where (#5406)"

This reverts commit 2d8c940f55.

* Revert "Rename the TESTING_BUILD macro to be _azure_TESTING_BUILD to highlight (#5390)"

This reverts commit 256c2df8b5.

* Revert "Use new macros in existing surface area, so that classes marked as final don't have virtual methods. (#5389)"

This reverts commit 3d7eaddb9d.

* Revert "For new surface area, classes marked as final should not have virtual methods. (#5331)"

This reverts commit ddd0f4bd07.

---------

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2024-03-07 04:03:35 +00:00
Anton Kolesnyk
e4002aeff7
Fix warnings that block the Live CI pipeline (#5398)
* Fix warnings that block the Live CI pipeline

---------

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2024-03-05 08:17:56 +00:00
Ahson Khan
256c2df8b5
Rename the TESTING_BUILD macro to be _azure_TESTING_BUILD to highlight (#5390)
this is internal only and reduce chances of collision.
2024-03-01 05:45:36 +00:00
Ahson Khan
3d7eaddb9d
Use new macros in existing surface area, so that classes marked as final don't have virtual methods. (#5389)
* Use new macros in existing surface area, so that classes marked as final don't have virtual methods.

* Update doc comments.

* Use DOXYGEN_PREDEFINED to expand only the macros we want expanded.

* Add the compile definition for more projects.

* Address PR feedback.

* Make TestableTokenCache a friend class of TokenCache.
2024-02-29 20:48:12 -08:00
Morten Ofstad
93d8c12e4c
Fix use of namespace qualifiers that have not been explicitly introduced (#5371)
* Fix use of namespace qualifiers that have not been explicitly introduced.

* Format (sort usings alphabetically)

* Update CHANGELOG.md

* Update cspell.json

---------

Co-authored-by: Morten Ofstad <morten.ofstad@bluware.com>
Co-authored-by: Anton Kolesnyk <41349689+antkmsft@users.noreply.github.com>
2024-02-29 02:51:42 +00:00
Larry Osterman
c707769604
Updated tests to support -UserAuth test resources switch to enable non-corpnet access. (#5387)
* Updated tests to support -UserAuth test resources switch to enable non-corpnet access.

* Try setting sample environment variables in sample script pipeline
2024-02-28 01:36:54 +00:00
Anton Kolesnyk
00b30e3d86
AMQP: do not use scope.MinimumExpiration when getting SAS Token (#5376)
* AMQP: do not use scope.MinimumExpiration when getting SAS Token

* Remove unused parameters

* Match style

---------

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2024-02-23 15:11:40 -08:00
Larry Osterman
aadd25dcd1
Reworked EventHubs Stress test to export information to OpenTelemetry (#5370)
# Significant rewrite of Eventhubs stress test.

## Cleaned up implementation of EventHubs stress/reliability test

* Reworked stress test layout to isolate stress test implementation from stress deployment elements.
* Added ability of stress test scenarios to be independently configured.
* Rewrote stress test app to be closer to the Go equivalent app.
* added apparg.hpp for command line parsing
* added scope_guard to test for scope_guard implementation.

## Added close methods to Consumer client and Producer client.

They don't do much currently, but will eventually.

## AI Generated summary of pull request

This pull request primarily focuses on the `azure-core-amqp` and `azure-messaging-eventhubs` packages, introducing changes to improve code efficiency and maintainability. The most significant changes include the removal of unnecessary `#include` directives in various files in the `azure-core-amqp` package, the addition of `Close` methods in `consumer_client.hpp` and `producer_client.hpp` in the `azure-messaging-eventhubs` package, and modifications to the `cgmanifest.json` files in the `azure-messaging-eventhubs-checkpointstore-blob` and `azure-messaging-eventhubs` directories.

Removal of unnecessary `#include` directives:

* [`sdk/core/azure-core-amqp/src/amqp/claim_based_security.cpp`](diffhunk://#diff-5acd7049cef5955540cc4253f264207e5a7d2701612e148c736ca5781e69d224L12-L14): Removed unnecessary `#include` directives for `iostream` and `sstream`.
* [`sdk/core/azure-core-amqp/src/amqp/connection.cpp`](diffhunk://#diff-fc3a6e5b11f1254c4fd344bcd1846c83ad4ca8e2a8a23b7db0657c2846f43937L18): Removed unnecessary `#include` directive for `azure/core/url.hpp`.
* [`sdk/core/azure-core-amqp/src/amqp/connection_string_credential.cpp`](diffhunk://#diff-14cf130dc5f0b51f698cca57724b733591d48fad0e5beb4745fc1cd78cbdaa72L7-L20): Removed unnecessary `#include` directives for `azure/core/amqp/internal/models/amqp_protocol.hpp`, `azure_c_shared_utility/azure_base64.h`, `azure_c_shared_utility/buffer_.h`, and `iostream`.
* [`sdk/core/azure-core-amqp/src/amqp/link.cpp`](diffhunk://#diff-249643f29ca2c0b1226e9d22ce90be83c77105f55221a1092fb605a5c7ead356L10-L21): Removed unnecessary `#include` directives for `azure/core/amqp/internal/message_receiver.hpp`, `azure/core/amqp/internal/message_sender.hpp`, `azure/core/amqp/internal/models/messaging_values.hpp`, and `azure_uamqp_c/amqp_definitions_sequence_no.h`.
* [`sdk/core/azure-core-amqp/src/amqp/management.cpp`](diffhunk://#diff-b03544340ff264961e045648c2c274dde9fa7ceb33b07b0c41a708128e28d40fL6-L16): Removed unnecessary `#include` directives for `azure/core/amqp/internal/connection.hpp`, `azure/core/amqp/internal/session.hpp`, and `azure_uamqp_c/amqp_management.h`.

Addition of `Close` methods:

* [`sdk/eventhubs/azure-messaging-eventhubs/inc/azure/messaging/eventhubs/consumer_client.hpp`](diffhunk://#diff-fad00d7bec0f12ef5e7d36387e866ab5291c6f5f57568845dfabe3f23320c899R152-R159): Added a `Close` method to the `ConsumerClient` class.
* [`sdk/eventhubs/azure-messaging-eventhubs/inc/azure/messaging/eventhubs/producer_client.hpp`](diffhunk://#diff-cba1fbd1d786b763c27123a2284476e1cc8093753abe6e3a6af9ca78aae4d594R96-R113): Added a `Close` method to the `ProducerClient` class.

Modification of `cgmanifest.json` files:

* [`sdk/eventhubs/azure-messaging-eventhubs-checkpointstore-blob/cgmanifest.json`](diffhunk://#diff-465b096c14ed240a8f14180f16e0924e3df69bd1c95934dca435c0b3c97468a0R1-R37): Added a new `cgmanifest.json` file specifying development dependencies.
* [`sdk/eventhubs/azure-messaging-eventhubs/cgmanifest.json`](diffhunk://#diff-f3e86a1f7be148625ac80b2151504461f3faff4d0564db588c6df9d0d9eb0986R1-R48): Added a new `cgmanifest.json` file specifying development dependencies.
* 

---------

Co-authored-by: Rick Winter <rick.winter@microsoft.com>
2024-02-22 20:41:18 -08:00
George Arama
8ef815dc6a
Install test proxy and enable all tests (#5365)
* mroe quotes

* dssf

* compact the tests in the proper folder

* 2 more tests

* eqwq

* enabled all except http

* endline

* fhg

* oops

* new teests

* update

* update defaults

* hdg
2024-02-21 10:58:35 -08:00
Azure SDK Bot
c0c7f88e65
Increment package version after release of azure-core (#5366) 2024-02-16 17:13:53 -08:00
George Arama
2a9934a596
Core perf tests consolidation (#5363)
* mroe quotes

* dssf

* compact the tests in the proper folder

* 2 more tests

* eqwq

* enabled all except http

* endline
2024-02-16 15:15:36 -08:00
Anton Kolesnyk
46fe50212c
Azure Core 1.11.2 Release (#5360)
* Azure Core 1.11.2 Release

* Update release date to 2/16

---------

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2024-02-16 15:14:13 -08:00
George Arama
73bb6c63c1
Winhttp flaky test (#5356)
* mroe quotes

* dssf

* attempt 2

* updated test and logs

* clang

* update PR

* changelog update

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

Co-authored-by: Larry Osterman <LarryOsterman@users.noreply.github.com>

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

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

---------

Co-authored-by: Larry Osterman <LarryOsterman@users.noreply.github.com>
Co-authored-by: Anton Kolesnyk <41349689+antkmsft@users.noreply.github.com>
2024-02-15 15:55:03 -08:00
Anton Kolesnyk
9271d13542
Guard against Windows' min/max macros (#5348)
* Guard against Windows' min/max macros

* Add NOMINMAX and LEAN_AND_MEAN + clang-format

* clang-format

---------

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2024-02-13 13:41:34 -08:00
Larry Osterman
0229d0a3b3
Multithreaded support for Eventhubs management family of APIs (#5315)
* Enabled multithreaded calls to eventhubs management APIs

* Added partition client properties tests, removed unused variables in consumer client tests

* Restructured properties APIs in eventhubs to simplify producer client and consumer client implementations

* Fixed test crash in LinkAttachDetach AMQP test

* Added test cases for management authn failures

* Don't emit body contents in AmqpMessage insertion operator

* Don't take numeric value parameters by value to ostream insertion operators

* Updated eventhubs dependency to match reality

* Added value based tests for enumeration stream inserters
2024-02-09 14:22:28 -08:00
George Arama
50cc742865
Json test (#5324)
* mroe quotes

* dssf

* sqa

* Json test p1

* qw

* re

* pr build

* cast part 2

* ew

* jj
2024-02-07 12:20:52 -08:00
Anton Kolesnyk
025c06715c
Retroactively update AMQP's changelog (#5321)
Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2024-02-03 04:34:45 +00:00
Anton Kolesnyk
111ec80478
Update Azure Core changelog after #5308 (#5317)
Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2024-02-02 23:32:07 +00:00
Mykhailo Chelnokov
79cc06d004
Move the connection back to the connection pool when HTTP error 404 was received (#5308)
* Move the connection back to the connection pool when HTTP error 404 was received

* Use symbolic name for 404 status code
2024-02-02 14:10:58 -08:00
Azure SDK Bot
807b6c946a
Increment version for core releases (#5316)
* Increment package version after release of azure-core

* Increment package version after release of azure-core-amqp
2024-02-02 22:06:37 +00:00
George Arama
1689a00df9
Pipeline tests (#5310)
* mroe quotes

* dssf

* sqa

* pipeline and policies

* PR comments

* cast int
2024-02-02 13:03:38 -08:00
George Arama
4f6cc88004
Http Transport perf test (#5309)
* mroe quotes

* dssf

* sqa

* first identity test no caching

* cache no cache

* cleanup cache shortcircuit

* some cleanup

* http test 1

* Update sdk/core/perf/src/base_test.cpp

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

* PR comments

* remove cache option

* wqq

* dsd

* saa

* wqq

* dfs

* clang

* http get post curl winhttp

* Update sdk/core/perf/inc/azure/perf/dynamic_test_options.hpp

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

* rtter

* PR comments

* PT comments

* clang

* http transport test

* Update sdk/core/perf/src/base_test.cpp

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

* PR comments

* remove cache option

* wqq

* dsd

* saa

* wqq

* dfs

* clang

* http get post curl winhttp

* rtter

* PR comments

* PT comments

* clang

* http transport test

* PR comments

* clangs

---------

Co-authored-by: Anton Kolesnyk <41349689+antkmsft@users.noreply.github.com>
2024-02-02 11:28:26 -08:00
Anton Kolesnyk
901bd298e4
Azure Core February Releases (#5312)
Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2024-02-02 10:23:58 -08:00
Larry Osterman
092d6bcc3b
Fixed nightly CI pipeline build error (#5311)
* Fixed nightly CI pipeline build error

* printf format string errors
2024-02-02 10:10:09 -08:00
Anton Kolesnyk
9b79205b68
Azure Core February Releases (#5304)
Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2024-02-01 12:54:29 -08:00
George Arama
070c7e94db
Step 1 in adding (more)perf tests for Core and Identity. (#5300)
* mroe quotes

* dssf

* sqa

* first identity test no caching

* cache no cache

* cleanup cache shortcircuit

* some cleanup

* Update sdk/core/perf/src/base_test.cpp

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

* PR comments

* remove cache option

* wqq

* dsd

* saa

* wqq

* clang

* Update sdk/core/perf/inc/azure/perf/dynamic_test_options.hpp

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

* PR comments

* PT comments

* clang

---------

Co-authored-by: Anton Kolesnyk <41349689+antkmsft@users.noreply.github.com>
2024-02-01 10:47:02 -08:00
Larry Osterman
c2f189695c
Removed dead script (#5306) 2024-01-31 23:13:08 +00:00