Commit Graph

2062 Commits

Author SHA1 Message Date
Roberto Rojas e529d60c9b message changes
Signed-off-by: Roberto Rojas <robertojrojas@gmail.com>
2022-12-14 19:54:35 -05:00
Roberto Rojas 728f83e058 adds single publisher / multiple subscribers with same consumerID test
Signed-off-by: Roberto Rojas <robertojrojas@gmail.com>
2022-12-14 19:54:35 -05:00
Roberto Rojas abb6185dff adds README
Signed-off-by: Roberto Rojas <robertojrojas@gmail.com>
2022-12-14 19:54:35 -05:00
Roberto Rojas 61fb0731d1 better message assert reporting
Signed-off-by: Roberto Rojas <robertojrojas@gmail.com>
2022-12-14 19:54:35 -05:00
Roberto Rojas 79d863761e starts AWS SNS/SQS Certification Test Code
Signed-off-by: Roberto Rojas <robertojrojas@gmail.com>
2022-12-14 19:54:35 -05:00
Tomasz Pietrek 72bd117e7e
Rework JetStream delivery policy (#2315)
* Rework JetStream delivery policy

Signed-off-by: Tomasz Pietrek <tomasz@nats.io>

* Add missing deliver policies to error

Co-authored-by: Piotr Piotrowski <piotrpiotrowski94@gmail.com>
Signed-off-by: Tomasz Pietrek <melgaer@gmail.com>
Signed-off-by: Tomasz Pietrek <tomasz@nats.io>

* Rearrange imports

Signed-off-by: Tomasz Pietrek <tomasz@nats.io>

Signed-off-by: Tomasz Pietrek <tomasz@nats.io>
Signed-off-by: Tomasz Pietrek <melgaer@gmail.com>
Co-authored-by: Piotr Piotrowski <piotrpiotrowski94@gmail.com>
Co-authored-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
Co-authored-by: Yaron Schneider <schneider.yaron@live.com>
2022-12-14 15:56:07 -08:00
Alessandro (Ale) Segala 6a7d58436d
Fix ratelimit middleware not working (#2349)
We need to set a value for the X-Forwarded-For header or the upstream library won't rate-limit requests. Additionally, upgraded the tollbooth library to v7.

Fixes #2343

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

Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
2022-12-14 08:43:40 -08:00
Bernd Verst c5c985a685
Merge pull request #2208 from 1046102779/feature/state_context1021
feature: add context to state API
2022-12-13 10:51:50 -08:00
Alessandro (Ale) Segala 4e99cdccb8
Merge branch 'master' into feature/state_context1021 2022-12-13 10:12:38 -08:00
ItalyPaleAle a1c863d7fd Small fixes
Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
2022-12-13 10:11:36 -08:00
Bernd Verst dae73faa3e
Merge pull request #2340 from Jarema/add-ack-policy
Add AckPolicy option to NATS pub/sub
2022-12-13 10:04:31 -08:00
1046102779 eeadb56d22 feature: add context to state API
Signed-off-by: 1046102779 <seachen@tencent.com>
2022-12-08 16:41:11 +08:00
1046102779 0b0a7298f6 feature: add context to state API
Signed-off-by: 1046102779 <seachen@tencent.com>
2022-12-08 16:24:53 +08:00
1046102779 2dd7433a59 feature: add context to state API
Signed-off-by: 1046102779 <seachen@tencent.com>
2022-12-08 15:56:51 +08:00
Tomasz Pietrek 9df618959e Fix formatting
Signed-off-by: Tomasz Pietrek <tomasz@nats.io>
2022-12-05 17:56:02 +01:00
Tomasz Pietrek d2e3a7e533 Test ack policies metadata
Signed-off-by: Tomasz Pietrek <tomasz@nats.io>
2022-12-05 17:47:35 +01:00
Tomasz Pietrek 0e80570949 Fix typo
Signed-off-by: Tomasz Pietrek <tomasz@nats.io>
2022-12-05 15:57:14 +01:00
Tomasz Pietrek 3a8a9a0ef6 Fix error handling in Ack
Signed-off-by: Tomasz Pietrek <tomasz@nats.io>
2022-12-05 14:33:12 +01:00
Tomasz Pietrek 0463c2cf8b Adopt handler to work properly with each ack policy in NATS
Signed-off-by: Tomasz Pietrek <tomasz@nats.io>
2022-12-05 14:19:13 +01:00
Tomasz Pietrek 7ec2b8608f Add ack policy to NATS pub/sub
Signed-off-by: Tomasz Pietrek <tomasz@nats.io>
2022-12-05 14:15:00 +01:00
Sarthak Sharma a4b27ae49b
fix flaky tests (#2338) 2022-12-03 13:59:42 -08:00
Bernd Verst 5e9ce11d44
Merge pull request #2335 from berndverst/secretstoremetadata
standardize secretstore metadata parsing
2022-12-02 13:09:27 -08:00
Bernd Verst d488d5e52a
Merge branch 'master' into secretstoremetadata 2022-12-02 12:08:19 -08:00
Sarthak Sharma 0e0cf8fe58
Add certification tests for Cron Binding (#2191)
* fix typos

Signed-off-by: Sarthak Sharma <sartsharma@microsoft.com>

* add basic tests

Signed-off-by: Sarthak Sharma <sartsharma@microsoft.com>

* update tests

Signed-off-by: Sarthak Sharma <sartsharma@microsoft.com>

* add Readme

Signed-off-by: Sarthak Sharma <sartsharma@microsoft.com>

* update mod file

Signed-off-by: Sarthak Sharma <sartsharma@microsoft.com>

* add entry in workflow

Signed-off-by: Sarthak Sharma <sartsharma@microsoft.com>

* add conformance test

Signed-off-by: Sarthak Sharma <sartsharma@microsoft.com>

* add conformance tests to workflow

Signed-off-by: Sarthak Sharma <sartsharma@microsoft.com>

* use watcher to assert

Signed-off-by: Sarthak Sharma <sartsharma@microsoft.com>

* update readme

Signed-off-by: Sarthak Sharma <sartsharma@microsoft.com>

* fix linting

Signed-off-by: Sarthak Sharma <sartsharma@microsoft.com>

* Apply suggestions from code review

Co-authored-by: Shubham Sharma <shubhash@microsoft.com>
Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>

* change to dapr/go-sdk from hunter007/dapr-go-sdk

Signed-off-by: Sarthak Sharma <sartsharma@microsoft.com>

* fix cron delete operation

Signed-off-by: Sarthak Sharma <sartsharma@microsoft.com>

* add check if cron not triggered after delete

Signed-off-by: Sarthak Sharma <sartsharma@microsoft.com>

* update README

Signed-off-by: Sarthak Sharma <sartsharma@microsoft.com>

* parameterise application and assertions

Signed-off-by: Sarthak Sharma <sartsharma@microsoft.com>

* use mock clock for cron

Signed-off-by: Sarthak Sharma <sartsharma@microsoft.com>

* change cron to input only binding

Signed-off-by: Sarthak Sharma <sartsharma@microsoft.com>

* add forked cron library to internal/cron

Signed-off-by: Sarthak Sharma <sartsharma@microsoft.com>

* use cron internal fork for binding

Signed-off-by: Sarthak Sharma <sartsharma@microsoft.com>

* resolve comments

Signed-off-by: Sarthak Sharma <sartsharma@microsoft.com>

* resolve comments

Signed-off-by: Sarthak Sharma <sartsharma@microsoft.com>

* add test matrix to test various schedules

Signed-off-by: Sarthak Sharma <sartsharma@microsoft.com>

* add cron init unit tests

Signed-off-by: Sarthak Sharma <sartsharma@microsoft.com>

* resolve comments

Signed-off-by: Sarthak Sharma <sartsharma@microsoft.com>

* fix linting

Signed-off-by: Sarthak Sharma <sartsharma@microsoft.com>

* fix linting

Signed-off-by: Sarthak Sharma <sartsharma@microsoft.com>

* go modtidy all

Signed-off-by: Sarthak Sharma <sartsharma@microsoft.com>

* go modtidy

Signed-off-by: Sarthak Sharma <sartsharma@microsoft.com>

* move cron fork to dapr/kit

Signed-off-by: Sarthak Sharma <sartsharma@microsoft.com>

* use pinned v0.0.3 for dapr/kit

Signed-off-by: Sarthak Sharma <sartsharma@microsoft.com>

Signed-off-by: Sarthak Sharma <sartsharma@microsoft.com>
Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
Co-authored-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
Co-authored-by: Shubham Sharma <shubhash@microsoft.com>
Co-authored-by: Dapr Bot <56698301+dapr-bot@users.noreply.github.com>
2022-12-02 02:30:01 -08:00
Bernd Verst e8305115d0 Fix up hashicorp vault
Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
2022-12-01 14:00:16 -08:00
Bernd Verst 9a42e5897c
Merge branch 'master' into secretstoremetadata 2022-12-01 13:42:48 -08:00
Bernd Verst 388d95ae9d
Merge pull request #2336 from codefromthecrypt/http-wasm-host-go-v0.2.0
deps: updates wazero to 1.0.0-pre.4
2022-12-01 13:42:07 -08:00
Adrian Cole 9fed3a802e deps: updates wazero to 1.0.0-pre.4
This updates [wazero](https://wazero.io/) to [1.0.0-pre.4](https://github.com/tetratelabs/wazero/releases/tag/v1.0.0-pre.4).

Notably, v1.0.0-pre.4:
* improves module initialization speed
* supports listeners in the compiler engine
* supports WASI `fd_pread`, `fd_readdir` and `path_filestat_get`
* breaks GoModuleFunc API

Signed-off-by: Adrian Cole <adrian@tetrate.io>
2022-12-01 11:09:30 +08:00
Bernd Verst f63301b7a0 standardize secretstore metadata parsing
Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
2022-11-30 16:17:42 -08:00
Bernd Verst 7d466c7130
Merge pull request #2321 from johnewart/allow_http_binding_non_200_response
Allow non-200 responses to be treated as non-errors
2022-11-30 12:28:10 -08:00
Dapr Bot 9305c75cbe
Merge branch 'master' into allow_http_binding_non_200_response 2022-11-30 11:43:54 -08:00
Bernd Verst 52404f32d4
Merge pull request #2316 from tmacam/VaultMoreTestsRebased
Additional tests for Hashicorp Vaul Secret Store certification.
2022-11-30 11:37:59 -08:00
Tiago Alves Macambira b56d13a904
Merge branch 'master' into VaultMoreTestsRebased 2022-11-30 11:09:24 -08:00
Dapr Bot a64f92cb46
Merge branch 'master' into allow_http_binding_non_200_response 2022-11-30 10:54:39 -08:00
Tomasz Pietrek 86cf34ef8f
Add missing filter subject in Jetstream pubsub (#2312)
Signed-off-by: Tomasz Pietrek <tomasz@nats.io>

Signed-off-by: Tomasz Pietrek <tomasz@nats.io>
Co-authored-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
Co-authored-by: Dapr Bot <56698301+dapr-bot@users.noreply.github.com>
2022-11-30 10:46:15 -08:00
Dapr Bot 3fec9ae190
Merge branch 'master' into allow_http_binding_non_200_response 2022-11-30 10:33:37 -08:00
Bernd Verst 6f13681283
Merge pull request #2331 from tmacam/SystemCertPoolWorksInWindows 2022-11-30 10:33:23 -08:00
Tiago Alves Macambira b4c65ed195 Enforce error checking for Vault component initialization on tests.
Tests in vault_test.go had the following :

```go
    // This call will throw an error on Windows systems because of the of
    // the call x509.SystemCertPool() because system root pool is not
    // available on Windows so ignore the error for when the tests are run
    // on the Windows platform during CI
    _ = target.Init(m)
```

As of Go 1.18 this is not the case for Windows anymore and
we can instead enforce error checking. References:

* https://github.com/golang/go/issues/16736
* https://github.com/golang/go/issues/18609
* https://github.com/rancher/system-agent/pull/84
* https://github.com/jaegertracing/jaeger/pull/2756

Given Dapr depends on Go 1.19, we can enforce tests on `Init` result
and remove this comment.

While enforcing error checking we notice that the code above was
actually hiding errors in the test setup. Component initialization was
ending prematurely due to those errors and the test code was wrongfully
testing for the behavior of a component that has not been successfully
initialized. This is also addressed in this PR.

Closes #2330.

Signed-off-by: Tiago Alves Macambira <tmacam@burocrata.org>
2022-11-29 17:13:17 -08:00
John Ewart aef7ec77dc Fix naming to make ci-linter happy
Signed-off-by: John Ewart <john@johnewart.net>
2022-11-29 14:56:06 -08:00
John Ewart 49bdf702e9 gofumpt'd
Signed-off-by: John Ewart <john@johnewart.net>
2022-11-29 13:51:56 -08:00
John Ewart 4227cf7716 Update tests to be a little more isolated
Signed-off-by: John Ewart <john@johnewart.net>
2022-11-29 13:41:45 -08:00
John Ewart 9e9d7086e1 Allow HTTP binding to not error on non-200 responses
Signed-off-by: John Ewart <john@johnewart.net>
2022-11-29 13:41:36 -08:00
thielepaul 47b0d73676
Add mqtt retained information to pubsub message metadata (#2299)
Signed-off-by: Paul Thiele <thielepaul@gmail.com>

Signed-off-by: Paul Thiele <thielepaul@gmail.com>
Co-authored-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
Co-authored-by: Alessandro (Ale) Segala <43508+ItalyPaleAle@users.noreply.github.com>
Co-authored-by: Dapr Bot <56698301+dapr-bot@users.noreply.github.com>
2022-11-29 10:06:20 -08:00
Ryan Lettieri 46fabfa0fe
Creation of Certification Test for CockroachDB (#2222)
* First commit of cockroachDB cert test but it has some errors when stopping/starting container

Signed-off-by: Ryan Lettieri <ryanLettieri@microsoft.com>

* Creation of CockroachDB certification test

Signed-off-by: Ryan Lettieri <ryanLettieri@microsoft.com>

* Removing ping function from cockroachDB deleteValue func

Signed-off-by: Ryan Lettieri <ryanLettieri@microsoft.com>

* Spelling mistake and moving Ping function in cockroachDB into Init method

Signed-off-by: Ryan Lettieri <ryanLettieri@microsoft.com>

* First set of updates for cockroachDB cert PR

Signed-off-by: Ryan Lettieri <ryanLettieri@microsoft.com>

* More updates to cockroachDB cert test

Signed-off-by: Ryan Lettieri <ryanLettieri@microsoft.com>

* Lint fix for cockrochdb

Signed-off-by: Ryan Lettieri <ryanLettieri@microsoft.com>

* Fixes to go.mod and go.som files for cockroachDB

Signed-off-by: Ryan Lettieri <ryanLettieri@microsoft.com>

* Renaming variable for number of connection retry attempts

Signed-off-by: Ryan Lettieri <ryanLettieri@microsoft.com>

* Removing ttl from cockroach metadata in test

Signed-off-by: Ryan Lettieri <ryanLettieri@microsoft.com>

* Updating go.mod files to master and updating retry in cockroachDB

Signed-off-by: Ryan Lettieri <ryanLettieri@microsoft.com>

Signed-off-by: Ryan Lettieri <ryanLettieri@microsoft.com>
Co-authored-by: Ryan Lettieri <ryanLettieri@microsoft.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-11-29 09:35:48 -08:00
Bernd Verst 9826fa9d7e
Merge pull request #2290 from berndverst/azblobbindingtrack2
Azure Blobstorage Binding and State Store: Migrate to Track2 Azure SDK
2022-11-28 18:01:11 -08:00
Tiago Alves Macambira 5e6d7c13ce
Merge branch 'master' into VaultMoreTestsRebased 2022-11-28 17:40:23 -08:00
Tiago Alves Macambira cdac8123f3 Small fixes (documentation, comments)
Signed-off-by: Tiago Alves Macambira <tmacam@burocrata.org>
2022-11-28 17:39:59 -08:00
Dapr Bot d28a289f0f
Merge branch 'master' into azblobbindingtrack2 2022-11-28 17:38:48 -08:00
Bernd Verst 25d9f5350c
Merge pull request #2324 from berndverst/fixk8sconf
Fix kubernetes secretstore conformance test
2022-11-28 17:34:08 -08:00
Tiago Alves Macambira 97bb296ffc Fixes in response to code review.
* Removes emojis from output
* Auto-generate certificates on the fly
* Move helper methods out of vault_test.go and into helper files.

Signed-off-by: Tiago Alves Macambira <tmacam@burocrata.org>
2022-11-28 17:08:03 -08:00