Commit Graph

1111 Commits

Author SHA1 Message Date
seeflood 9bb86a08a6
Expire -> ExpiryInSeconds (#1721)
Signed-off-by: seeflood <349895584@qq.com>
2022-05-12 04:13:21 -07:00
lotuc 5e4bd89afd
Add topic metadata for mqtt input binding and support user defined topic for mqtt output binding (#1674)
* feat(bindings/mqtt): add data incoming topic to metadata

Signed-off-by: lotuc <lotu.c@outlook.com>

* feat(bindings/mqtt): support user defined topic on create action

Signed-off-by: lotuc <lotu.c@outlook.com>

* chore(bindings/mqtt): add integration test and topic response check test

Signed-off-by: lotuc <lotu.c@outlook.com>

* fix(bindings/mqtt): ignore misspell linting error for word mosquitto

Signed-off-by: lotuc <lotu.c@outlook.com>

Co-authored-by: Yaron Schneider <schneider.yaron@live.com>
2022-05-11 12:11:51 -07:00
Sky Ao 8b5554dc71
Refactory kafka binding to reuse the kafka common code extracting from kafka pubsub component (#1696)
* refactory kafka pubsub code to extract common kafka code for reuse

Signed-off-by: Sky Ao <aoxiaojian@gmail.com>

* fix lint;add unit test for subscribeAdapter

Signed-off-by: Sky Ao <aoxiaojian@gmail.com>

* move topics filed from internal kafak struct to pubsub kafka struct, since in input binding the topics will confiured in metadata

Signed-off-by: Sky Ao <aoxiaojian@gmail.com>

* reuse internal  kafka code for bindings

Signed-off-by: Sky Ao <aoxiaojian@gmail.com>

* add redis standalone_test back which is delete by mistaken

Signed-off-by: Sky Ao <aoxiaojian@gmail.com>

* small code improvement to trigger test

Signed-off-by: Sky Ao <aoxiaojian@gmail.com>

* add license headers

Signed-off-by: Sky Ao <aoxiaojian@gmail.com>

* try to set disbaleTls to true to verify the kafka connection fail

Signed-off-by: Sky Ao <aoxiaojian@gmail.com>

* don't enable consum retry in kafka binding component;if authenticaion is disabled, need not set TLSDisable at the same time;

Signed-off-by: Sky Ao <aoxiaojian@gmail.com>

* fix lint

Signed-off-by: Sky Ao <aoxiaojian@gmail.com>

Co-authored-by: Loong Dai <long.dai@intel.com>
2022-05-10 20:07:23 -07:00
Janusz Dziurzynski 62c5a2b3d1
Support custom queueEndpoint in Azure Storage Queues (#1692)
* Support custom queueEndpoint in Azure Storage Queues

Signed-off-by: Janusz Dziurzynski <janusz@corechain.tech>

* run gofmt

Signed-off-by: Janusz Dziurzynski <janusz@corechain.tech>

* Add "Url" to JSON field name for clarity

Suggested by @msfussell in dapr/docs#2424

Signed-off-by: Janusz Dziurzynski <janusz@corechain.tech>
2022-05-10 12:27:10 -07:00
Bernd Verst 909d3960db
Add yet another missing secret to eventhub binding cert test (#1713)
Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
2022-05-09 19:07:42 -07:00
Chock Chen b818c2f83e
Implment a secret store based on Huawei CSMS (#1710)
Signed-off-by: Chen Cong <chock-cong.chen@outlook.com>

Co-authored-by: Chen Cong <chock-cong.chen@outlook.com>
2022-05-09 15:52:46 -07:00
Laurence e0ea27f2c1
Fix 4529: Ignore Subscribe/Get wrong redis configuration type keys. (#1693)
* fix: 4529

Signed-off-by: LaurenceLiZhixin <382673304@qq.com>

* Fix: add test does not throw error for wrong type during get all test case of redis configuration

Signed-off-by: LaurenceLiZhixin <382673304@qq.com>

Co-authored-by: Yaron Schneider <schneider.yaron@live.com>
Co-authored-by: Ian Luo <ian.luo@gmail.com>
2022-05-07 14:15:07 -07:00
saber-wang a51de3bb09
Add metadata property to configure Batching in Pulsar (#1707)
* Add metadata property to configure BatchingMaxSize&batchingMaxMessages in Pulsar
Signed-off-by: saberwang <saberwang@hotmail.com>

* sort field
Signed-off-by: saberwang <saberwang@hotmail.com>

* [pubsub]fix unit test bug
Signed-off-by: saberwang <saberwang@hotmail.com>

* remove unrelated changes
Signed-off-by: saberwang <saberwang@hotmail.com>

* Delete hard coded Metadata
Signed-off-by: saberwang <saberwang@hotmail.com>

* remove  .history

Signed-off-by: saberwang <saberwang@hotmail.com>

* restore .gitignore

Signed-off-by: saberwang <saberwang@hotmail.com>

* Hard coding default values and adding 'BatchingMaxPublishDelay' metadata

Signed-off-by: saberwang <saberwang@hotmail.com>

* fix code format

Signed-off-by: saberwang <saberwang@hotmail.com>

* formatting code

Signed-off-by: saberwang <saberwang@hotmail.com>

Co-authored-by: Looong Dai <long.dai@intel.com>
Co-authored-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
2022-05-06 17:59:27 -07:00
Alessandro (Ale) Segala e6c67356cd
Updated to Go 1.18 (#1697)
* Updated to Go 1.18

Signed-off-by: Alessandro (Ale) Segala <43508+ItalyPaleAle@users.noreply.github.com>

* Added go.work file
With Go 1.18, this allows gopls (the Go language server used for example in VS Code) to work inside test apps too.
See: https://go.dev/doc/tutorial/workspaces

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

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

* Removed go.work

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

* 💄

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

Co-authored-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
2022-05-06 13:44:45 -07:00
Wang Bing db99b43068
Use revive instead of golint (#1685)
Signed-off-by: pigletfly <wangbing.adam@gmail.com>

Co-authored-by: Yaron Schneider <schneider.yaron@live.com>
2022-05-06 12:55:17 -07:00
tanvigour 47db6cc2b1
Initial Certification test for eventhubs binding [incomplete] (#1670)
* certification test for eventhubs binding

Signed-off-by: tanvigour <tanvi.gour@gmail.com>

* modified go.mod and go.sum

Signed-off-by: tanvigour <tanvi.gour@gmail.com>

* Add connection string testing

Signed-off-by: tanvigour <tanvi.gour@gmail.com>

* iothub testing

Signed-off-by: tanvigour <tanvi.gour@gmail.com>

* address feedback and run test

Signed-off-by: tanvigour <tanvi.gour@gmail.com>

* Install Azure CLI IOT hub extension

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

* make modtidy-all

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

* covering all eventhubs test cases

Signed-off-by: tanvigour <tanvi.gour@gmail.com>

* dependency changes after go modtidy-all

Signed-off-by: tanvigour <tanvi.gour@gmail.com>

Co-authored-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
Co-authored-by: Yaron Schneider <schneider.yaron@live.com>
Co-authored-by: Looong Dai <long.dai@intel.com>
2022-05-05 19:33:23 -07:00
Taction bfd87eb7a5
Simplify vault token read (#1560)
* Simplify vault token get

Signed-off-by: zhangchao <zchao9100@gmail.com>

* fix lint

Signed-off-by: zhangchao <zchao9100@gmail.com>

* update tests

Signed-off-by: zhangchao <zchao9100@gmail.com>

Co-authored-by: Looong Dai <long.dai@intel.com>
Co-authored-by: Yaron Schneider <schneider.yaron@live.com>
2022-04-28 13:56:50 -07:00
Ben Kotvis 1ef6cc5cdc
Fixing includedHeaders problem with spaces (#1610)
Signed-off-by: Ben Kotvis <kotvisbj@gmail.com>

Co-authored-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
Co-authored-by: Looong Dai <long.dai@intel.com>
2022-04-28 13:53:15 -07:00
Wang Bing e6b8577997
Update readme of bindings (#1690)
Signed-off-by: pigletfly <wangbing.adam@gmail.com>

Co-authored-by: Looong Dai <long.dai@intel.com>
2022-04-28 13:51:58 -07:00
Bernd Verst 24017b2fe1
Pin certification tests to latest daprd with binding context change (#1691) 2022-04-26 12:28:05 -07:00
Artur Souza 068938c676
Merge pull request #1688 from pigletfly/add-ctx-bindings
Add context in bindings
2022-04-25 20:36:43 -07:00
pigletfly 84759553bc Add context in bindings
Signed-off-by: pigletfly <wangbing.adam@gmail.com>
2022-04-26 10:20:41 +08:00
Artur Souza 77de5439da
Merge pull request #1681 from pigletfly/add-ctx-binding
Add context in bindings interface
2022-04-25 14:36:39 -07:00
Bernd Verst 3cb64614a9
Merge branch 'master' into add-ctx-binding 2022-04-24 23:48:07 -07:00
Surender Singh Malik a23fffb2c1
eh-certification test : Install azure-iot-cli-extension if not found for IOT tests (#1684)
* install azure-iot-cli-extension if not found

Signed-off-by: Surender Singh Malik <surenderssm@users.noreply.github.com>

* reduce the number of messages from 100 to 10, to make the test faster

Signed-off-by: Surender Singh Malik <surenderssm@users.noreply.github.com>
2022-04-24 23:42:50 -07:00
pigletfly 5673b28b13 Add context in bindings interface
Signed-off-by: pigletfly <wangbing.adam@gmail.com>
2022-04-25 14:16:15 +08:00
Surender Singh Malik e109fb4f93
Adding AzureIotHubName for eventhub cert workflow (#1683) 2022-04-24 21:58:38 -07:00
seeflood dc849d40a0
feat: lock component (#1574)
* feat: lock store.
Signed-off-by: seeflood <349895584@qq.com>

* make modtidy-all

Signed-off-by: seeflood <349895584@qq.com>

* lock/redis/standalone.go

Signed-off-by: seeflood <349895584@qq.com>

Co-authored-by: Looong Dai <long.dai@intel.com>
Co-authored-by: Yaron Schneider <schneider.yaron@live.com>
2022-04-24 18:11:13 -07:00
Looong Dai 1dd7f19c45
Merge pull request #1680 from berndverst/master
Fix azure eventhubs pubsub certification test workflow
2022-04-25 08:54:13 +08:00
Bernd Verst 9ea0c3f3bd Fix azure eventhubs pubsub certification test workflow
Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
2022-04-23 23:48:05 -07:00
Surender Singh Malik 37e4e8a44a
Certify Azure Event Hubs as Stable in pubsub (#1623)
* First iteration for the eventhubs certifications tests

Signed-off-by: Surender Singh Malik <surenderssm@users.noreply.github.com>

* Fixing typos,  adding more description and publishing with multiple partitions

Signed-off-by: Surender Singh Malik <surenderssm@users.noreply.github.com>

* Moved the secret reference in components definition to secretstore.local.env

Signed-off-by: Surender Singh Malik <surenderssm@users.noreply.github.com>

* moving to latest dapr/dapr github.com/dapr/dapr@v1.7.0-rc.2

Signed-off-by: Surender Singh Malik <surenderssm@users.noreply.github.com>

* updating go.mod

Signed-off-by: Surender Singh Malik <surenderssm@users.noreply.github.com>

* changes in infra and workflow for cert eventhubs

Signed-off-by: Surender Singh Malik <surenderssm@users.noreply.github.com>

* typo fix in local secret store type

Signed-off-by: Surender Singh Malik <surenderssm@users.noreply.github.com>

* correcting the typo in policyName

Signed-off-by: Surender Singh Malik <surenderssm@users.noreply.github.com>

* bug fixes

Signed-off-by: Surender Singh Malik <surenderssm@users.noreply.github.com>

* publish to a topic with no subscriber fix

Signed-off-by: Surender Singh Malik <surenderssm@users.noreply.github.com>

* delete azure eventhub that got created as part of test run

Signed-off-by: Surender Singh Malik <surenderssm@users.noreply.github.com>

* updated readme

Signed-off-by: Surender Singh Malik <surenderssm@users.noreply.github.com>

* removed dummy sidecar and leveraged connectionstring at namespace level for multi topic operations

Signed-off-by: Surender Singh Malik <surenderssm@users.noreply.github.com>

* go mod changes and nit fixes

Signed-off-by: Surender Singh Malik <surenderssm@users.noreply.github.com>

* fixing iot device issue

Signed-off-by: Surender Singh Malik <surenderssm@users.noreply.github.com>

* NIT : CR fixes

* Enabled iothub test and a bit of code refactoring

Signed-off-by: Surender Singh Malik <surenderssm@users.noreply.github.com>

* delete the checkpoint container for the temp eventhub

Signed-off-by: Surender Singh Malik <surenderssm@users.noreply.github.com>

* Revert "NIT : CR fixes"

This reverts commit 260f5ed686.

Signed-off-by: Surender Singh Malik <surenderssm@users.noreply.github.com>

* First iteration for the eventhubs certifications tests

Signed-off-by: Surender Singh Malik <surenderssm@users.noreply.github.com>

* Fixing typos,  adding more description and publishing with multiple partitions

Signed-off-by: Surender Singh Malik <surenderssm@users.noreply.github.com>

* Moved the secret reference in components definition to secretstore.local.env

Signed-off-by: Surender Singh Malik <surenderssm@users.noreply.github.com>

* moving to latest dapr/dapr github.com/dapr/dapr@v1.7.0-rc.2

Signed-off-by: Surender Singh Malik <surenderssm@users.noreply.github.com>

* updating go.mod

Signed-off-by: Surender Singh Malik <surenderssm@users.noreply.github.com>

* changes in infra and workflow for cert eventhubs

Signed-off-by: Surender Singh Malik <surenderssm@users.noreply.github.com>

* typo fix in local secret store type

Signed-off-by: Surender Singh Malik <surenderssm@users.noreply.github.com>

* correcting the typo in policyName

Signed-off-by: Surender Singh Malik <surenderssm@users.noreply.github.com>

* bug fixes

Signed-off-by: Surender Singh Malik <surenderssm@users.noreply.github.com>

* publish to a topic with no subscriber fix

Signed-off-by: Surender Singh Malik <surenderssm@users.noreply.github.com>

* delete azure eventhub that got created as part of test run

Signed-off-by: Surender Singh Malik <surenderssm@users.noreply.github.com>

* updated readme

Signed-off-by: Surender Singh Malik <surenderssm@users.noreply.github.com>

* removed dummy sidecar and leveraged connectionstring at namespace level for multi topic operations

Signed-off-by: Surender Singh Malik <surenderssm@users.noreply.github.com>

* go mod changes and nit fixes

Signed-off-by: Surender Singh Malik <surenderssm@users.noreply.github.com>

* fixing iot device issue

Signed-off-by: Surender Singh Malik <surenderssm@users.noreply.github.com>

* NIT : CR fixes

* Enabled iothub test and a bit of code refactoring

Signed-off-by: Surender Singh Malik <surenderssm@users.noreply.github.com>

* delete the checkpoint container for the temp eventhub

Signed-off-by: Surender Singh Malik <surenderssm@users.noreply.github.com>

* Revert "NIT : CR fixes"

This reverts commit 260f5ed686.

Signed-off-by: Surender Singh Malik <surenderssm@users.noreply.github.com>

* Fix eventhub pubsub certification test infra provisioning

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

* Fixing the scoping issue for role assignment on eh

Signed-off-by: Surender Singh Malik <surenderssm@users.noreply.github.com>

Co-authored-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
2022-04-23 23:27:41 -07:00
Bernd Verst de97b86762
Merge pull request #1676 from shubham1172/shubham1172/pin-fossa-version
Update fossa workflow's action version
2022-04-19 16:36:24 -07:00
Shubham Sharma e9e65a5c2f Pin fossa-action version
Signed-off-by: Shubham Sharma <shubhash@microsoft.com>
2022-04-19 15:28:37 +05:30
Bernd Verst 4083e36a0f
Merge pull request #1625 from berndverst/azureinfra
Fix Azure cert test infra provisioning script
2022-04-18 12:58:52 -07:00
Looong Dai bfb1b01fd4
Merge branch 'master' into azureinfra 2022-04-18 09:03:08 +08:00
Bernd Verst 8ab1a862c1
Merge pull request #1661 from saber-wang/master
Fixing pubsub-pulsar not use format topic problem
2022-04-12 15:53:18 -07:00
Bernd Verst 1cf663c7e6
Merge branch 'master' into master 2022-04-12 14:45:55 -07:00
Bernd Verst 61ff3047d6
Merge pull request #1652 from harrykimpel/binding_commercetools
Adding output binding for commercetools
2022-04-12 13:00:16 -07:00
Bernd Verst 755d34d5cd
Merge branch 'master' into binding_commercetools 2022-04-12 11:49:41 -07:00
Bernd Verst 7c0b7a0710
Merge pull request #1651 from amimimor/concurrent-downstream
Concurrent downstream
2022-04-12 11:49:16 -07:00
Yaron Schneider 850e58dd50
Merge branch 'master' into concurrent-downstream 2022-04-12 09:51:20 -07:00
Bernd Verst 805a7b0489
Merge branch 'master' into binding_commercetools 2022-04-12 09:46:32 -07:00
Bernd Verst 8bed8c895e
Merge pull request #1667 from pravinpushkar/dev_container_update
Update dev container file to support latest changes
2022-04-12 09:42:53 -07:00
Pravin Pushkar 1a19187ffe Update dev container to support latest changes
Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>
2022-04-12 15:55:51 +05:30
Looong Dai b70ae698bf
Merge branch 'master' into binding_commercetools 2022-04-12 08:41:09 +08:00
Amit Mor 136bccd56e
conformance test runs in single mode
Signed-off-by: Amit Mor <amit.mor@hotmail.com>
2022-04-11 11:41:52 +03:00
Amit Mor c31866099c
wg to flush bulks
Signed-off-by: Amit Mor <amit.mor@hotmail.com>
2022-04-11 11:12:17 +03:00
Amit Mor 212d0c1a29 go mod tidy with amd64 arch
Signed-off-by: Amit Mor <amit.mor@hotmail.com>
2022-04-11 11:07:05 +03:00
Amit Mor 7a83b28e7e concurrent call handler
Signed-off-by: Amit Mor <amit.mor@hotmail.com>
2022-04-11 11:07:05 +03:00
Amit Mor 13c97c9542 wip parallel calls
Signed-off-by: Amit Mor <amit.mor@hotmail.com>
2022-04-11 11:07:05 +03:00
saberwang 753be58979 Fixing pubsub-pulsar not use format topic problem
Signed-off-by: saberwang <saberwang@hotmail.com>
2022-04-11 14:16:21 +08:00
Bernd Verst 933b6d6f34
Merge pull request #1636 from ItalyPaleAle/cosmosdb-sproc-embed
Use go:embed for Cosmos DB stored procedures
2022-04-10 23:08:44 -07:00
Bernd Verst 5bacaf134b
Merge branch 'master' into azureinfra 2022-04-08 14:35:18 -07:00
Bernd Verst 1f3605e658
Merge branch 'master' into cosmosdb-sproc-embed 2022-04-08 14:30:35 -07:00
Bernd Verst 339e444bd8 make modtidy-all
Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
2022-04-08 14:19:50 -07:00