Commit Graph

3297 Commits

Author SHA1 Message Date
Mukundan Sundararajan 7e37468953 set default ttl field for cosmosdb to enable ttl support.
Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>
2022-12-07 15:21:43 +05:30
Joni Collinge 303182341a
WIP: Support ASB sessions
Signed-off-by: Joni Collinge <jonathancollinge@live.com>
2022-12-06 16:35:51 +00:00
spike 6254982cd7 Raise error if protocol does not match connection string
Signed-off-by: spike <hello@spike.wiki>
2022-12-06 22:27:54 +08:00
ItalyPaleAle f718462d23 💄
Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
2022-12-06 01:30:29 +00:00
ItalyPaleAle 413ee92d88 We don't need locks when we do things atomically
Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
2022-12-06 01:27:17 +00:00
ItalyPaleAle 64a70c230c Fixed handling of concurrent background cleanups and added cert tests
Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
2022-12-06 01:24:22 +00:00
ItalyPaleAle d4dcc54e29 Improved concurrency handling for migrations
And added cert test for that

Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
2022-12-05 21:00:31 +00:00
ItalyPaleAle 4d9bae154f First new conformance tests
Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
2022-12-05 20:03:23 +00:00
ItalyPaleAle c8398ad33e Merge branch 'master' of https://github.com/dapr/components-contrib into postgres-ttl 2022-12-05 18:34:53 +00: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
Joni Collinge 0c1dcd5cc5
Merge branch 'master' into jjcollinge/asb-sessions 2022-12-05 07:50:20 +00:00
Sarthak Sharma a4b27ae49b
fix flaky tests (#2338) 2022-12-03 13:59:42 -08:00
Bernd Verst 433be3c32c upgrade a bunch of SDKs
Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
2022-12-02 14:40:20 -08:00
Bernd Verst f656319740
Merge branch 'master' into feat/rabbitmq-tls 2022-12-02 13:54:50 -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
Joni Collinge c27a6580a8
WIP: ASB sessions
Signed-off-by: Joni Collinge <jonathancollinge@live.com>
2022-12-02 15:40:48 +00: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
ItalyPaleAle 0b340d11d3 Cleanup interval uses metadata table to avoid multiple executions simultaneously
Also bug fixes

Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
2022-12-01 19:31:23 +00:00
ItalyPaleAle b782b520aa Merge branch 'master' of https://github.com/dapr/components-contrib into postgres-ttl 2022-12-01 19:17:41 +00: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
ItalyPaleAle b52482b394 Use a metadata table for postgres to store migrations
Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
2022-11-30 23:02:58 +00: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
Bernd Verst efa96b26ed
Merge branch 'master' into postgres-ttl 2022-11-28 17:57:53 -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