Commit Graph

692 Commits

Author SHA1 Message Date
Simon Leet 2006bcccb0 Support message-id in Event Hubs components 2021-10-25 18:12:16 +00:00
Dmitry Shmulevich 72754c6036
add missing license (#1226) 2021-10-22 10:39:56 -07:00
Ian Luo e003319566
support json in mysql state #1168 (#1194)
* support json in mysql state #1168

* fmt, fix lint issue

* fix lint issue

* fix unit test failure

* add test against 'isbinary'

* fix lint issue

* enhance assertEquals

* remove unused 'expectedReadResponse' to fix lint issue

* go fmt to fix lint issue

* fix lint issue

Co-authored-by: Long Dai <long.dai@intel.com>
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2021-10-21 15:05:39 -07: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
Long Dai 28d8a843b9
Merge pull request #1213 from CodeMonkeyLeet/update_setup
Update setup-azure-conf-test.sh
2021-10-21 13:19:28 +08:00
Long Dai 3e504f96ad
Merge branch 'master' into update_setup 2021-10-21 13:08:28 +08:00
Dmitry Shmulevich f96a71e4d7
add metadata to query request/response (#1215) 2021-10-20 17:22:42 -07:00
Simon Leet 321bc78986
Merge branch 'master' into update_setup 2021-10-20 12:42:04 -07:00
Simon Leet c668479f43 Update setup-azure-conf-test.sh
- Add removal of AKV_SPAUTH_SP to generated teardown script.
- Fix extraction of `clientId` and `clientSecret` from provided
  credentials without line breaks.
2021-10-20 19:37:09 +00: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 32d60835c6
Merge pull request #1206 from berndverst/master
Integration test setup for AKV
2021-10-20 10:54:45 +08:00
Long Dai 029ca1d79d
Merge branch 'master' into master 2021-10-20 10:44:06 +08:00
Long Dai 45323590e1
Merge pull request #1208 from dmitsh/ds-conf
refine conformance test config
2021-10-20 10:40:59 +08:00
Bernd Verst c3b2219235 Add additional info statement 2021-10-19 18:14:01 -07: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
Laurence a21897bc81
add config api (#1113)
* add config api

* fix: add ut

* fix: linter

* fix

* fix: some pr comments

* fix: go mod tidy

* fix: ut

* Update redis_value.go

* Update redis_value_test.go

* Update redis_test.go

* Update requests.go

* Update responses.go

* Update redis_value.go

* Update redis_value_test.go

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>
2021-10-19 13:55:38 -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
Long Dai 80062f87bd
Merge pull request #1202 from berndverst/master
Support managed identity & container instances in conf test infra
2021-10-19 08:48:12 +08:00
Artur Souza 228783fdda
Merge branch 'master' into master 2021-10-18 17:25:56 -07:00
yellow chicks 5a33acfc59
binding/mysql: optimize output error (#1195)
* feature/pubsub: add delay queue params for pulsar

* feature/pubsub: add delay queue params for pulsar

* feature/pubsub: add delay queue params for pulsar

* binding/mysql: optimize output error

* binding/mysql: optimize output error

* Update mysql.go

* Update mysql.go

Co-authored-by: Simon Leet <31784195+CodeMonkeyLeet@users.noreply.github.com>
2021-10-18 17:25:35 -07:00
Bernd Verst fec0e24a10 Limit Identity's access to Key Vault to read only 2021-10-18 14:28:18 -07:00
Bernd Verst 8ab4538d71
Merge branch 'master' into master 2021-10-18 14:25:28 -07:00
Bernd Verst 316bcc67eb Change IoT Hub Tier to S1 so we can have multiple in one subscription 2021-10-18 14:22:09 -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 4e2598eed3 simplify query output parsing 2021-10-18 12:08:35 -07:00
Bernd Verst 03ab731a12 Fix managed identity commands 2021-10-18 11:51:50 -07:00
Bernd Verst 96133cf832 Adds support for managed identity and container instances to conf test infra 2021-10-15 17:58:30 -07:00
Simon Leet 67d5a8c4a5
Add repository_dispatch to conformance-test (#1200) 2021-10-15 11:59:00 -07:00
Dmitry Shmulevich 3b1249cf87
reconnect rabbitmq on 'unexpected command received' error (#1198) 2021-10-14 21:19:31 -07:00
Simon Leet f7edbb7eab
Update paho.mqtt.golang to v1.3.5 (#1192)
There are a couple of fixes for deadlock issues in paho.mqtt.golang in
versions 1.3.4 and 1.3.5, which are good robustness upgrades for the
Dapr MQTT components in addition to reduce the incidence of deadlock
failures in the conformance tests for MQTT pubsub and bindings.

Resolves #1053
2021-10-12 16:38:02 -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
Taction ca8cf5c1fc
Add dead letter support in RabbitMQ pubsub (#883)
* Add dead letter support

* fix lint

* add maxLen and maxLenBytes support

* Let the DLX and DLQ be free form.

Co-authored-by: Yaron Schneider <yaronsc@microsoft.com>
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
Co-authored-by: Simon Leet <31784195+CodeMonkeyLeet@users.noreply.github.com>
Co-authored-by: Long Dai <long0dai@foxmail.com>
Co-authored-by: Phil Kedy <phil.kedy@gmail.com>
Co-authored-by: Long Dai <long.dai@intel.com>
Co-authored-by: Ian Luo <ian.luo@gmail.com>
Co-authored-by: cvictory <shenglicao2@gmail.com>
2021-10-11 09:49:14 -07:00
Dmitry Shmulevich 4795f75270
properly close channel in rabbitmq (#1190) 2021-10-07 20:25:36 -07:00
Joni Collinge 893da2a3ef
Enable ASB Message Metadata (#1071)
* add asb message metadata

* add asb message metadata

* fix lint

* add server metadata to receiver

* add metadata prefix

* fix tests

* alway set delivery count

* lint

* nolint on nested if

* lint fix

* remove trailing period on license header

Co-authored-by: Long Dai <long0dai@foxmail.com>
Co-authored-by: Simon Leet <31784195+CodeMonkeyLeet@users.noreply.github.com>
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2021-10-07 14:05:05 -07:00
Javier Vela 32bba35bb2
azure storage queue fix double quotation (#1156)
* azure storage queue fix double quotation

* Trigger checks

* Trigger checks

Co-authored-by: Yaron Schneider <yaronsc@microsoft.com>
2021-10-07 13:54:20 -07:00
Taction 3f6c2e867c
add redis username metadata (#1177)
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-10-06 12:54:00 -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
Joni Collinge e457b307b6
Improve mDNS nameresolver code quality (#1179)
* remove benchmark

* explicitly use zero value

* initialize slice to 0 len

* fix loop closure

* use basic int for counter

* reduce diff

Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
Co-authored-by: Dapr Bot <56698301+dapr-bot@users.noreply.github.com>
2021-10-06 12:16:40 -07:00
Simon Leet 8f713bc77c
Fix syntax errors in dapr-bot.yml (#1184)
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2021-10-06 11:55:09 -07:00
halspang 0fe6a98874
Force lowercase name for Azure Service Bus Queue (#1186)
Azure Service Bus Queue names are case-insensitive. When one is
created it will always be forced to lowercase. If a queue with a
non-lowercase is provided, it will be created but can never be
matched causing the next Init to fail.

https://github.com/dapr/components-contrib/issues/1185
2021-10-06 11:40:43 -07:00
Dmitry Shmulevich 494596be0e
fix 'durable' setting in RabbitMQ (#1183) 2021-10-01 17:27:36 -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
Javier Vela 310b4fdeb1
gcp bucket update (#1128)
* gcp bucket update create operation: support upload files in base64

* gcp bucket add get operation

* gcp bucket add delete operation

* gcp bucket add list operation

* gcp bucket fix lint

* gcp bucked add backward compatibility 'key' replace 'name'

* gcp bucket fix lint

* gcp bucket create operation return object url to download

* gcp fix lint

* gcp fix lint

* gcp bucket fix lint

* gcp bucket fix lint

* gcp bucket fix error msg

* rerun checks

Co-authored-by: Yaron Schneider <yaronsc@microsoft.com>
Co-authored-by: Long Dai <long0dai@foxmail.com>
Co-authored-by: Ian Luo <ian.luo@gmail.com>
2021-09-29 22:20:25 -07:00
tanvigour 0949537f0d
ok-to-test changes for components-contrib (#1091)
* eventhubs metadata propagation

* ok-to-test changes

* Revert "eventhubs metadata propagation"

This reverts commit 290369591b.

* ok-to-test changes based on review

Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
Co-authored-by: Dapr Bot <56698301+dapr-bot@users.noreply.github.com>
2021-09-29 19:06:24 -07:00
Bernd Verst 317db02783
version stored procedure due to previous changes made (#1176) 2021-09-29 18:16:16 -07:00
Simon Leet 9a075cb43a
Fix existing integration tests (#1173)
* Fix servicebusqueues_integration_test.go compile errors

* Fix postgresql_integration_test.go deleteItemThatDoesNotExist expectations

* Fix mysql_integration_test.go deleteItemThatDoesNotExist expectations

* Fix mysql_integration_test.go for bindings

* Increase TTL in ServiceBusQueues tests for stability
2021-09-28 19:17:44 -07:00
TheoneFx e41acc494c
Add state alicloud.tablestore (#1116)
* state alicloud.tablestore

* some bug fix

* gofumpt

* add unit test

* gofumpt

* golangci-lint

* code refactor

* goimports

* goimports

Co-authored-by: Simon Leet <31784195+CodeMonkeyLeet@users.noreply.github.com>
Co-authored-by: Long Dai <long0dai@foxmail.com>
Co-authored-by: Long Dai <long.dai@intel.com>
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2021-09-27 17:27:20 -07:00
Bernd Verst ac85ba2a8e
Add dapr user agent for Azure Components (#1152)
* Add dapr useragent for Service Bus and EventHubs

* Add useragent for tablestorage

* send dapr useragent

* more user agents

* formatting
2021-09-27 17:04:27 -07:00