Commit Graph

3297 Commits

Author SHA1 Message Date
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
Simon Leet c911f89fd8
Support using setup-azure-conf-test.sh with existing Service Principal (#1158)
Co-authored-by: Long Dai <long.dai@intel.com>
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2021-09-24 13:55:49 -07:00
Simon Leet 135b5d66ab
Add Event Hubs conformance tests to conformance.yml workflow (#1164) 2021-09-24 13:38:42 -07:00
Long Dai dafa457f76
Merge pull request #1159 from berndverst/tablestorage
Conformance Tests for Azure Table Storage
2021-09-23 09:05:24 +08:00
Bernd Verst 905cbc028d restructure code and add comments per code review 2021-09-22 15:51:15 -07:00
Bernd Verst 0bd6eb2e9a cover all concurrency + etag cases 2021-09-22 12:18:13 -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 0e3dc3e79a fix linter warnings 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
yellow chicks c425f1319a
feature/pubsub: add delay queue params for pulsar (#1112)
* feature/pubsub: add delay queue params for pulsar

* feature/pubsub: add delay queue params for pulsar

* feature/pubsub: add delay queue params for pulsar

* feature/pubsub: add delay queue params for pulsar

* feature/pubsub: add delay queue params for pulsar

Co-authored-by: Simon Leet <31784195+CodeMonkeyLeet@users.noreply.github.com>
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2021-09-17 11:41:47 -07:00
Simon Leet c712e81adf
Add pubsub.in-memory to conformance test workflow (#1126)
Co-authored-by: Long Dai <long0dai@foxmail.com>
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2021-09-17 11:30:26 -07:00
Taction 3a109e2c74
fix http opa middleware status code parse (#1136)
* fix http opa middleware status code parse

* fix for review

* use json unmarshal to handle edge cases.

* fix review

Co-authored-by: Simon Leet <31784195+CodeMonkeyLeet@users.noreply.github.com>
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2021-09-17 10:58:01 -07:00
Long Dai 189d2d6717
bindings: support rabbitmq send any content types (#1147)
Signed-off-by: Long <long0dai@foxmail.com>
2021-09-17 10:21:41 -07:00
tanvigour e1b52376e9
Merge pull request #1149 from CodeMonkeyLeet/update_devcontainer_1.4.0
Update devcontainer to use dapr-dev:0.1.4 base image
2021-09-16 19:17:18 -04:00
Simon Leet 8f0cc88e95 Update devcontainer to dapr-dev:0.1.4 2021-09-15 20:17:09 +00:00
Jigar 4f27152ec9
Merge branch 'master' into content-type 2021-09-14 18:29:46 +05:30
jigargandhi ecfbbd58ad Added content type to SetRequest struct 2021-09-14 18:26:36 +05:30
Phil Kedy 45f577e137
Bumping ASB version and fixing test for azure auth (MSI_ENDPOINT) (#1132)
Co-authored-by: Bernd Verst <berndverst@users.noreply.github.com>

Co-authored-by: Bernd Verst <berndverst@users.noreply.github.com>
2021-09-13 11:06:04 -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
Alessandro (Ale) Segala 99c2ace742
Restored backwards compatibility with 1.3 (#1131)
* Restored backwards compatibility with 1.3
#972 accidentally introduced a backwards-incompatible change with a feature added in 1.3. Before, it was possible to specify an Azure environment for the AKV secret store by passing a FQDN as "vaultName" property that included the suffix for the Azure environment.
#972 introduced a better way to handle this (using the "azureEnvironment" metadata property), but accidentally broke the behavior added in 1.3
This patch restores full compatibility with 1.3. Although that behavior should be considered deprecated and thus discouraged (and it will be removed from docs), it will still be supported.

* Lint
2021-09-10 10:42:29 -07:00
Javier Vela 418fc726f5
Update S3 binding (#1081)
* S3 update create operation: support upload files in base64, return location and versionId on create operation

* S3 add get operation

* S3 add delete operation

* S3 add list operation

* S3 fix lint errors

* S3 add close method

* S3 add option to encoode data respose in base64

* S3 fix test get option

* S3 fix metadata test delete option

Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
Co-authored-by: Yaron Schneider <yaronsc@microsoft.com>
2021-09-07 11:03:22 -07:00
Simon Leet 4f3581377e
Support DefaultIdentificationHydrator in cosmosdb state component (#1121)
Follow-up to #1104 to support AD Auth codepath as well.

`NewConfig()` and `NewConfigWithServicePrincipal()` both set the
`Config.IdentificationHydrator` to the `DefaultIdentificationHydrator`
in the underlying a8m/documentdb library. That implementation ends up
calling `reflect.Value.Elem.FieldByName()`, which requires that the
value passed to it is an interface or pointer, otherwise the Elem()
call fails to dereference which causes a panic.

cosmosdb.go passes the input to `UpsertDocument` by value today,
which is eventually passed to the `DefaultIdentificationHydrator`,
so changing the value passed to a pointer resolves the failure.

Co-authored-by: Dapr Bot <56698301+dapr-bot@users.noreply.github.com>
2021-09-02 19:00:53 -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 874d62f391
Patch regression in cosmosdb state component Init (#1119)
PR #1104 introduced a regression in cosmosdb state component `Init()`
by creating a `NewConfig()` which sets a new DefaultIdentificationHydrator,
which causes a panic later when invoked.

Patch this by restoring the configuration setting to use a struct with
`nil` `IdentificationHydrator`.
2021-09-02 10:50:10 -07:00
Simon Leet 710fd9767f
Add Close() method to influx bindings (#1114)
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2021-09-02 10:09:26 -07:00
Simon Leet 6400db8717
Add Close() to GCPStorage binding (#1111)
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2021-09-02 09:51:50 -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
Simon Leet 52bac7be17
Fix parseErr return in blobstorage Init() (#1108)
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
Co-authored-by: Dapr Bot <56698301+dapr-bot@users.noreply.github.com>
2021-09-01 13:05:32 -07:00
Alessandro (Ale) Segala a992cd19f0
Support Azure AD auth for Cosmos DB (#1104)
* Support Azure AD auth for Cosmos DB

* Fixed linting errors

* Tidying go.sum

* Removed the need for nolint:shadow

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-09-01 12:44:05 -07:00
Simon Leet 5e05c8d4ef
Add Close() to GCPPubSub binding (#1110)
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
Co-authored-by: Dapr Bot <56698301+dapr-bot@users.noreply.github.com>
2021-09-01 12:24:20 -07:00
dependabot[bot] b4c794c840
Bump go.mongodb.org/mongo-driver from 1.1.2 to 1.5.1 (#1054)
* Bump go.mongodb.org/mongo-driver from 1.1.2 to 1.5.1

Bumps [go.mongodb.org/mongo-driver](https://github.com/mongodb/mongo-go-driver) from 1.1.2 to 1.5.1.
- [Release notes](https://github.com/mongodb/mongo-go-driver/releases)
- [Commits](https://github.com/mongodb/mongo-go-driver/compare/v1.1.2...v1.5.1)

---
updated-dependencies:
- dependency-name: go.mongodb.org/mongo-driver
  dependency-type: direct:production
...

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

* Update go.sum with mongo-driver update

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
Co-authored-by: Simon Leet <simon.leet@microsoft.com>
Co-authored-by: Simon Leet <31784195+CodeMonkeyLeet@users.noreply.github.com>
2021-09-01 12:05:07 -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
Luke Kennedy 8fd1ee57a0
GCP Pub/Sub Message Ordering Configuration (#1099)
* Add configuration for enabling message ordering

* Simplify passing the metadata

* Update field order to satisfy alignment linter

Co-authored-by: Luke Kennedy <luke.kennedy@optiisolutions.com>
2021-08-30 08:54:46 -07:00
Simon Leet 6591b0de68
Add Close() method to EventHubs bindings (#1093)
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
Co-authored-by: Dapr Bot <56698301+dapr-bot@users.noreply.github.com>
2021-08-26 15:56:15 -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
Simon Leet 90f4b22c8b
Output junit .xml test logs in conformance.yml (#1097) 2021-08-26 15:15:37 -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
Long Dai 71f4748460
upgrade sentinel-golang to release version (#1086)
Signed-off-by: Long <long0dai@foxmail.com>

Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2021-08-19 17:25:24 -07:00
Phil Kedy 35ff084d3d
Adding multi-valued secret support to the local file store component (#1089)
* Adding multi-valued secret support to the local file store component

* Fix linter issue
2021-08-19 15:46:42 -07:00
Simon Leet ce0674fb48
Patch cosmosdb first-write without etag state test (#1069)
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
Co-authored-by: Dapr Bot <56698301+dapr-bot@users.noreply.github.com>
2021-08-17 15:47:28 -07:00
jerrylisl d62eee779d
add Close() function to Postgres binding (#1087)
Co-authored-by: Dapr Bot <56698301+dapr-bot@users.noreply.github.com>
2021-08-17 15:29:23 -07:00