Commit Graph

797 Commits

Author SHA1 Message Date
Larry Osterman
5f579513c2
Enable partial reads on EventHubs. (#4950)
* Added eventhubs test collateral to create and destroy eventhubs namespaces and eventhubs; Added peek message functionality to AMQP

* Use HTTP to talk to management APIs instead of az cli
2023-09-21 15:36:54 -07:00
Larry Osterman
f561b97ddb
Disable dockerfile scanning in CI (#4967) 2023-09-19 16:53:34 -07:00
Larry Osterman
165eace629
AMQP Stack polls for operations in a background thread. (#4914)
There are two significant parts to this fix. The first is that the Connection object now has a method EnableAsyncOperation which registers the connection with a background thread which polls the connection. The EnableAsyncOperation needs to be callable from outside the connection because in normal client operation, the calls to open the connection are all internal to uAMQP. That means that the message sender and receiver need to call it when they're opened (and closed).

The other major part of this change is that the AsyncOperationQueue now has a WaitForRequest API which does not normally poll (there is a test hook which enables polling but that is not normally used in most scenarios).

The other part of this change fixes some concurrency issues associated with the Log::Stream functionality.

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

* Update sdk/core/azure-core/src/logger.cpp

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

* Update sdk/core/azure-core/test/ut/CMakeLists.txt

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

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

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

* Added ASAN as an option, converted transports to be bases to ensure consistancy

---------

Co-authored-by: Anton Kolesnyk <41349689+antkmsft@users.noreply.github.com>
2023-09-13 11:12:46 -07:00
microzchang
5afc901bef
Storage/TestProxy playback mode ignore storage sas version (#4941)
* Playback ignore storage sas version

* remove space
2023-09-12 05:00:21 +00:00
Azure SDK Bot
329eda3114
Increment package version after release of azure-core-amqp (#4933) 2023-09-07 16:05:12 -07:00
Anton Kolesnyk
93a0942c6a
Azure Core AMQP September Release (#4928)
Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2023-09-07 12:18:42 -07:00
Anton Kolesnyk
146460ec5a
Acknowledge community contributions in the changelogs (#4919)
* Acknowledge customer contributions in the changelogs

* cspell

---------

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2023-09-05 14:05:19 -07:00
adamdebreceni
69fe21f7b0
Address gcc13 compilation issue (#4857) 2023-08-22 13:49:35 -07:00
Ahson Khan
384c1ae01e
Update core ci.yml so that some CI pipeline runs when modifying markdown files at the root of the repo (#4900)
* Update core ci.yml so that some CI pipeline runs when modifying markdown files at the root of the repo

* Update ci.yml for PRs.

* Update README.md to test that CI triggers.

* Check why wildcard isn't working as expected

* Try wrapping wildcard in quotes since it is at the start of the path to trigger
2023-08-18 14:51:46 -07:00
JinmingHu
f6f2617201
Add some test cases for blob service (#4890) 2023-08-18 03:58:31 +00:00
Larry Osterman
85d1a669e9
Removed version>= dependency for curl (#4892)
* Removed version>= dependency for curl

* removed another curl version check
2023-08-17 18:28:58 +00:00
Larry Osterman
b108bf6235
Post-release updates (#4871)
* Added link credit support to message sender and receiver; reworked message receiver creation to move to the partition client object

* Added round trip test, including filters; fixed a hang with the consumer client caused by no messages; fixed checkpoint store storage names.

* EventDataBatch is created from EventProducer. Fixes #4868

* SendEventDataBatch renamed to Send; pass in Context on methods which require a context

* Added producer client send APIs without requiring an explicit event data batch

* close message receiver in destructor if it is open

* Consumer client and producer client only create message sender and receiver when needed
2023-08-17 09:52:54 -07:00
Ahson Khan
25f33e9800
Update azure-core dependency on curl to 7.48 from 7.44 since that's the minimum available on vcpkg. (#4882)
* Update azure-core dependency on curl to 7.48 from 7.44 since that's the minimum available on vcpkg.

* Update nested vcpkg.json to 7.48
2023-08-16 15:13:23 -07:00
Ahson Khan
e3a5a44e46
Update amqp dependency on core that isn't a beta (#4881)
As far as I know, this is the minimum version of core that's needed. If we need a newer version that we amqp needs, we can bump up this dependency.
2023-08-16 15:12:58 -07:00
JinmingHu
3b91ee9c9a
add sanitizer for cookie and set-cookie headers (#4870) 2023-08-15 00:47:33 +08:00
Richard Park
3e5af5508f
Readme spelling mistake: bahavior -> behavior (#4863)
* bahavior -> behavior

* Update transport_adapter_base_test.hpp to fix the typo

* Update blob_base_test.hpp to fix the typo

* Update cspell.json to exclude bahavior is a valid word in the dictionary

---------

Co-authored-by: Ahson Khan <ahson_ahmedk@yahoo.com>
2023-08-09 15:36:13 -07:00
JinmingHu
98c2e319dc
add sanitizer for x-ms-copy-source-authorization header (#4851) 2023-08-09 11:29:37 +08:00
Azure SDK Bot
660180ffd2
Increment version for core releases (#4846)
* Increment package version after release of azure-core-amqp

* Increment package version after release of azure-core
2023-08-04 16:06:59 -07:00
Anton Kolesnyk
35ee073d91
Azure Core August Releases (#4837)
Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2023-08-04 12:22:22 -07:00
Larry Osterman
9fbc3856ad
Create EventHubs stress and performance test basics. (#4818)
* Scaffolding for eventhubs perf test

* Added eventhubs 'stress' test, which is really a totally broken perf test'

* Added stress test skeleton

* EventHubs Stress test is an actual eventhubs test now

* EventHubs throws exceptions on producer client failure. Rationalized error reporting from AMQP - message sender and receiver generate the same errors.

* Rationalize AMQP error results; throw exceptions on eventhubs errors

* Fixed amqp management test; added HTTP status code for management triggered exceptions

* Event Data binary no longer takes an AMQP binary; Preliminary readme.md for eventhubs (still many go constructs in the readme)

* Created the first eventhubs samples - they don't do much but they work

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

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

* API Review feedback

* Added isTransient flag to eventhubs exception based on Java implementation

* Updated AMQP changelog to reflect recent changes

---------

Co-authored-by: Ahson Khan <ahkha@microsoft.com>
Co-authored-by: Rick Winter <rick.winter@microsoft.com>
2023-08-04 11:40:30 -07:00
Rick Winter
db328891d5
Support root cert validation on CURL (#4821)
* Only CURL >= 7.44 supports root cert validation

* Update Changelog
2023-07-28 09:39:05 -07:00
JinmingHu
ce85f6f12c
improve test proxy sanitizers (#4796) 2023-07-25 12:52:50 +08:00
Anton Kolesnyk
0a175f2c83
Clean up version requirements (#4814)
* Clean up version requirements

* Revert curl back to 7.44

* Update vcpkg.json

---------

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2023-07-20 16:03:57 -07:00
Anton Kolesnyk
909d08cdb7
Update changelog for the next release of AMQP (#4813)
Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2023-07-20 11:40:19 -07:00
Ahson Khan
c85e9bd11f
Disable libcurl globalCleanUp test until it has been investigated (#4797)
* Disable libcurl globalCleanUp test until it has been investigated

* Update curl_connection_pool_private.hpp friend class name for the disabled test

* Update curl_session_private.hpp friend class name for the disabled test
2023-07-17 16:04:11 -07:00
JinmingHu
9af264c316
Add sanitizer for test-proxy to scrub client secrets from recording files (#4769)
* Add sanitizer for test-proxy
2023-07-15 11:44:20 +08:00
Larry Osterman
a627ab3f22
Initial creation of EventHubs service by @gearama (#4755) 2023-07-13 12:39:18 -07:00
Ahson Khan
5ea89474e7
Verify that the nlohmann json library gracefully handles UTF-8 BOM at the start of the payload (#4775) 2023-07-13 11:46:18 -07:00
Rick Winter
b54d509c72
Use standard syntax for MIT license (#4786)
* Use standard syntax for MIT license

* Stop appending "All rights reserved"
2023-07-12 22:37:36 -07:00
Anton Kolesnyk
8776e31e66
Format vcpkg manifest (#4767)
* Format vcpkg manifest

* 1.9.0-beta.1

---------

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2023-07-10 18:21:01 -07:00
Anton Kolesnyk
7da5a4568c
Update vcpkg baseline (#4772)
* Update vcpkg baseline

* Update in another place as well

* Remove default-features requirement for telemetry and amqp in manifest mode

* Also remove default-features for storage

---------

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2023-07-10 14:22:40 -07:00
Ahson Khan
cf1c01e089
Codifying the behavior of json.contains with nested properties, in the unit test. (#4763) 2023-07-10 11:48:09 -07:00
Anton Kolesnyk
2f3e5de931
Fix dependencies for azure-core-amqp-cpp (#4770)
* Fix dependencies for azure-core-amqp-cpp

* Update sdk/core/azure-core-amqp/CMakeLists.txt

---------

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2023-07-07 12:23:12 -07:00
Azure SDK Bot
e5ea1007ec
Increment version for core releases (#4760)
* Increment package version after release of azure-core

* Increment package version after release of azure-core-amqp
2023-07-06 14:59:45 -07:00
Ahson Khan
e82dd8dcb4
Update core CHANGELOG.md wording to be more accurate (#4758) 2023-07-06 11:56:32 -07:00
Anton Kolesnyk
0dffddb160
Azure Core July Release (#4752)
Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2023-07-06 05:59:52 -07:00
Anton Kolesnyk
8c748719d4
Enable phasing out a breaking change in Core in a step-by-step manner (#4749)
* Enable phasing out a breaking change in Code in a step-by-step manner

* Update messages

* Fully qualify namespace in Changelog

---------

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2023-07-05 15:39:57 -07:00
Larry Osterman
743a20fd5b
Prepare for AMQP Release (#4739) 2023-06-28 09:15:47 -07:00
Larry Osterman
fba91e34c9
Enabled doxygen validation in CI pipeline. (#4715)
* doxygen fixes

* enable doxygen errors now that doxygen is updated.

---------

Co-authored-by: Ahson Khan <ahkha@microsoft.com>
Co-authored-by: Anton Kolesnyk <41349689+antkmsft@users.noreply.github.com>
Co-authored-by: Rick Winter <rick.winter@microsoft.com>
2023-06-22 18:26:07 -07:00
Larry Osterman
0b59e5a94c
Documented log class (#4711)
* Documented log class

* cspell
2023-06-12 16:59:28 -07:00
Larry Osterman
5a9106f2a5
Convert AMQP Management APIs to use MessageSender and MessageReceiver instead of uAMQP version. (#4706)
* Switched management implementation to use message sender and receiver instead of uAMQP implementation.

* Made value conversion to AmqpValue explicit to work around what appears to be a gcc9 bug

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

* pull request feedback

---------

Co-authored-by: Ahson Khan <ahkha@microsoft.com>
2023-06-12 13:57:54 -07:00
Rick Winter
fb1b439ddc
Remove a private internal method that is not used. (#4667) 2023-06-09 13:55:32 -07:00
George Arama
c45dff4c9f
Fix for the flaky curl test (#4670)
* Fix for the flaky curl test

* Larry's comment

* clang format applied

* updated comment

* clang-format-11 -i
2023-06-08 11:47:08 -07:00
Larry Osterman
9bc784050e
Moved logger back to cerr (#4702)
* Moved logger back to cerr

* Simplified stream logger experience; removed need for std::endl
2023-06-07 20:41:24 +00:00
Larry Osterman
0dd8882462
Add the ability to log diagnostics using an ostream. Fixes #4696 (#4700)
* Fixes #4696 - Added support to Log::Write to use insertion operators for logging

* EnvironmentLogger writes to stderr on errors, stdout for non-errors; Also don't double insert crlf in messages

---------

Co-authored-by: Ahson Khan <ahkha@microsoft.com>
2023-06-06 22:20:20 +00:00
Ahson Khan
2f7a3eec8b
Fix casing typo in a doc comment within amqp_error.hpp (#4701) 2023-06-06 19:08:36 +00:00
Larry Osterman
0516518265
Hopefully final AMQP shape changes. (#4690)
* Added amqp_definitions_fields to list of 'special' uAMQP headers

* Tidy up x64-static-debug-perftests preset

* Moved test functions to private and use friend functions for tests; Renamed Management to ManagementClient and made it constructable from Session.

---------

Co-authored-by: Rick Winter <rick.winter@microsoft.com>
2023-06-06 09:10:39 -07:00
Larry Osterman
184303a893
Manually disable tests in all vcpkg portfile.cmake files (#4697) 2023-06-05 11:52:21 -07:00
Azure SDK Bot
e05c92c484
Increment package version after release of azure-core (#4687) 2023-06-02 10:19:19 -07:00
Anton Kolesnyk
16a64ab3e9
Fix live tests CI compilation (unused variable warning - gets treated as error) (#4685)
* Fix live tests CI compilation (unused variable warning - gets treated as error)

* A warning popped up in opentelemetry due to header reordering

---------

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2023-06-01 17:52:44 -07:00