Commit Graph

908 Commits

Author SHA1 Message Date
Bernd Verst e875420d36 Pin certification tests to dapr v1.8.0
Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
2022-07-07 15:53:36 -07:00
ItalyPaleAle 12d2e7852c Added more logging to state conformance tests
Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
2022-07-07 15:50:22 -07:00
ItalyPaleAle 05a8dbb75b Added conformance test for Azure Blob Storage state store
Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
2022-07-07 15:50:22 -07:00
Bernd Verst 70c9b3183c Pin certification tests to v1.8.0-rc.4
Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
2022-07-07 15:50:16 -07:00
Alessandro (Ale) Segala a193cc1ede
Add support for AAD auth in Azure Storage Queues binding (#1842)
* Add support for AAD auth in Azure Storage Queues binding

Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>

* 🧹

Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>

Co-authored-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
2022-07-03 14:17:38 -07:00
Alessandro (Ale) Segala 940b003cb4
Merge branch 'master' into eventhubs-no-hardcoded-topic 2022-07-01 16:56:31 -07:00
Alessandro (Ale) Segala cedaacbb7c
Make metadata keys uniform for Azure Storage components (#1837)
* Make metadata keys uniform for Azure Storage components

By using aliases we are preserving backwards-compatibility

Fixes #1832

Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>

* Updated bindings.azure.storagequeues too

Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>

* Updated state.azure.tablestorage too

Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>

* 💄

Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>

* 🧹

Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>

Co-authored-by: Loong Dai <long.dai@intel.com>
Co-authored-by: Dapr Bot <56698301+dapr-bot@users.noreply.github.com>
2022-07-01 12:05:11 -07:00
ItalyPaleAle 15f99b0b61 Do not hardcode specific testTopicName
Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
2022-07-01 18:51:08 +00:00
ItalyPaleAle b58464ad1c Make RabbitMQ retry more than once
Also updated tests to remove unused options and add more logging

Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
2022-06-27 22:31:31 +00:00
ItalyPaleAle 476b95990f Pulsar: do not disconnect in case of error processing message
Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
2022-06-27 21:29:54 +00:00
Alessandro (Ale) Segala c3f8b78e0d
Merge branch 'master' into pubsub-no-builtin-retries 2022-06-27 14:13:01 -07:00
ItalyPaleAle a942b05b4a Added redeliveryDelay to pubsub.pulsar
Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
2022-06-27 21:12:34 +00:00
tanvigour 1eb8fd92f4
Azure Table Storage Certification tests (#1816)
* Azure Table Storage Certification tests

Signed-off-by: tanvigour <tanvi.gour@gmail.com>

* use env variable instead

Signed-off-by: tanvigour <tanvi.gour@gmail.com>

* address feedback

Signed-off-by: tanvigour <tanvi.gour@gmail.com>

* Add the component to certification workflow and fix the service url

Signed-off-by: tanvigour <tanvi.gour@gmail.com>

* Fix all the errors

Signed-off-by: tanvigour <tanvi.gour@gmail.com>

* Fix all errors

Signed-off-by: tanvigour <tanvi.gour@gmail.com>
2022-06-27 14:01:50 -07:00
ItalyPaleAle 0c40dccd07 pubsub.mqtt: re-enqueue messages when they fail
Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
2022-06-27 20:47:16 +00:00
ItalyPaleAle a021fb5f9d Track out-of-order messages only on first retry
Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
2022-06-27 20:36:15 +00:00
Sky Ao cfdba5ee1d
change some parameters to wait for kafka ready (#1806)
Signed-off-by: Sky Ao <aoxiaojian@gmail.com>
2022-06-21 09:12:33 -07:00
Sky Ao 0b2e48a4da
Fix kafka binding consumer rebalance (#1804)
* improve log of kafkaf components cert test

Signed-off-by: Sky Ao <aoxiaojian@gmail.com>

* add close() method to kafka binding component to fix the consumer rebalance bug

Signed-off-by: Sky Ao <aoxiaojian@gmail.com>

Co-authored-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
2022-06-21 06:56:09 -07:00
tanvigour 55a3d7f7d4
Complete Eventhubs bindings certification test (#1716)
* Complete Eventhubs bindings certification test

Signed-off-by: tanvigour <tanvi.gour@gmail.com>

* check if single test point runs all good

Signed-off-by: tanvigour <tanvi.gour@gmail.com>

* check if single test point runs all good

Signed-off-by: tanvigour <tanvi.gour@gmail.com>

* increase the sleep time to fix timeout

Signed-off-by: tanvigour <tanvi.gour@gmail.com>

* increase the sleep time to fix timeout

Signed-off-by: tanvigour <tanvi.gour@gmail.com>

* increase sleep for all other testpoints too

Signed-off-by: tanvigour <tanvi.gour@gmail.com>

* test behavior of single partition test

Signed-off-by: tanvigour <tanvi.gour@gmail.com>

* delete eventhub and container afer run

Signed-off-by: tanvigour <tanvi.gour@gmail.com>

* delete eventhub and container afer run

Signed-off-by: tanvigour <tanvi.gour@gmail.com>

* delete eventhub and container afer run

Signed-off-by: tanvigour <tanvi.gour@gmail.com>

* test reconnection in one test point only

Signed-off-by: tanvigour <tanvi.gour@gmail.com>

* test reconnection in one test point only

Signed-off-by: tanvigour <tanvi.gour@gmail.com>

* test reconnection in one test point only

Signed-off-by: tanvigour <tanvi.gour@gmail.com>

* test reconnection in one test point only

Signed-off-by: tanvigour <tanvi.gour@gmail.com>

* test reconnection in one test point only

Signed-off-by: tanvigour <tanvi.gour@gmail.com>

* delete the container after every test run for cleanup

Signed-off-by: tanvigour <tanvi.gour@gmail.com>

* run service principal test

Signed-off-by: tanvigour <tanvi.gour@gmail.com>

* Go mod tidy-all

Signed-off-by: tanvigour <tanvi.gour@gmail.com>

* revert back changes to last clean state

Signed-off-by: tanvigour <tanvi.gour@gmail.com>

* add unique consumer id per component yaml

Signed-off-by: tanvigour <tanvi.gour@gmail.com>

* remove consumer id from singlepartition test component yaml

Signed-off-by: tanvigour <tanvi.gour@gmail.com>

* remove repetitive test case, test service principal case

Signed-off-by: tanvigour <tanvi.gour@gmail.com>

* remove repetitive test case, test service principal case

Signed-off-by: tanvigour <tanvi.gour@gmail.com>

* test iothub

Signed-off-by: tanvigour <tanvi.gour@gmail.com>

* test iothub

Signed-off-by: tanvigour <tanvi.gour@gmail.com>

* run service principal test

Signed-off-by: tanvigour <tanvi.gour@gmail.com>

* run service principal test

Signed-off-by: tanvigour <tanvi.gour@gmail.com>

* run service principal test

Signed-off-by: tanvigour <tanvi.gour@gmail.com>

* run service principal test

Signed-off-by: tanvigour <tanvi.gour@gmail.com>

* add connection string to eventhub service principal yaml

Signed-off-by: tanvigour <tanvi.gour@gmail.com>

* use a particular partition

Signed-off-by: tanvigour <tanvi.gour@gmail.com>

* enable iothub test

Signed-off-by: tanvigour <tanvi.gour@gmail.com>

* enable iothub test

Signed-off-by: tanvigour <tanvi.gour@gmail.com>

* enable iothub test

Signed-off-by: tanvigour <tanvi.gour@gmail.com>

* final cleanup and test run

Signed-off-by: tanvigour <tanvi.gour@gmail.com>

* final cleanup and test run

Signed-off-by: tanvigour <tanvi.gour@gmail.com>

* final cleanup and test run

Signed-off-by: tanvigour <tanvi.gour@gmail.com>

* add test plan readme

Signed-off-by: tanvigour <tanvi.gour@gmail.com>

* rollback the bicep change that is not needed

Signed-off-by: tanvigour <tanvi.gour@gmail.com>

* make sure through test that a specific partition receives specific data

Signed-off-by: tanvigour <tanvi.gour@gmail.com>

* clean the container between two partiton assertions

Signed-off-by: tanvigour <tanvi.gour@gmail.com>

* put back partition id in yaml

Signed-off-by: tanvigour <tanvi.gour@gmail.com>

* add same level of partition testing for both partitions

Signed-off-by: tanvigour <tanvi.gour@gmail.com>

* address feedback

Signed-off-by: tanvigour <tanvi.gour@gmail.com>

Co-authored-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
2022-06-20 14:46:49 -07:00
Sky Ao d6dd10e19d
improve log of kafkaf components cert test (#1800)
Signed-off-by: Sky Ao <aoxiaojian@gmail.com>
2022-06-20 09:49:09 -07:00
Bernd Verst 55888c0d22
update imports for Fossa and Certification test (#1796)
* update imports for Fossa and Certification test

Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>

* modtidy

Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
2022-06-17 15:51:22 -07:00
Alessandro (Ale) Segala a08988c25e
Shared implementation for Azure Service Bus subscriptions for binding and pubsub (#1791)
* Moved ASB subscription code to a shared package

Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>

* Moved ASBQ binding to use the shared ASB implementation

Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>

* Updating Azure Service Bus SDK version

Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
2022-06-17 15:12:15 -07:00
Bernd Verst f25b26fc0c
Upgrade to Azure Table Storage Track 2 SDK in State Store and add CosmosDB Table API support (#1792)
* Upgrade to Azure Table Storage Track 2 SDK in State Store

Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>

* make modtidy-all

Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>

* don't panic

Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>

* fix error parsing

Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>

* Adds support for empty rowKeys again

Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>

* Pin aztables v1.0.1

Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>

* Add support for Cosmos DB Table API

Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>

* Add Azure Table Storage CosmosDB conformance test

Signed-off-by: GitHub <noreply@github.com>

* Address code review

Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>

* Create Table Storage State store subtests

Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>

* Address linter issue

Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>

* context instead of ctx

Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>

* load state store in conf tests

Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>

* use cosmosDB mode in cosmosDB test

Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>

* Add Azure AD support for Table Storage

Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>

* remove shadow declaration

Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>

* make accountKey optional

Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>

* Add options to skip table creation

Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
2022-06-17 14:04:53 -07:00
Christian Kaps 6f159394b7
Update to Camunda Platform 8 (#1787)
Signed-off-by: Christian Kaps <ck-github@mohiva.com>

Co-authored-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
2022-06-14 10:01:41 -07:00
deepanshuagarwal a0ef46265b
Adding Pinger interface and Removing mandatory nature of Ping fuction (#1784)
* add `Pinger` interface.

Signed-off-by: chanyong.moon <dev.chanyongmoon@gmail.com>

* Convert Ping fuction to optional

Signed-off-by: Deepanshu Agarwal <deepanshu.agarwal1984@gmail.com>

* Removing unrequired Ping implementations

Signed-off-by: Deepanshu Agarwal <deepanshu.agarwal1984@gmail.com>

* Addressing comments

Signed-off-by: Deepanshu Agarwal <deepanshu.agarwal1984@gmail.com>

Co-authored-by: chanyong.moon <dev.chanyongmoon@gmail.com>
2022-06-14 08:27:54 -07:00
Bernd Verst 83a76d556a
Upgrade Apache Dubbo again - pin to Dapr support branch (#1786) 2022-06-13 19:10:51 -07:00
dependabot[bot] 1db4173a9d
Bump github.com/open-policy-agent/opa from 0.23.2 to 0.40.0 (#1757)
* Bump github.com/open-policy-agent/opa from 0.23.2 to 0.40.0

Bumps [github.com/open-policy-agent/opa](https://github.com/open-policy-agent/opa) from 0.23.2 to 0.40.0.
- [Release notes](https://github.com/open-policy-agent/opa/releases)
- [Changelog](https://github.com/open-policy-agent/opa/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-policy-agent/opa/compare/v0.23.2...v0.40.0)

---
updated-dependencies:
- dependency-name: github.com/open-policy-agent/opa
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update go mods

Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
2022-06-10 13:00:34 -07:00
Laurence 7145287978
fix: dubbo binding enhancement (#1782)
* fix: dubbo binding enhancement

Signed-off-by: LaurenceLiZhixin <382673304@qq.com>

* fix: tidy all

Signed-off-by: LaurenceLiZhixin <382673304@qq.com>

* mod tidy

Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>

* Pin couchbaselabs/gojcbmock to commit with LICENSE

Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>

* modtidy again

Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>

* commit to retrigger tests

Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>

Co-authored-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
2022-06-10 12:16:37 -07:00
Yaron Schneider 37693b8d63
Add postgresql certification test + connection idle time (#1778)
* Add postgresql certification test + connection idle time

Signed-off-by: yaron2 <schneider.yaron@live.com>

* change flow name

Signed-off-by: yaron2 <schneider.yaron@live.com>

* go mod tidy

Signed-off-by: yaron2 <schneider.yaron@live.com>

* add to workflow

Signed-off-by: yaron2 <schneider.yaron@live.com>
2022-06-10 11:07:26 -07:00
deepanshuagarwal 1af102f6f3
Add Redis StateStore Certification Tests (#1763)
* Add redis certification test

Signed-off-by: Deepanshu Agarwal <deepanshu.agarwal1984@gmail.com>

* Adding Test Plan in ReadMe

Signed-off-by: Deepanshu Agarwal <deepanshu.agarwal1984@gmail.com>

* Adding redis state cert test to workflow

Signed-off-by: Deepanshu Agarwal <deepanshu.agarwal1984@gmail.com>

* Overwrite open telemetry dependency

Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>

Co-authored-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
2022-06-07 18:30:54 -07:00
Alessandro (Ale) Segala 157ddc6d6b
Bumped dapr/dapr in cert tests (#1773)
* Bumped dapr/dapr in cert tests

Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>

* Updated interface

Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>

* Added missing go.mod

Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>

* More fixes

Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>

* Fix eventhubs not closing on context cancelation

Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
2022-06-07 08:24:15 -07:00
Alessandro (Ale) Segala 704f4dd730
Add contexts to pubsub.Subscribe to allow early cancelation (#1756)
This commit is related to dapr/dapr#4624. As noted there, we have an issue in the runtime where all components are shut down after the grace period, when the app is likely already stopped. Because of that, certain input components (the subscribe part of pubsub and the input part of bindings - the latter not in scope of this PR), can continue bringing new work when it's known to fail.

In order to fix the issue linked above properly, we need to implement a way for PubSub components to have the "publish" part closed before the "subscribe" one (and in the future that will need to be done for input bindings too).

This commit achieves precisely that by adding a context in the Subscribe method. When that context is canceled (which can be at any time), the subscription is removed.

PS: This API change was implemented so it can one day be used for dapr/dapr#814 too, as it allows canceling individual subscriptions by using a different context. Although that's not possible today because it requires more work on the runtime, it does implement everything that's needed in the pubsub components already.
Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
2022-06-02 15:06:36 -07:00
Alessandro (Ale) Segala 7c35a4e04c
Added test for multiple pubsub handlers (#1743)
* Added test for multiple pubsub handlers

This patch adds conformance tests for PubSub with multiple handlers, each listening on a different topic.

It's meant to catch issues such as #1709

Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>

* Added missing go.mod for storagequeues binding test

Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
2022-06-02 10:22:15 -07:00
Alessandro (Ale) Segala ca9fbf690e
Fixed Kafka PubSub to allow multiple handlers for different topics (#1755)
* Fixed Kafka PubSub to allow multiple handlers for different topics

With this, tests from #1743 are passing

Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>

* Removed read lock (for now)

Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>

* Updated as requested by @skyao

Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>

* Use interface type everywhere

Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>

* Fixed panic

Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>

Co-authored-by: Yaron Schneider <schneider.yaron@live.com>
2022-06-01 15:31:11 -07:00
Laurence a323748d75
Feat: Add apache dubbo output binding (#1768)
* feat: support apache/dubbo

Signed-off-by: LaurenceLiZhixin <382673304@qq.com>

* fix: comments

Signed-off-by: LaurenceLiZhixin <382673304@qq.com>

* fix: gofumpt test file

Signed-off-by: LaurenceLiZhixin <382673304@qq.com>

* feat: dubbo cert test

Signed-off-by: LaurenceLiZhixin <382673304@qq.com>

* fix: add missiing header

Signed-off-by: LaurenceLiZhixin <382673304@qq.com>

Co-authored-by: Loong Dai <long.dai@intel.com>
2022-06-01 10:38:29 -07:00
Sky Ao e2aced1169
Add certification test for kafka bindings component (#1758)
* add certification test for kafka binding, the first version is copied from kafka pubsub to verify github flow

Signed-off-by: Sky Ao <aoxiaojian@gmail.com>

* only run kafka pubsub and binding cert test in development

* fix typo

Signed-off-by: Sky Ao <aoxiaojian@gmail.com>

* run only kafka bindings

Signed-off-by: Sky Ao <aoxiaojian@gmail.com>

* add certification test for kafka binding: with and without retry

Signed-off-by: Sky Ao <aoxiaojian@gmail.com>

* add config.yaml file back for kafka binding certification test

Signed-off-by: Sky Ao <aoxiaojian@gmail.com>

* rollback to run all cert test before PR

Signed-off-by: Sky Ao <aoxiaojian@gmail.com>

* update dependencies for kafka pubsub certification test

Signed-off-by: Sky Ao <aoxiaojian@gmail.com>

* update dependencies for kafka pubsub certification test(again)

Signed-off-by: Sky Ao <aoxiaojian@gmail.com>

* add network interruption test back

Signed-off-by: Sky Ao <aoxiaojian@gmail.com>
2022-05-31 17:15:37 -07:00
amulyavarote 5c410fb726
Added certification tests for Azure Storage Queue Bindings (#1736)
* Added certification tests for Azure Storage Queue Bindings

Signed-off-by: Amulya Varote <amulyavarote@microsoft.com>

* Changes based on the review comments

Signed-off-by: Amulya Varote <amulyavarote@microsoft.com>

* Added ttl test case to fetch the unexpired messages

Signed-off-by: Amulya Varote <amulyavarote@microsoft.com>
2022-05-25 17:26:17 -07:00
Bernd Verst c2cb1dad5b
Update Blobstorage Binding certification test (#1730)
Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>

Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2022-05-18 23:12:49 -07:00
Laurence 07e2657965
fix: Add nacos cert tests (#1723)
* ftr: nacos cert

Signed-off-by: LaurenceLiZhixin <382673304@qq.com>

* Fix: linter

Signed-off-by: LaurenceLiZhixin <382673304@qq.com>

* Fix: add readme

Signed-off-by: LaurenceLiZhixin <382673304@qq.com>

Co-authored-by: Yaron Schneider <schneider.yaron@live.com>
2022-05-18 15:24:00 -07:00
Alessandro (Ale) Segala e1b6b01223
Tweaks for ASB pubsub (#1729)
* Tweaks for ASB pubsub:
1. Do not attempt to reconnect when context was canceled
2. Message finalization uses a background context and not the running ctx, in case the app is shutting down

Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>

* ASB: abandoned messages shouldn't be retried right away

Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>

* Ported fixes to servicebusqueues binding too

Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>

* Use a different approach to limit the number of messages processed in case of error

Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>

* Added maxRetriableErrorsPerSec to servicebusqueues binding too
Incl other improvements

Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>

* Do not reconnect to ASB every time we retrieve a message.

Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>

* ⚙️

Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>

Co-authored-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
2022-05-17 22:33:34 -07:00
Alessandro (Ale) Segala e5e9011655
Update Azure Service Bus components to track2 SDK (#1702)
* Updated to Go 1.18

Signed-off-by: Alessandro (Ale) Segala <43508+ItalyPaleAle@users.noreply.github.com>
Signed-off-by: Alessandro Segala (ItalyPaleAle) <43508+ItalyPaleAle@users.noreply.github.com>

* Updated Azure SDKs that are on track2
Includes some minor refactoring of auth code

Signed-off-by: Alessandro Segala (ItalyPaleAle) <43508+ItalyPaleAle@users.noreply.github.com>

* Updated Service Bus components to track2 SDK

Co-authored-by: halspang <halspang@microsoft.com>
Signed-off-by: Alessandro Segala (ItalyPaleAle) <43508+ItalyPaleAle@users.noreply.github.com>

* Initial Certification test for eventhubs binding [incomplete] (#1670)

* certification test for eventhubs binding

Signed-off-by: tanvigour <tanvi.gour@gmail.com>

* modified go.mod and go.sum

Signed-off-by: tanvigour <tanvi.gour@gmail.com>

* Add connection string testing

Signed-off-by: tanvigour <tanvi.gour@gmail.com>

* iothub testing

Signed-off-by: tanvigour <tanvi.gour@gmail.com>

* address feedback and run test

Signed-off-by: tanvigour <tanvi.gour@gmail.com>

* Install Azure CLI IOT hub extension

Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>

* make modtidy-all

Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>

* covering all eventhubs test cases

Signed-off-by: tanvigour <tanvi.gour@gmail.com>

* dependency changes after go modtidy-all

Signed-off-by: tanvigour <tanvi.gour@gmail.com>

Co-authored-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
Co-authored-by: Yaron Schneider <schneider.yaron@live.com>
Co-authored-by: Looong Dai <long.dai@intel.com>
Signed-off-by: Alessandro Segala (ItalyPaleAle) <43508+ItalyPaleAle@users.noreply.github.com>

* Use revive instead of golint (#1685)

Signed-off-by: pigletfly <wangbing.adam@gmail.com>

Co-authored-by: Yaron Schneider <schneider.yaron@live.com>
Signed-off-by: Alessandro Segala (ItalyPaleAle) <43508+ItalyPaleAle@users.noreply.github.com>

* Updated to Go 1.18 (#1697)

* Updated to Go 1.18

Signed-off-by: Alessandro (Ale) Segala <43508+ItalyPaleAle@users.noreply.github.com>

* Added go.work file
With Go 1.18, this allows gopls (the Go language server used for example in VS Code) to work inside test apps too.
See: https://go.dev/doc/tutorial/workspaces

Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>

Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>

* Removed go.work

Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>

* 💄

Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>

Co-authored-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
Signed-off-by: Alessandro Segala (ItalyPaleAle) <43508+ItalyPaleAle@users.noreply.github.com>

* 💄 & 🧹

Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
Signed-off-by: Alessandro Segala (ItalyPaleAle) <43508+ItalyPaleAle@users.noreply.github.com>

* Add metadata property to configure Batching in Pulsar (#1707)

* Add metadata property to configure BatchingMaxSize&batchingMaxMessages in Pulsar
Signed-off-by: saberwang <saberwang@hotmail.com>

* sort field
Signed-off-by: saberwang <saberwang@hotmail.com>

* [pubsub]fix unit test bug
Signed-off-by: saberwang <saberwang@hotmail.com>

* remove unrelated changes
Signed-off-by: saberwang <saberwang@hotmail.com>

* Delete hard coded Metadata
Signed-off-by: saberwang <saberwang@hotmail.com>

* remove  .history

Signed-off-by: saberwang <saberwang@hotmail.com>

* restore .gitignore

Signed-off-by: saberwang <saberwang@hotmail.com>

* Hard coding default values and adding 'BatchingMaxPublishDelay' metadata

Signed-off-by: saberwang <saberwang@hotmail.com>

* fix code format

Signed-off-by: saberwang <saberwang@hotmail.com>

* formatting code

Signed-off-by: saberwang <saberwang@hotmail.com>

Co-authored-by: Looong Dai <long.dai@intel.com>
Co-authored-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
Signed-off-by: Alessandro Segala (ItalyPaleAle) <43508+ItalyPaleAle@users.noreply.github.com>

* This test can't work with track2 SDKs
The methods to create a message with a body are not exported

Signed-off-by: Alessandro Segala (ItalyPaleAle) <43508+ItalyPaleAle@users.noreply.github.com>

* 🧹

Signed-off-by: Alessandro Segala (ItalyPaleAle) <43508+ItalyPaleAle@users.noreply.github.com>

* There's such thing as too much logging

Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>

* Refactored subscription.go
This greatly simplifies certain parts of the code, reducing the number of goroutines and likely improving performance.
Performance for end-users improves too as there's no need anymore to pause for 2 seconds every time that we reach `maxActiveMessages`.
Additionally, with this change the config options `prefetchCount` and `maxActiveMessagesRecoveryInSec` are removed as unnecessary anymore.

Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>

* 💄

Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>

* Fixed pubsub tests

Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>

* These packages should have never been upgraded

Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>

* Ensuring we don't fetch 1 message more than max active

Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>

* Adding configurable timeout for servicebusqueues operations

Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>

* Persistent connection for invoking SB queues

Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>

* Reverted Event Hub SDK update

Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>

* Revert "Reverted Event Hub SDK update"

This reverts commit 212220aba0.

Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>

* Fix Azure deploy for users with a first.last email

Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>

* Added some sleep that should help reduce flakiness in eventhubs binding cert test

Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>

* Changed servicebusqueue cert test
In case of a failure in the handler (ie. users' code), the message should be correctly re-enqueued, which means that messages will be re-delivered later and won't be in order.

Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>

Co-authored-by: halspang <halspang@microsoft.com>
Co-authored-by: tanvigour <60332928+tanvigour@users.noreply.github.com>
Co-authored-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
Co-authored-by: Yaron Schneider <schneider.yaron@live.com>
Co-authored-by: Looong Dai <long.dai@intel.com>
Co-authored-by: Wang Bing <wangbing.adam@gmail.com>
Co-authored-by: saber-wang <45062099+saber-wang@users.noreply.github.com>
2022-05-13 16:52:22 -07:00
Sky Ao 8b5554dc71
Refactory kafka binding to reuse the kafka common code extracting from kafka pubsub component (#1696)
* refactory kafka pubsub code to extract common kafka code for reuse

Signed-off-by: Sky Ao <aoxiaojian@gmail.com>

* fix lint;add unit test for subscribeAdapter

Signed-off-by: Sky Ao <aoxiaojian@gmail.com>

* move topics filed from internal kafak struct to pubsub kafka struct, since in input binding the topics will confiured in metadata

Signed-off-by: Sky Ao <aoxiaojian@gmail.com>

* reuse internal  kafka code for bindings

Signed-off-by: Sky Ao <aoxiaojian@gmail.com>

* add redis standalone_test back which is delete by mistaken

Signed-off-by: Sky Ao <aoxiaojian@gmail.com>

* small code improvement to trigger test

Signed-off-by: Sky Ao <aoxiaojian@gmail.com>

* add license headers

Signed-off-by: Sky Ao <aoxiaojian@gmail.com>

* try to set disbaleTls to true to verify the kafka connection fail

Signed-off-by: Sky Ao <aoxiaojian@gmail.com>

* don't enable consum retry in kafka binding component;if authenticaion is disabled, need not set TLSDisable at the same time;

Signed-off-by: Sky Ao <aoxiaojian@gmail.com>

* fix lint

Signed-off-by: Sky Ao <aoxiaojian@gmail.com>

Co-authored-by: Loong Dai <long.dai@intel.com>
2022-05-10 20:07:23 -07:00
Alessandro (Ale) Segala e6c67356cd
Updated to Go 1.18 (#1697)
* Updated to Go 1.18

Signed-off-by: Alessandro (Ale) Segala <43508+ItalyPaleAle@users.noreply.github.com>

* Added go.work file
With Go 1.18, this allows gopls (the Go language server used for example in VS Code) to work inside test apps too.
See: https://go.dev/doc/tutorial/workspaces

Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>

Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>

* Removed go.work

Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>

* 💄

Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>

Co-authored-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
2022-05-06 13:44:45 -07:00
tanvigour 47db6cc2b1
Initial Certification test for eventhubs binding [incomplete] (#1670)
* certification test for eventhubs binding

Signed-off-by: tanvigour <tanvi.gour@gmail.com>

* modified go.mod and go.sum

Signed-off-by: tanvigour <tanvi.gour@gmail.com>

* Add connection string testing

Signed-off-by: tanvigour <tanvi.gour@gmail.com>

* iothub testing

Signed-off-by: tanvigour <tanvi.gour@gmail.com>

* address feedback and run test

Signed-off-by: tanvigour <tanvi.gour@gmail.com>

* Install Azure CLI IOT hub extension

Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>

* make modtidy-all

Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>

* covering all eventhubs test cases

Signed-off-by: tanvigour <tanvi.gour@gmail.com>

* dependency changes after go modtidy-all

Signed-off-by: tanvigour <tanvi.gour@gmail.com>

Co-authored-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
Co-authored-by: Yaron Schneider <schneider.yaron@live.com>
Co-authored-by: Looong Dai <long.dai@intel.com>
2022-05-05 19:33:23 -07:00
Bernd Verst 24017b2fe1
Pin certification tests to latest daprd with binding context change (#1691) 2022-04-26 12:28:05 -07:00
pigletfly 84759553bc Add context in bindings
Signed-off-by: pigletfly <wangbing.adam@gmail.com>
2022-04-26 10:20:41 +08:00
Bernd Verst 3cb64614a9
Merge branch 'master' into add-ctx-binding 2022-04-24 23:48:07 -07:00
Surender Singh Malik a23fffb2c1
eh-certification test : Install azure-iot-cli-extension if not found for IOT tests (#1684)
* install azure-iot-cli-extension if not found

Signed-off-by: Surender Singh Malik <surenderssm@users.noreply.github.com>

* reduce the number of messages from 100 to 10, to make the test faster

Signed-off-by: Surender Singh Malik <surenderssm@users.noreply.github.com>
2022-04-24 23:42:50 -07:00
pigletfly 5673b28b13 Add context in bindings interface
Signed-off-by: pigletfly <wangbing.adam@gmail.com>
2022-04-25 14:16:15 +08:00
Surender Singh Malik 37e4e8a44a
Certify Azure Event Hubs as Stable in pubsub (#1623)
* First iteration for the eventhubs certifications tests

Signed-off-by: Surender Singh Malik <surenderssm@users.noreply.github.com>

* Fixing typos,  adding more description and publishing with multiple partitions

Signed-off-by: Surender Singh Malik <surenderssm@users.noreply.github.com>

* Moved the secret reference in components definition to secretstore.local.env

Signed-off-by: Surender Singh Malik <surenderssm@users.noreply.github.com>

* moving to latest dapr/dapr github.com/dapr/dapr@v1.7.0-rc.2

Signed-off-by: Surender Singh Malik <surenderssm@users.noreply.github.com>

* updating go.mod

Signed-off-by: Surender Singh Malik <surenderssm@users.noreply.github.com>

* changes in infra and workflow for cert eventhubs

Signed-off-by: Surender Singh Malik <surenderssm@users.noreply.github.com>

* typo fix in local secret store type

Signed-off-by: Surender Singh Malik <surenderssm@users.noreply.github.com>

* correcting the typo in policyName

Signed-off-by: Surender Singh Malik <surenderssm@users.noreply.github.com>

* bug fixes

Signed-off-by: Surender Singh Malik <surenderssm@users.noreply.github.com>

* publish to a topic with no subscriber fix

Signed-off-by: Surender Singh Malik <surenderssm@users.noreply.github.com>

* delete azure eventhub that got created as part of test run

Signed-off-by: Surender Singh Malik <surenderssm@users.noreply.github.com>

* updated readme

Signed-off-by: Surender Singh Malik <surenderssm@users.noreply.github.com>

* removed dummy sidecar and leveraged connectionstring at namespace level for multi topic operations

Signed-off-by: Surender Singh Malik <surenderssm@users.noreply.github.com>

* go mod changes and nit fixes

Signed-off-by: Surender Singh Malik <surenderssm@users.noreply.github.com>

* fixing iot device issue

Signed-off-by: Surender Singh Malik <surenderssm@users.noreply.github.com>

* NIT : CR fixes

* Enabled iothub test and a bit of code refactoring

Signed-off-by: Surender Singh Malik <surenderssm@users.noreply.github.com>

* delete the checkpoint container for the temp eventhub

Signed-off-by: Surender Singh Malik <surenderssm@users.noreply.github.com>

* Revert "NIT : CR fixes"

This reverts commit 260f5ed686.

Signed-off-by: Surender Singh Malik <surenderssm@users.noreply.github.com>

* First iteration for the eventhubs certifications tests

Signed-off-by: Surender Singh Malik <surenderssm@users.noreply.github.com>

* Fixing typos,  adding more description and publishing with multiple partitions

Signed-off-by: Surender Singh Malik <surenderssm@users.noreply.github.com>

* Moved the secret reference in components definition to secretstore.local.env

Signed-off-by: Surender Singh Malik <surenderssm@users.noreply.github.com>

* moving to latest dapr/dapr github.com/dapr/dapr@v1.7.0-rc.2

Signed-off-by: Surender Singh Malik <surenderssm@users.noreply.github.com>

* updating go.mod

Signed-off-by: Surender Singh Malik <surenderssm@users.noreply.github.com>

* changes in infra and workflow for cert eventhubs

Signed-off-by: Surender Singh Malik <surenderssm@users.noreply.github.com>

* typo fix in local secret store type

Signed-off-by: Surender Singh Malik <surenderssm@users.noreply.github.com>

* correcting the typo in policyName

Signed-off-by: Surender Singh Malik <surenderssm@users.noreply.github.com>

* bug fixes

Signed-off-by: Surender Singh Malik <surenderssm@users.noreply.github.com>

* publish to a topic with no subscriber fix

Signed-off-by: Surender Singh Malik <surenderssm@users.noreply.github.com>

* delete azure eventhub that got created as part of test run

Signed-off-by: Surender Singh Malik <surenderssm@users.noreply.github.com>

* updated readme

Signed-off-by: Surender Singh Malik <surenderssm@users.noreply.github.com>

* removed dummy sidecar and leveraged connectionstring at namespace level for multi topic operations

Signed-off-by: Surender Singh Malik <surenderssm@users.noreply.github.com>

* go mod changes and nit fixes

Signed-off-by: Surender Singh Malik <surenderssm@users.noreply.github.com>

* fixing iot device issue

Signed-off-by: Surender Singh Malik <surenderssm@users.noreply.github.com>

* NIT : CR fixes

* Enabled iothub test and a bit of code refactoring

Signed-off-by: Surender Singh Malik <surenderssm@users.noreply.github.com>

* delete the checkpoint container for the temp eventhub

Signed-off-by: Surender Singh Malik <surenderssm@users.noreply.github.com>

* Revert "NIT : CR fixes"

This reverts commit 260f5ed686.

Signed-off-by: Surender Singh Malik <surenderssm@users.noreply.github.com>

* Fix eventhub pubsub certification test infra provisioning

Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>

* Fixing the scoping issue for role assignment on eh

Signed-off-by: Surender Singh Malik <surenderssm@users.noreply.github.com>

Co-authored-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
2022-04-23 23:27:41 -07:00
Amit Mor 136bccd56e
conformance test runs in single mode
Signed-off-by: Amit Mor <amit.mor@hotmail.com>
2022-04-11 11:41:52 +03:00
Bernd Verst c62a7530ba Fix breaking tests due to Go SDK v1.4.0
Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
2022-04-08 13:36:23 -07:00
Bernd Verst 929105dcf3 Pin certification tests todaprd v1.7.0 and gosdk v1.4.0
Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
2022-04-08 10:36:37 -07:00
Bernd Verst 8a9b9cec99 Pin certification tests to Daprd v1.7.0-rc.3
Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
2022-04-06 11:57:03 -07:00
Alessandro (Ale) Segala 407936745e
Yet another Cosmos DB auth fix
This is fixed by upgrading the upstream SDK
Also added a missing handling of throttling in the Delete method

Signed-off-by: Alessandro (Ale) Segala <43508+ItalyPaleAle@users.noreply.github.com>
2022-04-05 21:01:22 +00:00
Alessandro (Ale) Segala be7c8768b5
Fixes an issue with DBs or collections with uppercase characters not working
Signed-off-by: Alessandro (Ale) Segala <43508+ItalyPaleAle@users.noreply.github.com>
2022-03-31 23:10:27 +00:00
Bernd Verst b9da9dfbbf Update EventHubs conformance test topic
Signed-off-by: GitHub <noreply@github.com>
2022-03-30 23:25:47 +00:00
Bernd Verst 9a3d266299 cert tests: adds api logging flag and noop resiliency provider
Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
2022-03-30 11:39:02 -07:00
Bernd Verst e7395a91cf Update certification tests to daprd 1.7.0-rc.2
Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
2022-03-30 11:12:24 -07:00
Alessandro (Ale) Segala 9e0e7a183b Ran `make modtidy-all`
Signed-off-by: Alessandro (Ale) Segala <43508+ItalyPaleAle@users.noreply.github.com>
2022-03-28 16:08:11 +00:00
Ricardo Corrêa 4d44c2f04f
StateStore API implementation for CockroachDB (#1559)
* statestore for CockroachDB

Signed-off-by: Ricardo Corrêa <r.c.correa@outlook.com>

* Upgrade nacos sdk version to meet compliance (#1547)

* Upgrade nacos version

Signed-off-by: Shubham Sharma <shubhash@microsoft.com>

* Run go mod tidy all

Signed-off-by: Shubham Sharma <shubhash@microsoft.com>

* Add MaxSize to settings

Signed-off-by: Shubham Sharma <shubhash@microsoft.com>
Signed-off-by: Ricardo Corrêa <r.c.correa@outlook.com>

* conformance tests for CockroachDB

Signed-off-by: Ricardo Corrêa <r.c.correa@outlook.com>

* fix comment for internalNew func (CockroachDB)

Signed-off-by: Ricardo Corrêa <r.c.correa@outlook.com>

* remove metadata from log (CockroachDB)

Signed-off-by: Ricardo Corrêa <r.c.correa@outlook.com>

* removed unnecessary nil fields from GetResponse

Signed-off-by: Ricardo Corrêa <r.c.correa@outlook.com>

* Fix ordering in transaction API for CockroachDB

Signed-off-by: Ricardo Corrêa <r.c.correa@outlook.com>

* fix non-deterministic etag error (CockroachDB)

Signed-off-by: Ricardo Corrêa <r.c.correa@outlook.com>

* fix error message for delete operation without key (CockroachDB)

Signed-off-by: Ricardo Corrêa <r.c.correa@outlook.com>

Co-authored-by: Shubham Sharma <shubhash@microsoft.com>
Co-authored-by: Yaron Schneider <schneider.yaron@live.com>
Co-authored-by: Taction <zchao9100@gmail.com>
Co-authored-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
Co-authored-by: Looong Dai <long.dai@intel.com>
2022-03-22 08:24:14 -07:00
Shubham Sharma e0b63062d5
Fix serialization issue with 64 bit data type (#1597)
* Unmarshal precise

Signed-off-by: Shubham Sharma <shubhash@microsoft.com>

* nit: remove empty line

Signed-off-by: Shubham Sharma <shubhash@microsoft.com>

* make modtidy-all

Signed-off-by: Shubham Sharma <shubhash@microsoft.com>

* Fix test

Signed-off-by: Shubham Sharma <shubhash@microsoft.com>

* Add new test for large numbers

Signed-off-by: Shubham Sharma <shubhash@microsoft.com>

Co-authored-by: Looong Dai <long.dai@intel.com>
2022-03-21 10:15:08 -07:00
Shubham Sharma feab8eeeb1 Upgrade alibabacloud-go packages
Signed-off-by: Shubham Sharma <shubhash@microsoft.com>
2022-03-21 07:37:04 +05:30
Shubham Sharma 876d04e46c
Merge branch 'master' into shubham1172/upgrade-alibaba-compliance 2022-03-18 08:41:12 +05:30
Dmitry Shmulevich 6e504186a5
redis: fix querying numeric values (#1595)
Signed-off-by: Dmitry Shmulevich <dmitsh@users.noreply.github.com>

Co-authored-by: Dmitry Shmulevich <dmitsh@users.noreply.github.com>
2022-03-17 15:07:32 -07:00
Shubham Sharma f9aed104f5 Mod tidy (add back empty lines)
Signed-off-by: Shubham Sharma <shubhash@microsoft.com>
2022-03-17 17:59:21 +05:30
Shubham Sharma 36d35f60d9 Remove extra lines
Signed-off-by: Shubham Sharma <shubhash@microsoft.com>
2022-03-17 17:54:53 +05:30
Shubham Sharma 857d67d6f8 Update other go.mods
Signed-off-by: Shubham Sharma <shubhash@microsoft.com>
2022-03-17 17:51:20 +05:30
Shubham Sharma ca4abf24e2 Upgrade alibabacloud-go modules
Signed-off-by: Shubham Sharma <shubhash@microsoft.com>
2022-03-17 10:24:43 +05:30
Bernd Verst a569438523
Merge branch 'master' into fix-mongodb-canonical 2022-03-15 21:37:13 -07:00
Mukundan Sundararajan 22d8bb2ab9 unexport struct
Signed-off-by: Mukundan Sundararajan <msundar.ms@outlook.com>
2022-03-16 09:15:58 +05:30
Mukundan Sundararajan 9545d8204d
Merge branch 'master' into fix-mongodb-canonical 2022-03-16 09:06:40 +05:30
Looong Dai d1d159b9e1
Merge branch 'master' into ds-mongo-fix 2022-03-16 11:15:13 +08:00
Shubham Sharma 1f28c83583
Merge branch 'master' into shubham1172/conf-test-transaction 2022-03-16 08:08:20 +05:30
Dmitry Shmulevich dcfb3454c1 mongodb: fix querying non-string values
Signed-off-by: Dmitry Shmulevich <dmitsh@users.noreply.github.com>
2022-03-15 19:05:53 -07:00
Mukundan Sundararajan 83914e8eed marshall mongodb bson into relaxed json
Signed-off-by: Mukundan Sundararajan <msundar.ms@outlook.com>
2022-03-16 02:21:53 +05:30
Artur Souza 0a1456c885
Merge branch 'master' into shubham1172/conf-test-transaction 2022-03-15 12:12:20 -07:00
Bernd Verst 30f57d3359
Merge branch 'master' into shubham1172/upgrade-pulsar-client 2022-03-15 10:47:59 -07:00
Mukundan Sundararajan 2497b39226
Merge branch 'master' into shubham1172/conf-test-transaction 2022-03-15 17:18:56 +05:30
Shubham Sharma d929d17706 Upgrade pulsar client
Signed-off-by: Shubham Sharma <shubhash@microsoft.com>
2022-03-15 14:48:45 +05:30
Shubham Sharma 0ba77ab767 Merge remote-tracking branch 'origin' into shubham1172/upgrade-pulsar-client 2022-03-15 14:45:08 +05:30
Bernd Verst 983b7e76aa make modtidy-all
Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
2022-03-14 23:15:02 -07:00
Bernd Verst 5b6e1c0994 Fix license header
Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
2022-03-14 14:40:20 -07:00
Bernd Verst af44c5302f Update test instructions and base image
Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
2022-03-14 14:36:07 -07:00
Christian Kaps b17e815db3 Update to zeebe 1.3.4
Signed-off-by: Christian Kaps <ck-github@mohiva.com>
2022-03-14 14:03:06 -07:00
Bernd Verst f06254f8f4 Update Consul API to v1.11.0
Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
2022-03-14 13:36:59 -07:00
shivam e15789c658 merge master
Signed-off-by: shivam <shivamkm07@gmail.com>
2022-03-11 10:17:04 +05:30
Shivam Kumar 107713ead2 Fixing Certification tests failure (#1447)
* Adding Remove functionality in watcher

Signed-off-by: shivam <shivamkm07@gmail.com>

* Updating MQTT test docker-compose

Signed-off-by: shivam <shivamkm07@gmail.com>

* Removing message in case of pub failure

Signed-off-by: shivam <shivamkm07@gmail.com>

* Adding MQueue_len=0

Signed-off-by: shivam <shivamkm07@gmail.com>

* Removing message in pub failure: kafka

Signed-off-by: shivam <shivamkm07@gmail.com>
2022-03-11 09:50:21 +05:30
Dmitry Shmulevich d58ff4abdb pin certification tests to daprd v1.6.0 and go-sdk 1.3.1 (#1462)
Signed-off-by: shivam <shivamkm07@gmail.com>
2022-03-11 09:50:21 +05:30
Shubham Sharma 2d83442ebe
Merge branch 'master' into shubham1172/conf-test-transaction 2022-03-07 10:26:41 +05:30
Shubham Sharma f1209fb068
Upgrade nacos sdk version to meet compliance (#1547)
* Upgrade nacos version

Signed-off-by: Shubham Sharma <shubhash@microsoft.com>

* Run go mod tidy all

Signed-off-by: Shubham Sharma <shubhash@microsoft.com>

* Add MaxSize to settings

Signed-off-by: Shubham Sharma <shubhash@microsoft.com>
2022-03-06 20:13:40 -08:00
Shubham Sharma 16e5f4558c Upgrade pulsar-client
Signed-off-by: Shubham Sharma <shubhash@microsoft.com>
2022-03-03 14:23:13 +05:30
Shubham Sharma f4ad3bb5e3 Add conf test for transaction ordering
Signed-off-by: Shubham Sharma <shubhash@microsoft.com>
2022-03-03 12:47:01 +05:30
Dmitry Shmulevich f819b290f7
redis state store: implement state query API (#1488)
Signed-off-by: Dmitry Shmulevich <dmitry.shmulevich@gmail.com>
2022-03-02 10:51:09 -08:00
Bernd Verst d263a4a9b6
Upgrade keyring library for macOS security warnings (#1535)
Signed-off-by: GitHub <noreply@github.com>
2022-02-28 19:24:51 -08:00
Shubham Sharma c8a9b44a69
Add changes (#1515)
Signed-off-by: Shubham Sharma <shubhash@microsoft.com>

Co-authored-by: Taction <zchao9100@gmail.com>
2022-02-24 22:40:10 -08:00
ZhangJian He 615abba62d Upgrade pulsar client to 0.8.0
Signed-off-by: ZhangJian He <shoothzj@gmail.com>
2022-02-23 09:48:50 +08:00
Shubham Sharma 5a13f775b7 run go mod tidy for all
Signed-off-by: Shubham Sharma <shubhash@microsoft.com>
2022-02-21 10:22:40 +05:30
Artur Souza 339624b7a3
Update daprd in cert tests. (#1511)
Signed-off-by: Artur Souza <artursouza.ms@outlook.com>
2022-02-18 14:42:19 -08:00
Gehhilfe 80c2bbe284
Jetstream KV state store component (#1501)
* Add support for nats jetstream kv state store

Add tests for jetstream state store

Update go mod

Signed-off-by: Tim Burkert <burkert.tim@gmail.com>

* Fix lint errors

Signed-off-by: Tim Burkert <burkert.tim@gmail.com>

* Mod tidy

Signed-off-by: Tim Burkert <burkert.tim@gmail.com>

* Mod tidy all

Signed-off-by: Tim Burkert <burkert.tim@gmail.com>

* Mod tidy all

Signed-off-by: Tim Burkert <burkert.tim@gmail.com>

Co-authored-by: Looong Dai <long.dai@intel.com>
2022-02-17 10:19:03 -08:00
1046102779 a03d7a6831 feature/pulsar: add producer option disableBatching
Signed-off-by: 1046102779 <seachen@tencent.com>
2022-02-16 19:03:43 +08:00
1046102779 0ebabf6397 feature/pulsar: add producer option disableBatching
Signed-off-by: 1046102779 <seachen@tencent.com>
2022-02-16 12:35:35 +08:00
1046102779 0b56101b94 feature/pulsar: add producer option disableBatching
Signed-off-by: 1046102779 <seachen@tencent.com>
2022-02-16 12:29:08 +08:00
1046102779 833a2845b0 feature/pulsar: add producer option disableBatching
Signed-off-by: 1046102779 <seachen@tencent.com>
2022-02-16 12:20:54 +08:00
1046102779 b6fb587525 feature/pulsar: add producer option disableBatching
Signed-off-by: 1046102779 <seachen@tencent.com>
2022-02-16 12:17:40 +08:00
1046102779 2126b96dc6 feature/pulsar: add producer option disableBatching
Signed-off-by: 1046102779 <seachen@tencent.com>
2022-02-16 12:07:02 +08:00
Looong Dai 0b1ba25e7f
Merge branch 'master' into postgres_state_store_set_with_etag_1497 2022-02-14 09:38:05 +08:00
Dmitry Shmulevich 7fdebda09b
state store query API: remove preceding '.' in key names (#1500)
Signed-off-by: Dmitry Shmulevich <dmitry.shmulevich@gmail.com>
2022-02-11 15:00:43 -08:00
Phil Kedy 1c4ae2ad2a Updating go.sums of certification tests
Signed-off-by: Phil Kedy <phil.kedy@gmail.com>
2022-02-11 16:05:19 -05:00
Phil Kedy 4f3a18bb30 Updating go.sums of certification tests
Signed-off-by: Phil Kedy <phil.kedy@gmail.com>
2022-02-11 16:00:25 -05:00
Dmitry Shmulevich 1cb659c0b8
update conformance tests (#1492)
Signed-off-by: Dmitry Shmulevich <dmitry.shmulevich@gmail.com>
2022-02-09 17:58:48 -08:00
Dmitry Shmulevich eaecd4cb34
statestore query API: remove 'value' prefix from key names in query JSON object (#1491)
Signed-off-by: Dmitry Shmulevich <dmitry.shmulevich@gmail.com>
2022-02-09 17:17:47 -08:00
Lucas Jellema 625f955fee
Introducing Oracle Database backed state store component (#1454)
* Introducing Oracle Database backed state store component

Signed-off-by: lucasjellema <lucasjellema@gmail.com>

* Implement Ping method with proper database ping

Signed-off-by: lucasjellema <lucasjellema@gmail.com>

* adding results from make modtidy-all - updated go.sum files
Signed-off-by: lucasjellema <lucasjellema@gmail.com>

* etag only applied when first write policy requested - applied in integration test and component

Signed-off-by: lucasjellema <lucasjellema@gmail.com>

Co-authored-by: Looong Dai <long.dai@intel.com>
Co-authored-by: Yaron Schneider <schneider.yaron@live.com>
2022-02-08 12:00:34 -08:00
Ricardo Corrêa 8297fc929b
Query StateStore API implementation for PostgreSQL StateStore (#1457)
* query state integration with dbaccess (postgresql)

Signed-off-by: Ricardo Corrêa <r.c.correa@outlook.com>

* query state integration with postgresql component

Signed-off-by: Ricardo Corrêa <r.c.correa@outlook.com>

* query state for postgresql

Signed-off-by: Ricardo Corrêa <r.c.correa@outlook.com>

* fix: linter error 'rowserrcheck'

Signed-off-by: Ricardo Corrêa <r.c.correa@outlook.com>

* query state integration with dbaccess (postgresql)

Signed-off-by: Ricardo Corrêa <r.c.correa@outlook.com>

* query state integration with postgresql component

Signed-off-by: Ricardo Corrêa <r.c.correa@outlook.com>

* fix: linter error 'rowserrcheck'

Signed-off-by: Ricardo Corrêa <r.c.correa@outlook.com>

* fix: linter error 'goimports -ed with -local github.com/dapr/'

Signed-off-by: Ricardo Corrêa <r.c.correa@outlook.com>

* performance improvementt in PosgreSQL Query API

Signed-off-by: Ricardo Corrêa <r.c.correa@outlook.com>

* added conformance test for PostgreSQL Query API

Signed-off-by: Ricardo Corrêa <r.c.correa@outlook.com>

Co-authored-by: Looong Dai <long.dai@intel.com>
Co-authored-by: Yaron Schneider <schneider.yaron@live.com>
2022-02-02 18:14:18 -08:00
Gehhilfe b835eb4e1e
pubsub jetstream: add nkey based authentication (#1441)
* pubsub jetstream: add nkey based authentication

Signed-off-by: Tim Burkert <burkert.tim@gmail.com>

* fix godot: comment should end in a period

Signed-off-by: Tim Burkert <burkert.tim@gmail.com>

* go mod tidy

Signed-off-by: Tim Burkert <burkert.tim@gmail.com>

* fix: go mod tidy

Signed-off-by: Tim Burkert <burkert.tim@gmail.com>

* pubsub jetstream: add e2e test

Signed-off-by: Tim Burkert <burkert.tim@gmail.com>

* Cleanup not needed files and move jwt

Signed-off-by: Tim Burkert <burkert.tim@gmail.com>

Co-authored-by: Looong Dai <long.dai@intel.com>
2022-01-25 21:11:50 -08:00
Dmitry Shmulevich 0634d49987 pin certification tests to Daprd v1.6.0-rc.3 (#1451)
Signed-off-by: Dmitry Shmulevich <dmitry.shmulevich@gmail.com>
2022-01-25 13:58:12 -08:00
Dmitry Shmulevich 160645023e
Pin certification tests to Daprd v1.6.0-rc.2 (#1443)
Signed-off-by: Dmitry Shmulevich <dmitry.shmulevich@gmail.com>
2022-01-14 16:50:26 -08:00
Bernd Verst c95b6919f9
temporarily disabled akv managed identity test (#1438)
Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
2022-01-13 18:22:53 -08:00
Bernd Verst 0f2398670a
Certification tests for Azure Blob Storage Binding (#1435)
* initial blobstorage output binding certification

Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>

* More blobstorage tests

Signed-off-by: GitHub <noreply@github.com>
Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>

* Rename some remnants from copy paste

Signed-off-by: GitHub <noreply@github.com>
Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>

* Blobstorage Binding - test file upload

Signed-off-by: GitHub <noreply@github.com>
Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>

* Blobstorage Output Binding Remove Pascal case

Signed-off-by: GitHub <noreply@github.com>
Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>

* Blobstorage Output Binding: Remove list from conf test

Signed-off-by: GitHub <noreply@github.com>
Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>

* Azure Blobstorage Binding - include name upon creation

Signed-off-by: GitHub <noreply@github.com>
Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>

* blobstore binding - verify encoding option

Signed-off-by: GitHub <noreply@github.com>
Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>

* go mod tidy

Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>

* Additional test cases

Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>

* list blob tests WIP

Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>

* More stable certification tests for AzBlob Binding

Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>

* Remaining Blob Storage Binding certification tests

Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>

* Lint blob storage certification tests

Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>

* update go.mods

Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>

* Fix license header

Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>

* use byte string instead of file

Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>

* Run make modtidy-all again

Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>

Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2022-01-13 18:06:39 -08:00
Zheng Dayu 2d52913aa9
Add AlibabaCloud OOS Parameter Store as a secret component (#1402)
* secret stores supports alibabacloud oos parameterstore

Signed-off-by: Zheng Dayu <davidzheng23@gmail.com>

* run make modtidy-all

Signed-off-by: Zheng Dayu <davidzheng23@gmail.com>

Co-authored-by: Yaron Schneider <schneider.yaron@live.com>
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
Co-authored-by: Taction <zchao9100@gmail.com>
2022-01-13 09:56:44 -08:00
Yordan Pavlov b8063f2bdb
Fix #1250 by upgrading cloud.google.com/go/pubsub to v1.12.2 (#1285)
* upgrade cloud.google.com/go/pubsub to v1.12.2

Signed-off-by: Yordan Pavlov <yordan.pavlov@dunnhumby.com>

* update GCP secret manager test

Signed-off-by: Yordan Pavlov <yordan.pavlov@dunnhumby.com>

* make modtidy-all

Signed-off-by: Yordan Pavlov <yordan.pavlov@dunnhumby.com>

Co-authored-by: Yordan Pavlov <yordan.pavlov@dunnhumby.com>
Co-authored-by: Dapr Bot <56698301+dapr-bot@users.noreply.github.com>
Co-authored-by: Yaron Schneider <schneider.yaron@live.com>
2022-01-13 09:26:42 -08:00
Amit Mor 736730e55a
conformance tests for AWS pubsub SQS SNS (#1394)
* conformance tests

Signed-off-by: Amit Mor <amit.mor@hotmail.com>

* latest localstack. snssqs to conformance list

Signed-off-by: Amit Mor <amit.mor@hotmail.com>

Co-authored-by: Mukundan Sundararajan <musundar@microsoft.com>
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
Co-authored-by: Dapr Bot <56698301+dapr-bot@users.noreply.github.com>
2022-01-07 11:34:44 -08:00
Shivam Kumar 4631d6e41a
MQTT Pubsub Certification Testing + AutAckOff Fix for MQTT (#1420)
* MQTT Certification Test

Signed-off-by: shivam <shivamkm07@gmail.com>

* Using paho.mqtt.golang fork with AutoAck fix

Signed-off-by: shivam <shivamkm07@gmail.com>

* Adding MQTT component in certification.yml

Signed-off-by: shivam <shivamkm07@gmail.com>

Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2022-01-07 10:33:54 -08:00
Mukundan Sundararajan a5f1d864fd
fix eventhubs conformance tests (#1421)
Signed-off-by: Mukundan Sundararajan <msundar.ms@outlook.com>
2022-01-07 10:15:25 -08:00
1046102779 eda86a2711 feature/pulsar: add producer option disableBatching
Signed-off-by: 1046102779 <seachen@tencent.com>
2022-01-07 13:15:14 +08:00
1046102779 db05ea0e13 feature/pulsar: add producer option disableBatching
Signed-off-by: 1046102779 <seachen@tencent.com>
2022-01-07 13:10:25 +08:00
Bernd Verst ab91ae1aa4
update certification tests to latest daprd master (#1417)
Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
2022-01-06 18:36:43 -08:00
Dmitry Shmulevich 0bb78660e6
use the latest dapr/dapr in pubsub cert tests (#1416) 2022-01-06 13:29:46 -08:00
Bernd Verst bc2b5cc39c
Fix Blobstorage Bindings Conformance Test (#1410) 2022-01-06 10:09:16 -08:00
Dmitry Shmulevich c7adb917f3
update license to Apache v2.0 (#1406) 2022-01-04 19:53:31 -08:00
Mukundan Sundararajan fe6c9e37d9
rewrite eventhubs component (#1292)
Signed-off-by: Mukundan Sundararajan <msundar.ms@outlook.com>
2022-01-03 19:36:35 -08:00
Scott Hussey 897c2a4db5
Add OAuth2/OIDC support to Kafka pubsub (#1229)
* parent dbb18e4d77
author Scott Hussey <sthussey@gmail.com> 1632277042 -0500
committer Scott Hussey <sthussey@gmail.com> 1639111222 -0600

Support Oauth2 authentication for Kafka

- Utilize the SASL OAUTHBEARER mechanism to support
  the Oauth2 client_credentials flow for Kafka
  authentication

- Deprecate `authRequired` field and introduce `authType`
  to support varied authentication mechanisms

- Add a metadata upgrade mechanism to support backwards
  compatability

- Recommend broker specific scopes to guard against a
  compromised broker replaying a token

Signed-off-by: Scott Hussey <sthussey@gmail.com>

* kafka test - use volumes instead of root

CI test fails due to losing data written to container
root

Signed-off-by: Scott Hussey <sthussey@gmail.com>

* Clean up volumes

- When bringing down the docker-compose context, cleanup
  volumes

Signed-off-by: Scott Hussey <sthussey@gmail.com>

* Clean up stale comment

Signed-off-by: Scott Hussey <sthussey@gmail.com>

* Resume config defaults

- Return some Kafka config to default values to lower config
  footprint and stabilize flaky CI runs

Signed-off-by: Scott Hussey <sthussey@gmail.com>
2021-12-28 10:34:28 -08:00
Taction 6d9d0bca35
fix nits: duplicated err handle (#1341)
* remove duplicated err handle

Signed-off-by: Taction <zchao9100@gmail.com>

* fix test go mod tidy

Signed-off-by: Taction <zchao9100@gmail.com>
2021-12-27 08:47:10 -08:00
mbimbij 1389ae5937
Fix cassandra statestore error - "Bind variables cannot be used for table names" - Introduce `fmt.Sprintf` where applicable (#1388)
* - Introduce `fmt.Sprintf` where applicable
- Add conformance test for cassandra component.

Signed-off-by: mbimbij <joseph.mbimbi@gmail.com>

* Start cassandra via docker-compose for its conformance test

Signed-off-by: mbimbij <joseph.mbimbi@gmail.com>

* Apply `go fmt` on `tests/conformance/common.go` as part of PR correction

Signed-off-by: mbimbij <joseph.mbimbi@gmail.com>
2021-12-26 21:35:02 -08:00
Dmitry Shmulevich 7a631ef7aa
pub/sub rabbitmq: add publishing retries (#1382)
Signed-off-by: Dmitry Shmulevich <dmitry.shmulevich@gmail.com>

Co-authored-by: Looong Dai <long.dai@intel.com>
2021-12-17 15:59:38 -08:00
Bernd Verst 29848e1ff6
CosmosDB Output Binding Stable Certification Tests (#1378)
* cosmosdb output binding certification tests

Signed-off-by: GitHub <noreply@github.com>

* linter touchup

Signed-off-by: GitHub <noreply@github.com>

* Rename some remnants from copy paste

Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>

Co-authored-by: Looong Dai <long.dai@intel.com>
2021-12-16 10:41:34 -08:00
RainFD 870fedb8a0
fix binding list test (#1317)
Co-authored-by: Dapr Bot <56698301+dapr-bot@users.noreply.github.com>
2021-12-14 14:19:23 -08:00
Bernd Verst 9dbdaee296
Cosmos DB Output Binding - Authentication tests (#1373)
* Adds CosmosDB Binding authentication tests

Signed-off-by: GitHub <noreply@github.com>
Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>

* Enable Cosmos DB Binding Conformance test

Signed-off-by: GitHub <noreply@github.com>
Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>

* Initial cosmosdb binding certification plan WIP

Signed-off-by: GitHub <noreply@github.com>
Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>

* Go mod tidy

Signed-off-by: GitHub <noreply@github.com>
Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>

* Update library and go mod tidy

Signed-off-by: GitHub <noreply@github.com>
Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>

* make modtidy-all

Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>

* CosmosDB Binding test plan details

Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
2021-12-13 15:08:07 -08:00
halspang 168dd49fce
Fix dependency issue in service bus queue tests (#1374) 2021-12-09 21:12:41 -08:00
Simon Leet 9ab218a393
Update azure-sdk-for-go to v59.3.0 for EventGrid (#1325)
Co-authored-by: Dapr Bot <56698301+dapr-bot@users.noreply.github.com>
2021-12-08 17:19:43 -08:00
Bernd Verst 021bf0c065
Tidy & Pin certification tests to latest Dapr/Dapr (#1361)
Co-authored-by: Dapr Bot <56698301+dapr-bot@users.noreply.github.com>
2021-12-06 11:37:23 -08:00
halspang 3395bb7316
Add certification tests for ASB Queue binding (#1251)
* Add certification tests for ASB Queue binding

This commit adds certification tests for the Azure Service Bus Queue
Input/Output binding. This utilizes the new certification framework
and performs a series of tests as described in the test plan readme.

The general purpose of these tests is to serve as an integration test
and as such requires an actual Azure Service Bus connection and a
Dapr sidecar.

https://github.com/dapr/components-contrib/issues/957

* Add to github workflow and fix formatting

* Fix dependencies

Co-authored-by: Dapr Bot <56698301+dapr-bot@users.noreply.github.com>
2021-12-06 11:20:53 -08:00
Ian Luo b86128396b
upgrade dapr's version to fix go mod tidy issue in tests/certification #1319 (#1349) 2021-11-30 02:53:52 -08:00
Phil Kedy a49f4283fd
Forcing dapr/dapr commit to fix compatibility w/ components-contrib (#1345) 2021-11-29 11:08:35 -08:00
Dmitry Shmulevich 3c52b73608
fixed typo in Query JSON (#1344) 2021-11-29 09:44:28 -08:00
Dmitry Shmulevich f1be130563
bump up go to v1.17 (#1323) 2021-11-22 17:47:01 -08:00
Alessandro (Ale) Segala 3eafb8bcd4
Azure SDK "track 2": authentication and secretstore/azure/keyvault (#1290)
* Authentication for new Azure SDK

* Updated keyvault to use new Azure SDK

* 🙈

* Update authentication/azure/auth.go

* Update authentication/azure/auth.go

* Update authentication/azure/auth.go

* Reintroduce changes from PR 1132 without updating ASB

* Lint 💄

* Marking contexts as TODO as they'll need a timeout
As per conversation with @berndverst

* Update certification tests with no auth libraries

Co-authored-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
2021-11-16 10:59:51 -08:00
Dmitry Shmulevich ad433a27e1
add troubleshooting info (#1278)
add retries for pubsub subscribe
fix race conditions
2021-11-15 16:33:21 -08:00
Bernd Verst ad1c08d218 Update certification tests to Runtime v1.5.0 (#1295) 2021-11-12 11:59:35 -08:00
Bernd Verst b25d95849a
go mod tidy for KV certification (#1286) 2021-11-09 11:26:28 -08:00
Phil Kedy 5af43a9850 Tweak 2021-11-04 17:26:47 -04:00
Phil Kedy b2cc826e1e Tweak 2021-11-04 17:25:59 -04:00
Phil Kedy af2c499855 Updating certification go.mod files to the latest dapr/dapr commit in master 2021-11-04 17:20:40 -04:00
Bernd Verst 8b5d8d3690
Managed Identity Certification Test for Azure KeyVault Component (#1272) 2021-11-03 20:22:07 -07:00
Phil Kedy 77564a34c0
RabbitMQ certification: Fixing publish/subscribe race condition. (#1271)
* Fixing publish/subscribe race condition in RabbitMQ component.
Added amqpReady function to tests to wait for RabbitMQ readiness.
Tweaks to when subscribed is signaled in the test.

* Update go.mod(s)
2021-11-03 16:37:52 -07:00
Bernd Verst 8e7aa414d8 go mod tidy 2021-11-03 19:02:02 +00:00
Bernd Verst d1d5033dd3
SQL Server Certification Tests (#1265)
* SQL Server certification test: WIP

* Certification tests certifiably certifying

* Custom schema

* Verify custom schema and indexed properties

* docker startup retry backoff

* some refactoring

* Adds SQL injection testing

* linter

* Adds SQL Server to certification workflow

* Update SQL Server certification README

* Add line break at EOF

* go mod tidy

* Update Readme
2021-11-03 10:35:34 -07:00
Phil Kedy 1d0ce9ce23
Kafka certification: Adding more consumers and verifying messages are consumed (#1262)
* Adding second consumer and verifying messages are consumed

* Removed commented out code

* Adding async steps

* Added third consumer

* Adding consumer rebalance test

* Renaming watcher variables

* Update README.md

Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2021-11-02 13:51:15 -07:00
Dmitry Shmulevich cb604e08d6
add component certification test for pubsub.rabbitmq (#1240) 2021-11-02 09:21:47 -07:00
yellow chicks 6e48068067
upgrade/pulsar: upgrade pulsar from v0.1.0 to master (#1247) 2021-11-01 18:34:42 -07:00
Bernd Verst 8a6f7dfdc5
remove port allocation code in favor of dapr runtime testing package (#1245) 2021-10-28 13:05:12 -07:00
Bernd Verst a806951157
Azure KeyVault Integration Tests Part 1 (#1238)
* AKV Integration test - WIP

* KeyVault integration test

* Adds network interruption capabilities

* wip

* remove async handling

* Azure Secret Store test

* get with the flow

* Remove network interruption because it is pointless here

* newlines

* Address code review

* Updte Readme to remove section on basic conformance

* Allocate random ports
2021-10-28 12:05:23 -07:00
Phil Kedy 9a3fe3f683
Kafka certification: Adding infra and network interruption tests (#1241)
* Adding infra and network interruption tests

* Tweak

* Using multierr.Combine

* Adding consumeRetryInterval setting to Kafka pubsub component
2021-10-27 17:41:27 -07:00
Simon Leet 0fdeb429c6
Address flakiness in Azure SQL conformance test (#1219)
* Add script to update Azure SQL firewall rules from GitHub meta API

* Update state.azure.sql test to use unique DB names

- Add use of `databaseName` metadata to state.azure.sql test.
- Add dynamic generation of test `databaseName` to conformance.yml to
  avoid multiple test instances from racing.
- Add wait before clean-up of Azure SQL DB instance in conformance.yml
  to prevent test flakiness and accumulation of undeleted DBs.
- Remove dynamic Azure SQL firewall rule injection from conformance.yml.
- The workflow relies on IPs used by GitHub Actions to be provisioned
  in the firewall rules already.
- Update documentation for managing Azure SQL and testing instructions.

Co-authored-by: Long Dai <long.dai@intel.com>
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2021-10-27 13:38:48 -07:00
Long Dai 8b939a2e95
Merge branch 'master' into add_amqp_properties 2021-10-27 13:11:42 +08:00
Long Dai 6a5d7b0c22
Merge branch 'master' into add_amqp_properties 2021-10-27 12:10:11 +08:00
Long Dai 5073f82e65
Merge branch 'master' into fix_mqtt_bindings_deadlock 2021-10-27 12:04:03 +08:00
Bernd Verst 07c7a042e2
Fix for network interruption in flow (#1237)
Co-authored-by: Long Dai <long.dai@intel.com>
2021-10-26 20:59:50 -07:00
Long Dai b6101f6c13
Merge branch 'master' into add_amqp_properties 2021-10-27 09:54:49 +08:00
Long Dai 4cbeec8975
Merge branch 'master' into fix_mqtt_bindings_deadlock 2021-10-27 09:53:34 +08:00
Bernd Verst 845e876c29
Certification Framework: Add network interruption / blocking capabilities (#1233)
* Adds network interruption capabilities

* remove async handling

* update example docstring

* no need for loop

* small optimization

* newline for good measure

* update dapr version
2021-10-26 18:10:32 -07:00
Simon Leet dfb9e90ede Add more tracing to bindings conformance tests 2021-10-26 23:28:08 +00:00
Long Dai 77bf26a676
Merge branch 'master' into add_amqp_properties 2021-10-26 09:29:57 +08:00
Bernd Verst 53a04bc120
Enhancement for integration test helpers (#1223)
* Add option to run sidecar without app

* Allow specifying custom components path

Co-authored-by: Long Dai <long.dai@intel.com>
2021-10-25 15:10:40 -07:00
Simon Leet 2006bcccb0 Support message-id in Event Hubs components 2021-10-25 18:12:16 +00:00
Ian Luo 117408f76d
add state conformance test for postgresql #1117 (#1118)
* add state conformance test for postgresql #1117

* make postgresql pass comformance test

* include postgresql to github's workflow

* add newline at end of file for Linux text file

* enhance return

* add newline at end of file for valid Linux text file

* fix lint issue

* handle byte[] in special way so that to stick to json type in DB

* use jsonb instead of json

* fix lint issue

* doesn't allow "", a special case

* enhance assertEquals

* remove unused 'expectedReadResponse' to fix lint issue

* go fmt to fix lint issue

* fix lint issue

Co-authored-by: Simon Leet <31784195+CodeMonkeyLeet@users.noreply.github.com>
Co-authored-by: Yaron Schneider <yaronsc@microsoft.com>
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
Co-authored-by: Long Dai <long.dai@intel.com>
Co-authored-by: Dapr Bot <56698301+dapr-bot@users.noreply.github.com>
2021-10-21 14:56:14 -07:00
Dmitry Shmulevich f96a71e4d7
add metadata to query request/response (#1215) 2021-10-20 17:22:42 -07:00
Phil Kedy 698ffb5bfe
Initial certification testing "framework" (#1204)
* WIP

* tweaks

* Simplifying runnables

* Increase network timeout

* tweaks

* More tweaks

* Docker compose and structural tweaks

Co-authored-by: tanvigour <60332928+tanvigour@users.noreply.github.com>

* Tweak

* Working Kafka test

* Watcher ordered vs unordered

* Error simulation

* Made port explicit, removed Redis

* package.Run (better naming)

* terraform related changes

* Restructuring certification testing

* Remove copied go-sdk client package

* Fix terraform.go build issues

* Using master of go-sdk

* Using main of go-sdk

* Tweaks per PR

* Adding file headers and some tweaks per PR

* More tweaks

* More comments in Kafka test

Co-authored-by: tanvigour <60332928+tanvigour@users.noreply.github.com>
Co-authored-by: Tanvi Gour <tanvi.gour@gmail.com>
Co-authored-by: tanvigour <>
Co-authored-by: Long Dai <long.dai@intel.com>
Co-authored-by: Simon Leet <31784195+CodeMonkeyLeet@users.noreply.github.com>
2021-10-20 10:57:47 -07:00
Long Dai 029ca1d79d
Merge branch 'master' into master 2021-10-20 10:44:06 +08:00
Bernd Verst 93e3b5ddc9 enable akv serviceprincipal auth conformance test 2021-10-19 17:39:36 -07:00
Bernd Verst 342fbde8cd Integration test setup for AKV 2021-10-19 17:39:36 -07:00
Dmitry Shmulevich b2752d0326 refine conformance test config 2021-10-19 15:04:17 -07:00
Artur Souza b7d9c0c5e3
Fix conformance test due to query API test not in SQL Server. (#1207) 2021-10-19 13:41:17 -07:00
Dmitry Shmulevich e369fec17e
Add StateStore query API (#1153)
Add StateStore query API implementation for MongoDB, CosmosDB
2021-10-18 13:55:26 -07:00
Bernd Verst 2bd3d22b91
Cosmos DB Output Binding - Conformance & Progress towards GA (#1180)
* cosmosdb binding - not as flexible as I'd like

conformance tests now pass

* add tests for new UUID injection logic

* Use nested property as partition key value

* avoid repeated string constants

* Disable Identification Hydrator to avoid struct requirement

* Remove struct

* Simplify PR

* Add comments ofor code maintenance
2021-10-12 10:47:36 -07:00
Simon Leet 9f77037de2
Add state.sqlserver conformance test against Azure SQL (#1182)
* Add Azure SQL to setup-azure-conf-test.sh

* Add state.sqlserver conformance test on Azure SQL

Co-authored-by: Dapr Bot <56698301+dapr-bot@users.noreply.github.com>
2021-10-06 12:33:50 -07:00
Simon Leet a9cf218c04
Support setting up Azure IoT Hub for integration testing with EventHubs components (#1174)
* Add IoT Hub config to setup-azure-conf-test.sh

* Add EventHubs bindings integration test for IoT device event properties

* Add consumer group for IoT Hub events for pubsub EventHubs testing

* Add EventHubs pubsub integration test for IoT device event properties
2021-10-01 16:17:53 -07:00
Bernd Verst f8456bc0d1 Fix EOF linebreaks 2021-09-21 16:33:04 -07:00
Bernd Verst 0cd1c54ba0 Adds first-write conformance test 2021-09-21 16:33:04 -07:00
Bernd Verst b688d5c2b5 update metadata key 2021-09-21 16:33:04 -07:00
Bernd Verst 90791a30fc TableStorage conformance tests pass 2021-09-21 16:33:04 -07:00
Bernd Verst a2b0fe5be4 TableStore config 2021-09-21 16:33:04 -07:00
Bernd Verst d2580bcf51 tablestorage conformance WIP 2021-09-21 16:33:04 -07:00
Long Dai 988fed05ab
ci: standard linter config (#1102)
* ci: standard linter config

Signed-off-by: Long <long.dai@intel.com>

* Update utils.go

* fix pulsar issue

Signed-off-by: Long <long.dai@intel.com>

Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2021-09-21 15:21:59 -07:00
Ian Luo b208d80055
Add mysql conformance test (#1124)
* Add mysql conformance test and fix mysql state to make it pass the test #1122

* remove unused code

* add newline at end of Linux text file

* enhance setValue and relevant unit tests

* fix lint issue

* fix lint issue
2021-09-11 08:00:25 -07:00
Phil Kedy a0542ec922
Adding `initialOffset` option to Kafka binding and pubsub components (#1120)
* Adding `initialOffset` option to Kafka binding and pubsub components

* Only allow oldest and newest

* Fix tests

Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2021-09-02 18:02:10 -07:00
Manuel Riezebosch 18cbe25e4e
feat(pubsub): add in-memory pub/sub (#1106) 2021-09-02 17:31:17 -07:00
Simon Leet 9bcf71d62a
Add conformance test for influx bindings (#1115)
- Add `OutputData` property to bindings conformance test `TestConfig`.
  This is necessary to accommodate bindings like influx, cosmosdbgraph,
  alibaba.table and other bindings that require a specific data format.

- Add docker-compose definition and conformance test configuration for
  influx binding.

- Add influx bindings to conformance test workflow matrix.
2021-09-02 09:28:58 -07:00
Jaime Piña f4a5722806
Add JetStream support (#1101)
* Add JetStream support

* Add conformance tests

* Fix lint

Co-authored-by: Yaron Schneider <yaronsc@microsoft.com>
2021-09-01 11:50:16 -07:00
Simon Leet ec6021304d
Update EventHubs conformance tests (#1095)
* Fix parameters flag typo in setup-azure-conf-test.sh

* Update Event Hubs conformance tests

- Separate containers and consumer groups used for EventHub pubsub and
  bindings conformance tests.
- Update setup-azure-conf-test.sh to reflect new naming targets.
2021-08-26 15:38:51 -07:00
Bernd Verst c1495037cf
Contributor Docs: Debugging conformance tests (#1079)
* Add conformance test debug instructions

* Update tests/conformance/README.md

Co-authored-by: Simon Leet <31784195+CodeMonkeyLeet@users.noreply.github.com>

* Update tests/conformance/README.md

Co-authored-by: Simon Leet <31784195+CodeMonkeyLeet@users.noreply.github.com>

Co-authored-by: Bernd Verst <me@bernd.dev>
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
Co-authored-by: Simon Leet <31784195+CodeMonkeyLeet@users.noreply.github.com>
Co-authored-by: Dapr Bot <56698301+dapr-bot@users.noreply.github.com>
2021-08-26 15:29:14 -07:00
Bernd Verst 059dc8c0d2
Conformance tests & bugfixes for SQLServer (#1078)
* enable sqlserver conformance test

* Update SQL Server conformance test setup

* Fix sqlserver bug introduced in Go 1.16

* sqlserver almost conformant

* Fix conformance tests and stored procedure

* all sqlserver tests passing

* Minor touchup

* lint

* Remove unnecessary condition

* Add conformance test to GitHub workflow

* remove env variable

* Update stored procedure

* Simplify error handling

* Update state/sqlserver/sqlserver.go

Co-authored-by: Simon Leet <31784195+CodeMonkeyLeet@users.noreply.github.com>

* Update state/sqlserver/sqlserver.go

Co-authored-by: Simon Leet <31784195+CodeMonkeyLeet@users.noreply.github.com>

Co-authored-by: Bernd Verst <me@bernd.dev>
Co-authored-by: Simon Leet <31784195+CodeMonkeyLeet@users.noreply.github.com>
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
Co-authored-by: Dapr Bot <56698301+dapr-bot@users.noreply.github.com>
2021-08-19 17:47:56 -07:00
Simon Leet 796df4dd61
Add Close() function to Azure ServiceBusQueues binding (#1052)
* Add Close() conformance test

* Add Close() to AzureServiceBusQueues binding

* Accept nil on bindings Read Close() test

Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
Co-authored-by: Dapr Bot <56698301+dapr-bot@users.noreply.github.com>
2021-08-13 18:15:39 -07:00
Simon Leet 6c28306b10
Customize sleep in EventGrid bindings conformance test between read and publish (#1050)
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2021-08-04 14:38:50 -07:00
Long Dai 10a2e5ee85
state: correct FIRST_WRITE (#995)
* state: correct FIRST_WRITE

Signed-off-by: Long Dai <long0dai@foxmail.com>

* add a test case

Signed-off-by: Long <long0dai@foxmail.com>
2021-08-03 17:26:45 -07:00
Simon Leet dc7ee55e2a
Add Event Hubs pubsub and bindings conformance tests (#1040)
* Add conformance test for EventHubs bindings

* Update EventHubs pubsub to pass conformance tests

- Add conformance tests for Azure EventHubs PubSub component
- Add retry & backoff handling on subscriber handling error to EventHubs
  PubSub component for conformance tests.
- Add cancellation context to Azure EventHubs and update Close() to
  invoke cancel prior to closing the hub, which cleans up both senders
  and receivers.
2021-08-02 18:03:24 -07:00
Simon Leet 9c84bd202c
Add automation for deploying Azure conformance test resources (#1001)
* Add automation for deploying Azure conformance test resources

- Add .bicep definitions for Azure deployment of conformance test resources.
- Add setup-azure-conf-test.sh script for deploying .bicep definition and
  configuring other assets needed for the Azure conformance tests:
   - Creates the appropriate service principals and their credentials
     for the test.
   - Populates the key vault with the test parameters and secrets used by
     the GitHub conformance.yml test workflow.
   - Generates a .rc file that can be invoked with `source` to configure
     the local environment variables and secrets for running conformance
     tests described in tests/conformance/README.md.
   - Generates a teardown script that can be used to dispose of the
     deployed Azure resources when done.

* Move setup-azure-conf-test under azure/ subfolder

* Add documentation for Azure conformance test automation

- Add README.md to .github/infrastructure/conformance/azure describing
  use of automation script.
- Update tests/conformance/README.md with reference to Azure
  conformance test infrastructure automation.
- Fix spelling and issues in tests/conformance/README.md reported by
  markdownlint.
2021-07-28 10:06:14 -07:00
Christian Kaps 80f0110fa8
Return blob metadata and add list operation (#999)
* Return blob metadata if configured

* Enhance error msg

* Add list functionality

* Fix linting issues

* Finalize list implementation

* Fix linting errors

* Add backward compatibility and align code to be more consistent

* Add tests

* Fix linting errors

* Rename properties

* Fix max result logic

* Fix linting error

* Fix PR suggestions

* Add comments for constants

* Run go mod tidy

Co-authored-by: Yaron Schneider <yaronsc@microsoft.com>
2021-07-14 09:17:48 -07:00
Christian Kaps cb9a510d16
Implement E2E tests for zeebe (#973)
Co-authored-by: Yaron Schneider <yaronsc@microsoft.com>
2021-07-12 11:40:38 -07:00
Simon Leet 830f6ee3ed
Use AzureKeyVaultName param for Azure Keyvault conformance test (#975)
Unlike the other conformance tests, the azure-keyvault.yaml config hardcodes the name of the
target resource which creates an issue for contributors wanting to set up their own test
environments. For example, different users sharing an Azure subscription may not be able
to manage the permissions on the target key vault individually, and will need to edit the
yaml to retarget against their own keyvault instance.

- Add `AzureKeyVaultName` environment variable as the value for `vaultName` in azure-keyvault.yaml
- Update conformance.yml github workflow to require AzureKeyVaultName secret.
2021-07-07 12:04:50 -07:00
iamazy 74af5b6528
rename ConsumerID to ConsumerGroup (#965)
* rename ConsumerID to ConsumerGroup

* rename consumerID to consumerGroup

* update the config in the conformance test

* set ConsumerID as alias of ConsumerGroup

* remove extra space

* gofmt

* add ClientID in kafka metadata

* remove ConsumerID field

* gofmt

* Update kafka.go

Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2021-06-23 10:33:27 -07:00
Phil Kedy 8e6b36ecdf
Importing the retry and config packages from kit instead of internal (#940)
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2021-06-22 09:38:55 -07:00
Long Dai 4ee732e0bd
ci: enable gofumt linter (#887)
Signed-off-by: Long Dai <long0dai@foxmail.com>
2021-05-27 22:21:24 -07:00
문찬용 b387fcdff3
add Ping operation to`store` interface. (#757)
* add `Ping` operation.

* add `Ping` implementation of GA components

* add context to an argument for Ping

* add `Ping` implementation of blobstorage

* fix error string for passing lint

* Update blobstorage.go

Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2021-05-25 23:48:46 -07:00
Phil Kedy 6d00917246 pubsub conformance tests: Use a single timer for the duration of the subscribe wait loop 2021-04-22 13:35:45 -04:00
Phil Kedy 688df9bda4
Removed dependency on dapr/dapr in favor of dapr/kit. Fixed go mod dependencies afterwards. Go 1.16 in go.mod. Removed accidental log dependency. (#807) 2021-04-19 12:06:10 -07:00
Artur Souza 3993d9a559
Merge branch 'master' into jjcollinge/pubsub-context 2021-04-08 14:11:01 -07:00
Phil Kedy 08d9ce05cf Fixed linter issue 2021-03-26 11:10:41 -04:00
Phil Kedy bad759f6d8 Adding the mqtt binding to the conformance tests 2021-03-26 11:05:19 -04:00
Joni Collinge 9fd461b255 Merge branch 'master' into jjcollinge/pubsub-context 2021-03-23 17:45:05 +00:00
Yaron Schneider 192461889c
Add app response to input binding event (#764)
* add app response to input binding event

* lint
2021-03-18 14:22:14 -07:00
Artur Souza 931048aa60
Add Feature list for state store. (#744)
* Add Feature list for state store.

* List Transactional as a feature for state store.

* Fixing comments about etag.
2021-03-05 14:55:23 -08:00
Phil Kedy a1a0ad2c25
Adding RabbitMQ to the conformance tests (#739)
* Initial pass at adding RabbitMQ to the conformance tests

* Fixing unit tests
2021-03-04 11:56:35 -08:00
Phil Kedy a15c616bb0
Make state.GetResponse ETag to a *string (#733)
* Make state.GetResponse ETag to a *string

* Small fixes post merge of #716

Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2021-03-03 13:28:59 -08:00
Phil Kedy 44d64598b8
Added Hazelcast to conformance tests and retry to prevent message loss (#724) 2021-03-03 13:08:58 -08:00
halspang cb3c881d39
Add ETag operation to statestore conformance test (#716)
* Add ETag operation to statestore conformance test

ETags are used to enable concurrency guarantees and are part of the
statestore specification. Not all stores need to use them, however
if the store chooses to, it should be part of the certification
process. This commit adds a simple ETag test scenario that verifies
the basic behaviors of ETags.

https://github.com/dapr/components-contrib/issues/711

* Update tests.yml

* Error on mongodb when etag does not match on delete.

Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2021-03-03 12:27:10 -08:00
Mukundan Sundararajan 3ebe447759
fix duration for event grid conf test (#735) 2021-03-03 12:03:09 -08:00
Phil Kedy 715cc8d688
Refactored conformance tests to use a new config package (#712)
* Refactored the conformance tests to use a new config package
Removed dependency on k8s apimachinery sets

* Comment tweak

* Renamed kit package to internal
2021-03-01 13:03:39 -08:00
Phil Kedy df1d80d411
Conformance Test: PubSub - Ignore already processed messages (#722)
* Conformance Test: PubSub - Ignore already processed messages

* Fixing a race condition in StartHTTPServer
2021-02-26 01:32:00 -08:00
Phil Kedy e8efbca072
Add MQTT pubsub to the conformance tests (#721)
* Add MQTT pubsub to the conformance tests

* Making the MQTT pubsub component conformance test against multiple brokers
2021-02-25 18:16:23 -08:00
Joni Collinge 2ff6ca4302 merge master 2021-02-25 16:15:26 +00:00
Phil Kedy 4f79098df2
Make failing conformance tests also fail the build (#715)
* Setting pipefail option in github workflow and purposefully making the Redis test fail to verify that the build fails (as expected)

* Disabling in order processing for Redis (re-disabling) and Azure Service Bus
2021-02-24 19:48:48 -08:00
Phil Kedy 4a0011bcbd
Improve conformance tests and add pulsar (#702)
* Improve conformance tests and add pulsar

* Fix linter error

* Fix linter errors

* Tweaks to pulsar pubsub per PR

* Switching uuid import

* Using Stringer interface to print message keys as base64 in logger

* Disabling some checks w/ Redis pubsub until the component can be enhanced

* Adding comment to eventually remove the simulateErrors option

* Add comment asBase64String to explain what it does

* Adding redelivery (reclaims) to the Redis pubsub component
Removed the temporary simulateErrors flag now that Redis is passing

* Fixing linter issues

* using a wait group instead of a sleep to wait for processing to complete

* More comments and refactoring

* comment tweaks

* Tweaks per PR

Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2021-02-23 13:31:52 -08:00
Artur Souza c4a7f0bae1 Merge remote-tracking branch 'upstream/release-1.0' into merge_release_master 2021-02-17 15:23:42 -08:00
Mukundan Sundararajan d4c7df42d5
Update conf test readme (#693)
* Update conf test readme

* Update README.md

* address review comments

* Update tests.yml

* Update README.md

* Update README.md
2021-02-16 14:56:01 -08:00
Artur Souza 13051e2197
Adds conf test for natsstreaming. (#690) 2021-02-12 08:09:50 -08:00
Artur Souza dd3e463b52
Fix pubsub retry for Kafka (#688)
* Add conformance test for kafka pubsub + quickfix for Kafka error handling.

* Adding backoff/retry logic to the Kafka pub/sub component

* Add logic to return if error from backoff in kafka.

* Addressing PR comments and lint.

Co-authored-by: Phil Kedy <phil.kedy@gmail.com>
2021-02-12 00:08:46 -08:00
Nghia Tran 724473462b
Run conformance tests for Kuberentes secret store (#673)
* Run K8s secret store tests

* Add workaround for https://github.com/golang/go/issues/40795

* Add clarity to the hack
2021-02-11 14:40:32 -08:00
Artur Souza 2562908dee
Conf state trx + Change mongodb get result for key not found + Fix byte[] in cosmosdb (#680)
* Add state transaction conf test.

* Does not return error for key not found in mongodb.

* Rewrite state conf test.

* Handle []byte in cosmosdb state txn (#664)

Fixes: dapr/dotnet-sdk#579

The issue here is that we had missed the case of pre-marshaled bytes in
the state transaction code path, which would result in the encoding/json
package doing it's normal thing and base64 encoding the data as a JSON
string.

The fix is to use json.RawMessage to avoid that. Turns out this code can
be simplified a bit.

* Fix cosmosdb handling of byte[].

* Fix lint.

* Fix UT for cosmosdb.

* Remove config from state store conf test.

Co-authored-by: Ryan Nowak <nowakra@gmail.com>
2021-02-10 18:15:59 -08:00
Artur Souza 1ae721a23a
Stop ngrok when done running conf tests. (#678)
Increase eventgrid test timeout.
2021-02-10 16:03:08 -08:00
Yaron Schneider 3ef025c604
change headers (#679) 2021-02-09 18:57:55 -08:00
Phil Kedy e6924c6d7b
Improving the versatility of the HTTP output binding (#661)
* no message

* Removing HTTP input binding from conformance test

* Moving // nolint: noctx

* Fixed linter issue

* Tweaks

* Tweak

* Setting request headers from metadata

* More comments and handling of non-200 response codes

* Fixing conformance test for HTTP

* Temporarily bumping up redis timeouts

Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
Co-authored-by: Charlie Stanley <charlie.stanley@microsoft.com>
2021-02-09 12:02:47 -08:00
Artur Souza 6a26165f92
Increase timeout for conf test + more logging for EventGrid. (#666) 2021-02-07 18:38:49 -08:00
Nghia Tran 33af2809e2
Add Azure Keyvault secret store (#654)
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2021-02-07 18:23:50 -08:00
Artur Souza ac28629cb0
Increase timeout for conf test + more logging for EventGrid. (#663) 2021-02-05 19:10:44 -08:00
Artur Souza 795b62417e
Add verbosity to conf tests. More debug logging in eventgrid binding. (#662) 2021-02-05 17:41:06 -08:00
Artur Souza a020fd0f27
Adds conf test for Azure Event Grid. (#659) 2021-02-05 15:05:48 -08:00
halspang 13092f20df
Add Azure Service Bus Queues binding to tests (#651)
https://github.com/dapr/components-contrib/issues/619

Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2021-02-04 15:21:38 -08:00
halspang aba184f942
Use a channel to block server start before tests (#644)
The http server required for the http binding tests was not up
before the tests began to execute. This change adds a channel to
allow the server to block until it's ready.

Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2021-01-29 18:42:34 -08:00
Mukundan Sundararajan 2a100c05bf
add license header to conf test files (#643) 2021-01-29 16:46:29 -08:00
halspang 6f31e9f14f
Add http input/output bindings test (#637)
* Refactor bindings and introduce input bindings

This commit adds Kafka output bindings tests and refactors the
general bindings tests to include input and output bindings in
the same set of tests. Azure Storage Queues are used as the
first input binding.

* Add http input/output bindings test

Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2021-01-29 13:00:09 -08:00
Mukundan Sundararajan d079beacd3
Refactor conformance tests (#626)
* Fix running output bindings with errors
Refactor tests to make it simpler for go test filtering.
Add get operation for blobstorage binding.

* remove unused code
2021-01-21 19:19:34 -08:00
Mukundan Sundararajan a9aeffbb30
Azure service bus conf tests (#614)
* Add azure service bus conformance tests
Bubble up error on required env var not set

* Update common.go

* Fix running output bindings with errors

* update readme

Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2021-01-21 17:06:33 -08:00
Nghia Tran a9d20c95b6
Conformance tests for MongoDB State Store (#623)
* Tests MongoDB statestore

* Increase test timeout a bit

* Increase durations even more.

* Clarify the mongodb and redis version

Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2021-01-21 11:20:45 -08:00
Nghia Tran cb63cda501
Conformance tests for Azure Blob Storage & Storage Queue output bindings (#624)
* Conformance tests for Azure Blob Storage & Storage Queue bindings

* Fix lint comments

* Unit tests for path util
2021-01-21 10:35:30 -08:00
halspang 2d0ebf8a8c
Add conformance tests for output bindings (#608)
This commit adds new conformance tests for output binding components.
Redis is being used as a the introductory binding example.

https://github.com/dapr/components-contrib/issues/409

Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2021-01-20 18:23:15 -08:00
Nghia Tran 3086450ced
Add CosmosDB state store conformance tests (#622)
* Add CosmosDB conformance tests

* Fix workflow & lint

* Add more disclaimers to README.md
2021-01-20 14:38:09 -08:00
Mukundan Sundararajan 079d0b1bd0
Fix bulk get secret conformance tests (#621)
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2021-01-20 12:55:27 -08:00
Mukundan Sundararajan 465d09e54d
Add initial set of conformance tests (#586)
* Add initial set of conformance tests

* remove go mod changes

* set and unset env var for test
2021-01-20 12:09:51 -08:00