Commit Graph

3297 Commits

Author SHA1 Message Date
Joni Collinge 6c8b0ef77d
Merge branch 'master' into jjcollinge/pubsub-context 2021-03-25 19:57:22 +00:00
Phil Kedy 22b475e636
Merge branch 'master' into add_more_config_for_redis 2021-03-25 12:58:39 -04:00
Lynn Orrell c1905ba63b
Local Storage Binding Updates (#776)
* Introduced localstorage binding

* Code cleanup

* Linter cleanup

* Linter cleanup

* Now using ioutil.ReadAll() as io.ReadAll() fails to build on Windows

* Renamed metadata field

* Now returning the filename on create

* Now only generating a UUID filename for creates

Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
Co-authored-by: Phil Kedy <phil.kedy@gmail.com>
Co-authored-by: Yaron Schneider <yaronsc@microsoft.com>
2021-03-24 20:56:20 -07:00
Phil Kedy 4124734e57
Merge branch 'master' into add_more_config_for_redis 2021-03-24 12:14:03 -04:00
zhangchao 9304037b70 rename backoff* to redis* 2021-03-24 20:58:56 +08:00
Joni Collinge ac1ae01e9b
Merge branch 'master' into jjcollinge/pubsub-context 2021-03-24 08:40:17 +00:00
Lynn Orrell 08305017c1
Localstorage (#753)
* Introduced localstorage binding

* Code cleanup

* Linter cleanup

* Linter cleanup

* Now using ioutil.ReadAll() as io.ReadAll() fails to build on Windows

* Renamed metadata field

Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
Co-authored-by: Phil Kedy <phil.kedy@gmail.com>
Co-authored-by: Yaron Schneider <yaronsc@microsoft.com>
2021-03-23 18:00:56 -07:00
Joni Collinge 36ed5ec84f use existing context for pubsub comps 2021-03-23 20:12:46 +00:00
Joni Collinge 2d0864d25c use existing context for gcp 2021-03-23 19:45:35 +00:00
Joni Collinge 9fd461b255 Merge branch 'master' into jjcollinge/pubsub-context 2021-03-23 17:45:05 +00:00
Phil Kedy 7eb4896cfa
Merge branch 'master' into add_more_config_for_redis 2021-03-22 18:55:34 -04:00
Phil Kedy fd76fec2f7
Merge pull request #762 from artursouza/fix_cosmosdb_contenttype
Fix cosmosdb state store to handle content-type, with JSON as default.
2021-03-22 18:52:27 -04:00
Artur Souza 84c08b45d8
Merge branch 'master' into fix_cosmosdb_contenttype 2021-03-22 15:17:51 -07:00
Phil Kedy e9095e5081
Merge branch 'master' into add_more_config_for_redis 2021-03-22 18:11:04 -04:00
Trond Hindenes e5d686b56b
refactor GCP pubsub (#760)
* started on refactoring gcp pubsub

* Maybe this works?

* Working implicit auth

* Some fixes

* Updated tests

* Fix lint errors, tests

* trigger ci

Co-authored-by: Yaron Schneider <yaronsc@microsoft.com>
2021-03-22 14:47:05 -07:00
Phil Kedy a750f3c698
Merge branch 'master' into add_more_config_for_redis 2021-03-19 20:08:32 -04:00
Taction fb09a07e0f
fix pubsub redis close bug (#769)
When component close function called `r.cancel()` and `r.client.Close()` will be excuted.
The pollNewMessagesLoop loop use client to read from redis which will lead to err. And when err occured this loop will continue.
We need to check context on the top of this loop.
2021-03-19 17:01:03 -07:00
zhangchao ddbb039210 rename maxRetries minRetryBackoff maxRetryBackoff to backoffMaxRetries backOffMinInterval backOffMaxInterval. to be consistent with other components 2021-03-19 12:50:09 +08:00
Phil Kedy 280f810047
Merge branch 'master' into add_more_config_for_redis 2021-03-18 17:56:00 -04:00
Phil Kedy ea154f90a4
Merge branch 'master' into fix_cosmosdb_contenttype 2021-03-18 17:43:37 -04: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
zhangchao 1d376f3f3b fix lint 2021-03-18 22:40:19 +08:00
zhangchao 22f0f43e9b fix: add more connection settings 2021-03-18 22:01:57 +08:00
zhangchao fd1a544877 fix: parse duration-based settings as a time.Duration like redeliverInterval and processingTimeout are and remove the InSec suffix 2021-03-18 21:24:24 +08:00
Artur Souza aed9b583d9
Merge branch 'master' into fix_cosmosdb_contenttype 2021-03-17 23:27:25 -07:00
yellow chicks c3b161ed83
fix(typo): state redis log (#761) 2021-03-17 23:14:56 -07:00
zhangchao f433307fb1 add some redis client config that may be commonly used 2021-03-17 18:19:48 +08:00
Artur Souza 683246700e Add error check for required fields in cosmosdb. 2021-03-16 15:21:13 -07:00
Artur Souza 4f8e7f3358 Defaults to application/json for cosmosdb in init() 2021-03-16 15:10:40 -07:00
Artur Souza 0d44da776c Fix cosmosdb state store to handle content-type, with JSON as default. 2021-03-16 12:39:16 -07:00
Joni Collinge ca62139f47
Make connection recovery configurable using metadata (#713)
* add metadata properties to control max reconn attempts and recovery delay

* add metadata tests

Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
Co-authored-by: Yaron Schneider <yaronsc@microsoft.com>
2021-03-12 12:41:38 -08:00
Sivamuthu Kumar 8ba6a46c4c
AWS SSM Parameter Store (#747)
* (feat) AWS SSM Parameter Store implementation

* AWS SSM Parameter store unit tests

* AWS SSM Parameter store integration tests and style fix

* Lint fix
2021-03-12 11:41:47 -08:00
Fabian Steinbach 3a3998bb60
add delete to blob storage binding (#705)
* add delete to blob storage binding

* adjust linting

* make deletesnapshotsoption configurable

* update linting

Co-authored-by: Yaron Schneider <yaronsc@microsoft.com>
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2021-03-09 00:20:43 -08: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
Artur Souza a8d5dea748
Run conf tests in release branch. (#737) 2021-03-03 21:58:02 -08:00
Phil Kedy 1b70adb9a0
Bumping dapr/dapr version and running go mod tidy (#738) 2021-03-03 14:42:42 -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
Artur Souza a8de09faf4
Adds etag support to MongoDB. (#729)
* Adds etag support to MongoDB.

* Addressing PR comments.

* Remove empty etag check.
2021-03-01 15:02:28 -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
Amen Belayneh 9bccb8e711
Fix broken links (#718) 2021-02-25 12:45:22 -08:00
Joni Collinge 2ff6ca4302 merge master 2021-02-25 16:15:26 +00:00
Joni Collinge c054ae6ada Merge branch 'master' into jjcollinge/pubsub-context 2021-02-25 16:15:06 +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