Commit Graph

692 Commits

Author SHA1 Message Date
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
Nghia Tran cf1f27e59f
Change workflow name (#676) 2021-02-11 13:22:59 -08:00
Artur Souza b10d346bde Merge remote-tracking branch 'upstream/master' into release-1.0 2021-02-10 18:28:25 -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
Edwin van Wijk 6baa30ee75
Add SMTP output binding (#646)
* Add smtp output binding

* Go mod tidy

* Remove obsolete func

* Refactor metadata overrides from request

* Add comment

* Fix mergeRequest func

* Add #nosec directive for SkipTLSVerify

* Add test for MergeWithRequestMetadata

* Format test code

* Change level of succesfull email logging

Co-authored-by: Yaron Schneider <yaronsc@microsoft.com>
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2021-02-09 19:13:14 -08:00
Yaron Schneider 3ef025c604
change headers (#679) 2021-02-09 18:57:55 -08:00
Artur Souza 52b119ae8a
Display ngrok log for conf tests. (#677) 2021-02-09 17:31:50 -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
Carlos Mendible d9eec0fa8a
Checking that returned secrets are enabled #656 (#675)
Co-authored-by: Yaron Schneider <yaronsc@microsoft.com>
2021-02-09 11:28:03 -08:00
Artur Souza 859f0ae881
Handles binary data in cloud event. (#674) 2021-02-09 09:45:38 -08:00
Nghia Tran 3521e78ea3
Run conformance tests for PRs, whenever that is possible (#670)
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2021-02-08 14:42:41 -08:00
Ryan Nowak b7ff3cf788
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.
2021-02-08 12:39:43 -08:00
Yaron Schneider 58e92479ac
Add kafka max message bytes and pubsub partition key (#669)
* add kafka max message bytes and pubsub partition key

* linter
2021-02-08 11:14:52 -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 7dd8ffcfd7
Run ngrok only for azure eventgrid. (#660)
Fix ngrok cmd.
2021-02-05 16:57:14 -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
Nghia Tran e5ed9e0095
Fix Azure KeyVault secretstore BulkGet URI parsing of the GetSecretsComplete response (#657)
* Fix Azure Keyvault secretstore BulkGet

To make it works with URI of form "{vaultURI}/secrets/{itemID}" in the
GetSecretsComplete response.

* Fix lint comment

* Address PR feedback

Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2021-02-04 15:08:51 -08:00
Phil Kedy b74b486f68
Added documentation on versioning Dapr components (#650)
* Added documentation on versioning Dapr components

* Tweaks per review

* Tweak to sentence re: changes to a component's behavior
2021-02-04 14:59:35 -08:00
Yaron Schneider 168be1e410
Update Readme.md (#658) 2021-02-03 12:28:38 -08:00
Trond Hindenes 83975462bf
State:Dynamodb - Dont require access key/secret (#652)
* Dont require access key/secret

* Validate table name

* Fixed test issues

* Fix failing tests....?

* gofmt-ed files

* Remove unneeded fmt statement
2021-02-03 11:19:32 -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 536e5e9477
Fix conformance test workflow (#642)
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2021-01-29 17:02:32 -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
Yaron Schneider bc0988af42
fix missing subject (#640) 2021-01-28 08:37:36 -08:00
Yaron Schneider 4ca679172f
Fix service bus new topic creation (#636)
* fix service bus new topic creation

* place topic in list
2021-01-26 13:49:51 -08:00
Donovan Brown 5368d25951
Adding MySQL State Component (#612)
* Adding MySQL State Component

* Fixing File is not `gofumpt`-ed (gofumpt)

I believe the issue was No empty lines before a simple error check

* Fixing final lint errors that only showed up in CI

* gofumpt-ed in test files.

* Changing error for affected rows.
Want to distinguish database errors from application errors.

* The database (schema) can now be created for you.

Co-authored-by: Yaron Schneider <yaronsc@microsoft.com>
2021-01-26 12:29:57 -08:00
Jigar 27344d4e4c
Added binary data type detection (#631)
* Added binary data type detection
Added base64 encoding for binary data types

* Update utils.go

Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2021-01-25 23:08:47 -08:00
Ian Luo 97912e75c6
mysql outbinding support (#615)
* mysql outbinding support

* fix lint issues

* use time duration string instead of number of seconds

* correct typo

* use 'addr' instead of 'server' and 'port' in order to align with url in dsn format

* simplify configuration, and allow PEM configurable

* jsonfy the query result

* add more unit test for mysql binding

* add unit test to verify timestamp

* add type verify in integration test

* add test to verify BOOLEAN

* update comment

Co-authored-by: Yaron Schneider <yaronsc@microsoft.com>
2021-01-25 18:45:26 -08:00
Artur Souza 11454d7ccf
Fix get bulk secret for hashicorp vault. (#632) 2021-01-25 11:41:03 -08:00
kzmake 66b9734bcc
Add priority parameters to RabbitMQ queue and message (#606)
* Add message priority in RabbitMQ

* Fix integration test for ExclusiveQueue

* Revert priority parameters from pubsub

Co-authored-by: Yaron Schneider <yaronsc@microsoft.com>
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2021-01-22 14:03:53 -08:00
Donovan Brown 80b0d7841e
Add golangci-lint as prerequisite (#628) 2021-01-22 09:47:20 -08:00
Mukundan Sundararajan 73a87dd1a6
Fix conformance workflow file (#627) 2021-01-21 20:10:29 -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 3fb921c467
Run conformance tests every 30 min & fail workflow if no tests found (#625)
* Run conformance test workflow on a schedule

* Fail the workflow if no tests were found for a component
2021-01-21 15:28:12 -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
Nghia Tran a887d70c31
Workflow to run conformance tests (#620)
* Workflow to run conformance tests

* Update conformance.yml

Fix typo
2021-01-20 12:45:58 -08:00