Commit Graph

437 Commits

Author SHA1 Message Date
Ori Zohar fc7b666fbe
Merge pull request #673 from jasonviviano/jasonviviano/typo-fix
Fix Typo
2021-05-07 11:28:35 -07:00
jasonviviano dd218400b5 Fix Typo 2021-05-06 13:31:34 -04:00
Dirk Lemstra 3b49ad0f98 Changed default value. 2021-05-01 15:07:31 -07:00
Dirk Lemstra 5367df2974 Made the ArgumentVerifier a shared class and use it in all the projects. 2021-05-01 15:07:31 -07:00
Dirk Lemstra fc82cb55e4 No longer allow null for the values in the DaprSecretStoreConfigurationSource. 2021-05-01 15:07:31 -07:00
Dirk Lemstra 0de8c79e0f Enabled nullable reference types in Dapr.Extensions.Configuration. 2021-05-01 15:07:31 -07:00
Dirk Lemstra 865ecc6432 Also use own version of the ArgumentVerifier. 2021-05-01 15:07:31 -07:00
Ryan Nowak 710868c66e Always pass serializer options to JSON serializer
Fixes: #664

This fixes an issue where we're not passing the serializer options to
the deserialize method for a user-specified payload. This was just an
oversight and did not behave as expected when users have customized the
settings.
2021-04-30 17:14:51 -07:00
Jigar 53a8f96c10
Added DeleteBulkState operation to dotnet sdk (#637)
Co-authored-by: Ryan Nowak <nowakra@gmail.com>
2021-04-30 15:35:44 -07:00
Ryan Nowak b1658657a5 Fix download of package assets 2021-04-30 13:43:05 -07:00
Ryan Nowak 9104c6624c Fix handling of DAPR_API_TOKEN
Fixes: #655

This fixes a functional bug in how we initialize the default settings of
based on the `DAPI_API_TOKEN` environment variable.

Additional, the `CreateInvokeMethodRequest` family of methods were
missing API token support. This has been added.
2021-04-19 14:57:11 -07:00
Newbe36524 5e5a42c96e Update dotnet-troubleshooting-pubsub.md 2021-04-01 23:29:18 -07:00
Aaron Crawfis fadb6c2654 Update actors docs 2021-04-01 10:02:50 -07:00
Ryan Nowak 51e0584110 Skip unreliable tests
These tests are failing in unpredictable ways on the CI. Skipping these
to avoid noise until we can investigate.
2021-03-30 09:39:45 -07:00
Ryan Nowak 1e23165d1c
Unit testability for timers and reminders (#622)
* Unit testability for timers and reminders

Fixes: #575

This change adds abstractions for Actors timer and reminder
functionality, making them possible to unit test. Previously these
features were wired from the Actor class directly into the client
functionality, and there was no way for a user of actors to write their
own tests when they include this functionality in their code.

Making this work required a lot of munging of basic data types because
we need to *extract* a layer of functionality into a testable API.

I also added a helper method for tests to create an actor host with
mocks attached. We'll likely need to do more in the future to support
testability for actors. I started this process by adding some "unit
test" unit tests. The only way to test that you can test is by testing
:).

----

Additionally I added E2E tests for actors timers and reminders and
improved some of the existing test functionality.

The big investment here is to change the layering of tests to ensure
that we only need to start one instance of the test app at a time.
Previously we'd start and stop the test app as part of the only test we
have. Adding more tests means we want to avoid this overhead when
possible.

This is specifically a challenge for actors since the assocation of an
actor type to an app id is **global state**. We want to keep the app
process we're using for tests long-lived to avoid classic distributed
systems problems (like the host going away) inside our tests.

* Dedupe code for initializing defaults
2021-03-19 10:00:53 -07:00
Aaron Crawfis ac318586a6
Merge pull request #624 from dapr/rynowak/docker-compose
Add local development docs
2021-03-17 09:12:31 -07:00
Ryan Nowak 7a05ea2b81
Merge branch 'master' into rynowak/docker-compose 2021-03-16 20:58:10 -07:00
Ryan Nowak 98c3b3e0c8
Update daprdocs/content/en/dotnet-sdk-docs/dotnet-development/dotnet-development-docker-compose.md
Co-authored-by: Aaron Crawfis <Aaron.Crawfis@microsoft.com>
2021-03-16 20:58:00 -07:00
Ryan Nowak a2ee137945
Update daprdocs/content/en/dotnet-sdk-docs/dotnet-development/dotnet-development-docker-compose.md
Co-authored-by: Aaron Crawfis <Aaron.Crawfis@microsoft.com>
2021-03-16 20:57:53 -07:00
Ryan Nowak 02ed066ef1
Update daprdocs/content/en/dotnet-sdk-docs/dotnet-development/dotnet-development-dapr-cli.md
Co-authored-by: Aaron Crawfis <Aaron.Crawfis@microsoft.com>
2021-03-16 20:57:36 -07:00
Ryan Nowak 4e9d7fd5ac
Update daprdocs/content/en/dotnet-sdk-docs/dotnet-development/dotnet-development-tye.md
Co-authored-by: Aaron Crawfis <Aaron.Crawfis@microsoft.com>
2021-03-16 20:57:27 -07:00
Ryan Nowak 245a1280f4
Update daprdocs/content/en/dotnet-sdk-docs/dotnet-development/dotnet-development-tye.md
Co-authored-by: Aaron Crawfis <Aaron.Crawfis@microsoft.com>
2021-03-16 20:57:17 -07:00
Ryan Nowak 67e07d6952
Update daprdocs/content/en/dotnet-sdk-docs/dotnet-development/dotnet-development-docker-compose.md
Co-authored-by: Aaron Crawfis <Aaron.Crawfis@microsoft.com>
2021-03-16 20:57:12 -07:00
Ryan Nowak facdb84cfc
Update daprdocs/content/en/dotnet-sdk-docs/dotnet-development/dotnet-development-dapr-cli.md
Co-authored-by: Aaron Crawfis <Aaron.Crawfis@microsoft.com>
2021-03-16 20:57:02 -07:00
Ryan Nowak 034abda2fb
Update daprdocs/content/en/dotnet-sdk-docs/dotnet-development/dotnet-development-docker-compose.md
Co-authored-by: Aaron Crawfis <Aaron.Crawfis@microsoft.com>
2021-03-16 20:56:56 -07:00
Ryan Nowak aa0fee4614
Update daprdocs/content/en/dotnet-sdk-docs/dotnet-development/dotnet-development-dapr-cli.md
Co-authored-by: Aaron Crawfis <Aaron.Crawfis@microsoft.com>
2021-03-16 20:56:48 -07:00
Ryan Nowak ff1a68b875
Update daprdocs/content/en/dotnet-sdk-docs/dotnet-development/dotnet-development-dapr-cli.md
Co-authored-by: Aaron Crawfis <Aaron.Crawfis@microsoft.com>
2021-03-16 20:56:38 -07:00
Ryan Nowak 93eb2de90e
Update daprdocs/content/en/dotnet-sdk-docs/dotnet-development/_index.md
Co-authored-by: Aaron Crawfis <Aaron.Crawfis@microsoft.com>
2021-03-16 20:56:25 -07:00
Ryan Nowak 30c14e0862
Update daprdocs/content/en/dotnet-sdk-docs/dotnet-development/_index.md
Co-authored-by: Aaron Crawfis <Aaron.Crawfis@microsoft.com>
2021-03-16 20:56:14 -07:00
Ryan Nowak 020164fecd
Update daprdocs/content/en/dotnet-sdk-docs/dotnet-development/_index.md
Co-authored-by: Aaron Crawfis <Aaron.Crawfis@microsoft.com>
2021-03-16 20:56:04 -07:00
Aaron Crawfis 6160c29cbd
Fix docs links (#635) 2021-03-16 20:55:46 -07:00
Ryan Nowak d8c72d9d3e updates 2021-03-15 14:05:40 -07:00
Ryan Nowak 8e645bc364 Update daprdocs/content/en/dotnet-sdk-docs/dotnet-development/_index.md
Co-authored-by: Aaron Crawfis <Aaron.Crawfis@microsoft.com>
2021-03-15 13:55:43 -07:00
Ryan Nowak 47b6372f39 Update daprdocs/content/en/dotnet-sdk-docs/_index.md
Co-authored-by: Aaron Crawfis <Aaron.Crawfis@microsoft.com>
2021-03-15 13:55:43 -07:00
Ryan Nowak 0eafec4b66 Add local development docs
Fixes: #534
Fixes: #604
2021-03-15 13:55:43 -07:00
Ryan Nowak 4baad5453f
Improve actor getting started and add more docs (#623)
* Improve actor getting started and add more docs

Fixes: #546
Fixes: #612

This change runs through the getting started docs and improves trims all
of the unnecessary fat. I've reorganized all of the details that aren't
relevant as part of the first tutorial into separate docs.

I've also fleshed out all of the content we have to be relevant to a new
user and added new sections like DI and logging.

* Update daprdocs/content/en/dotnet-sdk-docs/dotnet-actors/dotnet-actors-howto.md

Co-authored-by: Aaron Crawfis <Aaron.Crawfis@microsoft.com>

* Update daprdocs/content/en/dotnet-sdk-docs/dotnet-actors/dotnet-actors-howto.md

Co-authored-by: Aaron Crawfis <Aaron.Crawfis@microsoft.com>

* Update daprdocs/content/en/dotnet-sdk-docs/dotnet-actors/dotnet-actors-howto.md

Co-authored-by: Aaron Crawfis <Aaron.Crawfis@microsoft.com>

* Update daprdocs/content/en/dotnet-sdk-docs/dotnet-actors/dotnet-actors-howto.md

Co-authored-by: Aaron Crawfis <Aaron.Crawfis@microsoft.com>

Co-authored-by: Aaron Crawfis <Aaron.Crawfis@microsoft.com>
2021-03-15 13:38:27 -07:00
Fabian b62612af3d
Fix DaprSecretStoreConfigurationProvider (#625)
* Fix DaprSecretStoreConfigurationProvider

* Add comment for `SendBulkResponseWithSecrets`.

Co-authored-by: Your Name <you@example.com>
Co-authored-by: Ryan Nowak <nowakra@gmail.com>
2021-03-15 10:49:02 -07:00
Samuel McAravey c40145259b
[WIP] Added support for custom delimiters in secret keys. (#629)
* Added support for custom delimiters in secret keys.

* Removed hard-coded double underscore delimiter.

* Updated the KeyDelimiters property to use IList.

* Reverted the AddDaprSecretStore keyDelimiters parameter to IEnumerable.

* Fix for build failure due to dumb save issue.
2021-03-11 23:01:23 -08:00
Fabian 7890bc7977
Separator character for Dapr Sercet Store Configuration Provider (#616)
* NormalizeKey Secret Store configuration key.

* Add test.

* Add option to disable NormalizeKey.

Co-authored-by: Your Name <you@example.com>
Co-authored-by: Ryan Nowak <nowakra@gmail.com>
2021-03-06 16:58:21 -08:00
Ryan Nowak cda2900997
Support non-JSON text in cloud events middleware (#621)
Fixes: #592

This change teaches the cloud events middleware to JSON-decode non-JSON
content when it appears in the `data` attribute in a cloud event.

There are three cases for cloud events that matter:

- data is used, content is a JSON object, datacontentype is JSON
- data is used, content is a JSON string, dataconenttype != JSON
- data_base64 is used, content is base64 bytes

We weren't handling the second of this. If you submitted the content:

`"data": "hello, "\world!\""` with datacontenttype = text/plain

You would end up with `"hello, \"world!\""` in the request body instead
of `hello, "world!"`.

This is a very subtle case, and I'm trying to fix it before users couple
their code to the wrong behavior. Since this is technically a breaking
change, I've added a opt-out so you can restore the buggy behavior.
2021-03-06 16:48:53 -08:00
Ryan Nowak c00a9e54b8
Add one more case to troubleshooting guide (#610)
* Add one more case to troubleshooting guide

Found this was missing with a user's help.

* PR feedback

* Update daprdocs/content/en/dotnet-sdk-docs/dotnet-troubleshooting/dotnet-troubleshooting-pubsub.md
2021-03-05 15:47:42 -08:00
Laurent Kempé 684718e940
Update README.md (#617)
Fix wrong path

Co-authored-by: Ryan Nowak <nowakra@gmail.com>
2021-03-05 11:34:09 -08:00
Ryan Nowak 089a395f3d
Suppress TRX parser on PR from fork (#620)
(attempt 2)
2021-03-05 11:25:02 -08:00
Ryan Nowak 34d77d6269
Diable TRX parser on forks (#618)
Unfortunately this action requires permissions that a workflow running
for a fork does not have. You can see an example of this failing here:
https://github.com/dapr/dotnet-sdk/pull/617/checks?check_run_id=2033224542
2021-03-04 13:03:27 -08:00
Aaron Crawfis 07e8a9fec6
Merge pull request #608 from dapr/daprdocs-update
Update .NET docs to prepare for website integration
2021-03-01 13:42:26 -08:00
Aaron Crawfis aafe24e7e8
Merge branch 'master' into daprdocs-update 2021-03-01 12:11:43 -08:00
vinayada1 386898afd1
End to end test for service invocation (#602)
* add e2e test for service invocation
2021-02-25 22:05:50 -08:00
Alexander Batishchev dd31a40143
Update README.md (#605) 2021-02-24 11:47:04 -08:00
Aaron Crawfis 5f5326b83f Remove blank files 2021-02-24 11:23:46 -08:00
Ryan Nowak 008a4f35dd
Merge pull request #603 from dapr/release-1.0.0
Merge test changes for 1.0 -> master
2021-02-19 17:07:23 -08:00