Commit Graph

29 Commits

Author SHA1 Message Date
Josh van Leeuwen 9be6d157a4
tests/certification: Updates dapr/dapr to `master` HEAD (#3084)
Signed-off-by: joshvanl <me@joshvanl.dev>
Co-authored-by: Bernd Verst <github@bernd.dev>
2023-08-21 17:06:55 -07:00
Alessandro (Ale) Segala a359dcaad6
Certification test for middleware.http.ratelimit (#2636)
Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
2023-03-07 20:51:35 +00:00
ItalyPaleAle 8365df0f07 Fix flaky RabbitMQ certification tests
Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
2023-01-26 22:09:35 +00:00
Yaron Schneider 1dc20e6c69
Add schema support to apache pulsar (#2475)
* add schema support to apache pulsar

Signed-off-by: yaron2 <schneider.yaron@live.com>

* linter and avro support

Signed-off-by: yaron2 <schneider.yaron@live.com>

* fix nit

Signed-off-by: yaron2 <schneider.yaron@live.com>

* fix go.mod

Signed-off-by: yaron2 <schneider.yaron@live.com>

* update cert test go.mod

Signed-off-by: yaron2 <schneider.yaron@live.com>

* update cert test metadata to latest

Signed-off-by: yaron2 <schneider.yaron@live.com>

* schema identifier refactor to handle edge case

Signed-off-by: yaron2 <schneider.yaron@live.com>

* fix shadow

Signed-off-by: yaron2 <schneider.yaron@live.com>

Signed-off-by: yaron2 <schneider.yaron@live.com>
2023-01-26 13:10:58 -08:00
ItalyPaleAle 5a741da8b0 Some changes and fixes
Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
2023-01-25 19:33:20 +00:00
addjuarez 3bd4c1ddcb
Merge branch 'master' into pulsarTests 2023-01-12 11:06:54 -06:00
Deepanshu Agarwal 70171fc0e1 Set runtime Running to true for cert tests
Signed-off-by: Deepanshu Agarwal <deepanshu.agarwal1984@gmail.com>
2023-01-12 17:46:20 +05:30
addjuarez e2598e56cc Add pulsar cert tests
Signed-off-by: addjuarez <6789375+addjuarez@users.noreply.github.com>
2023-01-09 15:06:27 +00:00
Joni Collinge 382f84f30c
Add support for Azure Service Bus sessions for topics (#2346)
* WIP: ASB sessions

Signed-off-by: Joni Collinge <jonathancollinge@live.com>

* WIP: Support ASB sessions

Signed-off-by: Joni Collinge <jonathancollinge@live.com>

* Add metadata

Signed-off-by: Joni Collinge <jonathancollinge@live.com>

* remove dead code

Signed-off-by: Joni Collinge <jonathancollinge@live.com>

* lint

Signed-off-by: Joni Collinge <jonathancollinge@live.com>

* Add sessionIdleTimeoutInSec md

Signed-off-by: Joni Collinge <jonathancollinge@live.com>

* Support blank session IDs

Signed-off-by: Joni Collinge <jonathancollinge@live.com>

* If require sessions and no session id, set blank

Signed-off-by: Joni Collinge <jonathancollinge@live.com>

* move session config to per subscription metadata

Signed-off-by: Joni Collinge <jonathancollinge@live.com>

* add some unit tests

Signed-off-by: Joni Collinge <jonathancollinge@live.com>

* lint

Signed-off-by: Joni Collinge <jonathancollinge@live.com>

* remove auto blank session id

Signed-off-by: Joni Collinge <jonathancollinge@live.com>

* go mod tidy

Signed-off-by: Joni Collinge <jonathancollinge@live.com>

* add basic cert test

Signed-off-by: Joni Collinge <jonathancollinge@live.com>

* update comment

Signed-off-by: Joni Collinge <jonathancollinge@live.com>

* remove dead code

Signed-off-by: Joni Collinge <jonathancollinge@live.com>

* remove dead code

Signed-off-by: Joni Collinge <jonathancollinge@live.com>

* Update certification test

Signed-off-by: Joni Collinge <jonathancollinge@live.com>

* Add comment

Signed-off-by: Joni Collinge <jonathancollinge@live.com>

* Add cert test for roundrobin

Signed-off-by: Joni Collinge <jonathancollinge@live.com>

* go mod tidy

Signed-off-by: Joni Collinge <jonathancollinge@live.com>

* Update readme

Signed-off-by: Joni Collinge <jonathancollinge@live.com>

* Use struct for NewSubscription to simplify parameters

Signed-off-by: Joni Collinge <jonathancollinge@live.com>

* Address feedback

Signed-off-by: Joni Collinge <jonathancollinge@live.com>

* Address feedback

Signed-off-by: Joni Collinge <jonathancollinge@live.com>

* Only async receive

Signed-off-by: Joni Collinge <jonathancollinge@live.com>

* isTruthy on map without check

Signed-off-by: Joni Collinge <jonathancollinge@live.com>

* Use if not select for context check

Signed-off-by: Joni Collinge <jonathancollinge@live.com>

* Feedback

Signed-off-by: Joni Collinge <jonathancollinge@live.com>

* lint

Signed-off-by: Joni Collinge <jonathancollinge@live.com>

Signed-off-by: Joni Collinge <jonathancollinge@live.com>
Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
Co-authored-by: Yaron Schneider <schneider.yaron@live.com>
Co-authored-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
Co-authored-by: Alessandro (Ale) Segala <43508+ItalyPaleAle@users.noreply.github.com>
2023-01-06 09:59:26 -08:00
Bernd Verst d7dd4799d0 ASQ Binding: Cert Test: Add queue visibilityTimeout test
Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
2022-11-16 15:28:10 -08:00
ItalyPaleAle 33ac069736 Work on cert tests
Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
2022-11-01 19:42:55 +00: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
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
Alessandro (Ale) Segala afee7dbfb7
Ensure we're using the right version of cenkalti/backoff (#1904)
Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>

Co-authored-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
Co-authored-by: Dapr Bot <56698301+dapr-bot@users.noreply.github.com>
2022-08-04 18:04:37 -07:00
ItalyPaleAle b58464ad1c Make RabbitMQ retry more than once
Also updated tests to remove unused options and add more logging

Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
2022-06-27 22:31:31 +00:00
amulyavarote 5c410fb726
Added certification tests for Azure Storage Queue Bindings (#1736)
* Added certification tests for Azure Storage Queue Bindings

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

* Changes based on the review comments

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

* Added ttl test case to fetch the unexpired messages

Signed-off-by: Amulya Varote <amulyavarote@microsoft.com>
2022-05-25 17:26:17 -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
Shivam Kumar 107713ead2 Fixing Certification tests failure (#1447)
* Adding Remove functionality in watcher

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

* Updating MQTT test docker-compose

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

* Removing message in case of pub failure

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

* Adding MQueue_len=0

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

* Removing message in pub failure: kafka

Signed-off-by: shivam <shivamkm07@gmail.com>
2022-03-11 09:50:21 +05:30
Dmitry Shmulevich c7adb917f3
update license to Apache v2.0 (#1406) 2022-01-04 19:53:31 -08:00
Scott Hussey 897c2a4db5
Add OAuth2/OIDC support to Kafka pubsub (#1229)
* parent dbb18e4d77
author Scott Hussey <sthussey@gmail.com> 1632277042 -0500
committer Scott Hussey <sthussey@gmail.com> 1639111222 -0600

Support Oauth2 authentication for Kafka

- Utilize the SASL OAUTHBEARER mechanism to support
  the Oauth2 client_credentials flow for Kafka
  authentication

- Deprecate `authRequired` field and introduce `authType`
  to support varied authentication mechanisms

- Add a metadata upgrade mechanism to support backwards
  compatability

- Recommend broker specific scopes to guard against a
  compromised broker replaying a token

Signed-off-by: Scott Hussey <sthussey@gmail.com>

* kafka test - use volumes instead of root

CI test fails due to losing data written to container
root

Signed-off-by: Scott Hussey <sthussey@gmail.com>

* Clean up volumes

- When bringing down the docker-compose context, cleanup
  volumes

Signed-off-by: Scott Hussey <sthussey@gmail.com>

* Clean up stale comment

Signed-off-by: Scott Hussey <sthussey@gmail.com>

* Resume config defaults

- Return some Kafka config to default values to lower config
  footprint and stabilize flaky CI runs

Signed-off-by: Scott Hussey <sthussey@gmail.com>
2021-12-28 10:34:28 -08:00
halspang 3395bb7316
Add certification tests for ASB Queue binding (#1251)
* Add certification tests for ASB Queue binding

This commit adds certification tests for the Azure Service Bus Queue
Input/Output binding. This utilizes the new certification framework
and performs a series of tests as described in the test plan readme.

The general purpose of these tests is to serve as an integration test
and as such requires an actual Azure Service Bus connection and a
Dapr sidecar.

https://github.com/dapr/components-contrib/issues/957

* Add to github workflow and fix formatting

* Fix dependencies

Co-authored-by: Dapr Bot <56698301+dapr-bot@users.noreply.github.com>
2021-12-06 11:20:53 -08:00
Phil Kedy 77564a34c0
RabbitMQ certification: Fixing publish/subscribe race condition. (#1271)
* Fixing publish/subscribe race condition in RabbitMQ component.
Added amqpReady function to tests to wait for RabbitMQ readiness.
Tweaks to when subscribed is signaled in the test.

* Update go.mod(s)
2021-11-03 16:37:52 -07:00
Phil Kedy 1d0ce9ce23
Kafka certification: Adding more consumers and verifying messages are consumed (#1262)
* Adding second consumer and verifying messages are consumed

* Removed commented out code

* Adding async steps

* Added third consumer

* Adding consumer rebalance test

* Renaming watcher variables

* Update README.md

Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2021-11-02 13:51:15 -07:00
Bernd Verst 8a6f7dfdc5
remove port allocation code in favor of dapr runtime testing package (#1245) 2021-10-28 13:05:12 -07:00
Bernd Verst a806951157
Azure KeyVault Integration Tests Part 1 (#1238)
* AKV Integration test - WIP

* KeyVault integration test

* Adds network interruption capabilities

* wip

* remove async handling

* Azure Secret Store test

* get with the flow

* Remove network interruption because it is pointless here

* newlines

* Address code review

* Updte Readme to remove section on basic conformance

* Allocate random ports
2021-10-28 12:05:23 -07:00
Phil Kedy 9a3fe3f683
Kafka certification: Adding infra and network interruption tests (#1241)
* Adding infra and network interruption tests

* Tweak

* Using multierr.Combine

* Adding consumeRetryInterval setting to Kafka pubsub component
2021-10-27 17:41:27 -07:00
Bernd Verst 07c7a042e2
Fix for network interruption in flow (#1237)
Co-authored-by: Long Dai <long.dai@intel.com>
2021-10-26 20:59:50 -07:00
Bernd Verst 845e876c29
Certification Framework: Add network interruption / blocking capabilities (#1233)
* Adds network interruption capabilities

* remove async handling

* update example docstring

* no need for loop

* small optimization

* newline for good measure

* update dapr version
2021-10-26 18:10:32 -07: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