Commit Graph

1334 Commits

Author SHA1 Message Date
Ryan Lettieri 97a91c0b8f Changing cosmos header checks to lower case
Signed-off-by: Ryan Lettieri <ryanLettieri@microsoft.com>
2022-09-09 14:08:45 -06:00
Ryan Lettieri 34c24ba994 Adding capability for cross partition query in cosmos with track2SDK
Signed-off-by: Ryan Lettieri <ryanLettieri@microsoft.com>
2022-09-09 13:52:49 -06:00
Bernd Verst 5d7367c335 CosmosDB State: Use document enveloped, handle doc NotFound
Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
2022-09-09 00:24:48 +00:00
Bernd Verst f1a2dd75f5 Return CosmosDB State Features correctly
Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
2022-09-08 16:04:19 -07:00
Bernd Verst 6d72aff573 modtidy
Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
2022-09-08 15:25:54 -07:00
Ryan Lettieri 8fd5822a5c Removing unncessary features from cosmosdb
Signed-off-by: Ryan Lettieri <ryanLettieri@microsoft.com>
2022-09-08 15:25:34 -07:00
Ryan Lettieri 924f39d60b Running go mod tidy
Signed-off-by: Ryan Lettieri <ryanLettieri@microsoft.com>
2022-09-08 15:25:34 -07:00
Ryan Lettieri 9189ddc4dc Adressing review comments for cosmosdb statestore track2sdk
Signed-off-by: Ryan Lettieri <ryanLettieri@microsoft.com>
2022-09-08 15:25:34 -07:00
Ryan Lettieri f57253eabe Missing newline to go.mod
Signed-off-by: Ryan Lettieri <ryanLettieri@microsoft.com>
2022-09-08 15:25:34 -07:00
Ryan Lettieri e012a807b7 Upgrading cosmosdb statestore to track2SDK
Signed-off-by: Ryan Lettieri <ryanLettieri@microsoft.com>
2022-09-08 15:25:33 -07:00
Shivam Kumar 2b5650c2fa
Certification test for Azure CosmosDB Statestore (#1972)
* Certification test for Azure CosmosDB

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

* Updating go.mod

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

* make motidy-all

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

* CosmosDB Cert Test: Apply Dapr Runtime updates, Go version update etc

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

Signed-off-by: shivam <shivamkm07@gmail.com>
Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
Co-authored-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
2022-09-08 15:18:03 -07:00
Bernd Verst ebaa1b5cc5
Merge pull request #2040 from yash-nisar/mongodb-tests 2022-09-07 19:39:08 -07:00
Yash Nisar 8e4dade7ed Add certification tests for MongoDB state store
Closes https://github.com/dapr/components-contrib/issues/1938

Signed-off-by: Yash Nisar <yashnisar@microsoft.com>
2022-09-07 18:45:50 -05:00
Bernd Verst 0c7bf0ad70
Merge pull request #2054 from berndverst/vuln
Adds Go vulnerability check to workflow and addresses existing vulnerable dependency
2022-09-06 10:22:45 -07:00
Bernd Verst d7105612e8 Add Go vulnerability check to workflow
Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
2022-09-06 10:07:06 -07:00
Oliver b18e73d028
Add prefix option to AWS SSM Parameter Store secret store component (#2043)
Signed-off-by: Oliver Streek <ostreek@rosske.co.uk>

Signed-off-by: Oliver Streek <ostreek@rosske.co.uk>
2022-09-01 11:40:30 -07:00
Bernd Verst 19341e5a0f
Merge pull request #2042 from berndverst/gitignore
Add macOS .DS_Store to gitignore
2022-09-01 09:58:27 -07:00
Bernd Verst 5989bd02b5 Add macoS .DS_Store to gitignore
Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
2022-09-01 09:24:37 -07:00
Bernd Verst 20622d8806
Merge pull request #2038 from mcandeia/fix/query-filters
Query API: Set filters when unmarshalling Query Struct
2022-09-01 09:01:02 -07:00
Marcos Candeia b85ed188e8 Create QueryFields object to avoid multiples json unmarshalling
Signed-off-by: Marcos Candeia <marrcooos@gmail.com>
2022-08-31 19:47:27 -03:00
Marcos Candeia b1e1dc5043 Query API: Set filters when unmarshalling
Signed-off-by: Marcos Candeia <marrcooos@gmail.com>
2022-08-31 17:17:26 -03:00
amulyavarote 57e4ca0f29
Added postgres conformance test for binding (#2034)
* Added postgres conformance test for binding

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

* Added quotations to the connection string

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

* Added postgres docker for bindings

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

* Changes based on the review comment

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

Signed-off-by: Amulya Varote <amulyavarote@microsoft.com>
Co-authored-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
2022-08-30 12:06:40 -07:00
Bernd Verst d630c03885
Merge pull request #2028 from famarting/redis-pubsub-fix
bugfix: stuck pending messages
2022-08-30 10:33:56 -07:00
Bernd Verst 30f32b1dcc
Merge branch 'master' into redis-pubsub-fix 2022-08-30 10:12:48 -07:00
deepanshuagarwal f0a75567eb
Calculates and sends discord notification for Cert test coverage more than 80% (#2025)
* commit

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

* commit

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

* commit

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

* commit

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

* commit

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

* commit

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

* commit

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

* commit

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

* commit

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

* commit

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

* commit

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

* commit

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

* commit

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

* commit

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

* commit

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

* commit

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

* commit

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

* commit

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

* commit

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

* commit

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

* commit

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

* commit

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

* commit

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

Signed-off-by: Deepanshu Agarwal <deepanshu.agarwal1984@gmail.com>
Co-authored-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
2022-08-30 10:04:15 -07:00
Bernd Verst 33367d4665
Merge pull request #2021 from bopmatic/first_write_wins
AWS DynamoDB first write concurrency support
2022-08-30 09:38:26 -07:00
Mike Brown 13cef6cba1
dymamodb state: add support for first write concurrency
The existing logic for the dymamodb state store does not respect the
FirstWrite concurrency option for a SetRequest when etags are not used
by the client. This commit fixes the issue by employing a conditional
expression to test for the existence of an item when FirstWrite is
specified and etags are not.

Signed-off-by: Mike Brown <github@torvosoft.com>
2022-08-30 12:11:45 -04:00
Fabian Martinez 0af973b4d0
Merge branch 'master' into redis-pubsub-fix 2022-08-30 08:41:16 +02:00
Bernd Verst 6f8fa005b7
Merge pull request #2031 from tmacam/HashicorpVaultCertification_I1926 2022-08-29 21:51:59 -07:00
Tiago Alves Macambira b84adbf03a Conformance tests for Hashicorp Vault.
This PR adds conformance tests for Hashicorp Vault secret store component.
This will help brining this component to stable status.

This addresses (but does not fix) #1926.

Signed-off-by: Tiago Alves Macambira <tmacam@burocrata.org>
2022-08-29 21:26:51 -07:00
Bernd Verst 96b22a37ef
Merge branch 'master' into redis-pubsub-fix 2022-08-29 16:05:17 -07:00
Bruce Huang c59d27f9e6
Add certification tests for the local storage binding and fix module name & package version conflicts (#1986)
* fix package name & package version conflicts

Signed-off-by: helbing <helbingxxx@gmail.com>

* add certification tests for local_storage binding

Signed-off-by: helbing <helbingxxx@gmail.com>

* fix conflict

Signed-off-by: helbing <helbingxxx@gmail.com>

* Update tests/certification/bindings/alicloud/nacos/go.mod

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

* Update tests/certification/bindings/alicloud/dubbo/go.mod

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

* Update tests/certification/bindings/localstorage/go.mod

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

* Pin latest dapr/dapr in certification tests and modtidy

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

* update certification test due to API changes

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

* Update component loader codepath

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

Signed-off-by: helbing <helbingxxx@gmail.com>
Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
Co-authored-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
2022-08-29 13:05:37 -07:00
Bernd Verst 6316ff1a99
Merge pull request #2030 from dapr/berndverst-patch-2
Reduce conformance test run frequency
2022-08-29 11:51:10 -07:00
Bernd Verst e7fdaa7019
Reduce conformance test run frequency.
Run conformance tests against master every 8 hours instead of 30 minutes.

Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
2022-08-29 11:43:04 -07:00
Yaron Schneider edd2c9d5a9
Merge branch 'master' into redis-pubsub-fix 2022-08-29 07:00:16 -07:00
Fabian Martinez ce2570cfa2 bugfix: stuck pending messages
Signed-off-by: Fabian Martinez <46371672+famarting@users.noreply.github.com>
2022-08-29 15:25:49 +02:00
Bernd Verst 3aefa52b21
Merge pull request #1979 from bopmatic/dynamo_etag 2022-08-28 23:15:37 -07:00
mikeb26 0db921b8c5
Merge branch 'dapr:master' into dynamo_etag 2022-08-27 18:01:15 +00:00
mikeb26 878bb41d08
Merge pull request #1 from berndverst/bopmatic/dynamo_etag
Rebase dynamo_etag branch against contrib master.
2022-08-27 17:56:37 +00:00
Bernd Verst 385bb9fe82
Azure Service Bus Queues Binding: disable entity management option (#2022) 2022-08-26 23:49:39 -07:00
Mike Brown 964c208977 dynamodb state: add support for etags
In order to safely support concurrent updates to existing state items
clients should employ etags. (For reference please see
tinyurl.com/5n83tnfp). Existing support for AWS DynamoDB does not
include support for etags. This change introduces etag support for AWS
DynamoDB utilizing conditional expressions (reference
tinyurl.com/5du587m8).

Signed-off-by: Mike Brown <github@torvosoft.com>
2022-08-26 11:34:03 -07:00
Mike Brown ad84226cf4 dynamodb state: refactor common Set() & BulkSet() logic
Both Set() and BulkSet() contained duplicate logic to convert a dapr
state.SetRequest into a map[string]*dynamodb.AttributeValue. This
change refactors that logic into a new utility function
getItemFromReq(). This will ensure that subsequent changes to add
missing features (e.g. etag) will only have to be expressed once.

Signed-off-by: Mike Brown <github@torvosoft.com>
2022-08-26 11:34:03 -07:00
Bernd Verst 5aae9c1126
RethinkDB: Remove falsely advertised transation support. (#2020)
Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>

Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
2022-08-26 10:04:46 -07:00
Bernd Verst 615ed7acb3
pin latest dapr/dapr in certification tests (#2019)
Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>

Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
2022-08-26 09:46:47 -07:00
Mike Brown c7e7d517c0
dynamodb state: add support for etags
In order to safely support concurrent updates to existing state items
clients should employ etags. (For reference please see
tinyurl.com/5n83tnfp). Existing support for AWS DynamoDB does not
include support for etags. This change introduces etag support for AWS
DynamoDB utilizing conditional expressions (reference
tinyurl.com/5du587m8).

Signed-off-by: Mike Brown <github@torvosoft.com>
2022-08-26 12:08:29 -04:00
Mike Brown 87cd275069
dynamodb state: refactor common Set() & BulkSet() logic
Both Set() and BulkSet() contained duplicate logic to convert a dapr
state.SetRequest into a map[string]*dynamodb.AttributeValue. This
change refactors that logic into a new utility function
getItemFromReq(). This will ensure that subsequent changes to add
missing features (e.g. etag) will only have to be expressed once.

Signed-off-by: Mike Brown <github@torvosoft.com>
2022-08-26 12:08:29 -04:00
Bernd Verst 587156bead
Enable conformance tests for rethink db. Make it Beta. Remove Etag feature. (#2015)
Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>

Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
2022-08-26 09:04:19 -07:00
Alessandro (Ale) Segala bcea284c7b
Components' init functions should return interfaces (#1997)
* Components' init functions should return interfaces

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

* 💄

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

* pin latest berndverst contrib fork

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

* Fixed component registration in tests

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

* Updated all cert tests

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

Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
Co-authored-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
2022-08-25 18:27:45 -07:00
addjuarez b9e1408d69
Fix typos in Apache Cassandra logs (#2010)
Signed-off-by: Addison Juarez <adjuarez@microsoft.com>

Signed-off-by: Addison Juarez <adjuarez@microsoft.com>
Co-authored-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
2022-08-25 17:28:07 -07:00
Ian Luo b4ac2406c0
fix: Converting configuration API response from an array to dictionary (#1771)
* fix: Converting configuration API response from an array to dictionary #1770

Signed-off-by: Ian Luo <ian.luo@gmail.com>

* fix compilation error in unit test

Signed-off-by: Ian Luo <ian.luo@gmail.com>

* fix lint issue

Signed-off-by: Ian Luo <ian.luo@gmail.com>

* Also update appconfig configuration store to return dict

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

* temporarily pin custom dapr/dapr

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

* modtidy-all

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

* remove embedded stream request body option

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

* pin custom go-sdk with config dict change

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

Signed-off-by: Ian Luo <ian.luo@gmail.com>
Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
Co-authored-by: Loong Dai <long.dai@intel.com>
Co-authored-by: Yaron Schneider <schneider.yaron@live.com>
Co-authored-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
2022-08-25 13:35:02 -07:00