Commit Graph

184 Commits

Author SHA1 Message Date
Artur Souza d192ed8bb6
Next release 1.11.0 snapshot (#934)
* Fix release script to handle workflows sdk.

Signed-off-by: Artur Souza <asouza.pro@gmail.com>

* Upgrade the version to 1.11.0-SNAPSHOT

Signed-off-by: Artur Souza <asouza.pro@gmail.com>

---------

Signed-off-by: Artur Souza <asouza.pro@gmail.com>
2023-10-03 14:12:28 -07:00
Artur Souza 7f76d5b2de
Integration test stabilization + update proto and Dapr runtime to 1.12 RC. (#917)
* Update Dapr runtime to 1.12 RC.

Signed-off-by: Artur Souza <asouza.pro@gmail.com>

* Add socket wait for ToxiProxy client.

Signed-off-by: Artur Souza <asouza.pro@gmail.com>

* Changing ambiguity in service Id for TracingIT tests.

Signed-off-by: Artur Souza <asouza.pro@gmail.com>

* More assertions to SDKResiliencyIT.

Signed-off-by: Artur Souza <asouza.pro@gmail.com>

* Add sidecar wait for TracingIT.

Signed-off-by: Artur Souza <asouza.pro@gmail.com>

* Wait for Zipkin endpoint.

Signed-off-by: Artur Souza <asouza.pro@gmail.com>

* Tacking flakiness on MethodInvokeIT and TracingIT.

Signed-off-by: Artur Souza <asouza.pro@gmail.com>

* Test again with 1.11.0 CLI.

Signed-off-by: Artur Souza <asouza.pro@gmail.com>

* Start bisect 1.12 regression.

Signed-off-by: Artur Souza <asouza.pro@gmail.com>

* Bisect step for runtime at 34c5102600b5a39704089b72db565ca95943269d

Signed-off-by: Artur Souza <asouza.pro@gmail.com>

* bisect step for runtime at ad5618711830510617e1b8fb2d0c6758f14ff6b9

Signed-off-by: Artur Souza <asouza.pro@gmail.com>

* bisect step for runtime at 4e5c51be62d8a7319ab25a401681ba82bd3ef7e7

Signed-off-by: Artur Souza <asouza.pro@gmail.com>

* git bisect step for runtime at 3143f2fcb679e585d978e9b9d706cce72088fecc

Signed-off-by: Artur Souza <asouza.pro@gmail.com>

* git bisect step for runtime at d243d1c6a17b019e0435ebbc10abb00810beb29a

Signed-off-by: Artur Souza <asouza.pro@gmail.com>

* git bisect step for runtime at 2ddb99be5ae61abd9f7f3616987fcfda0cedbc6e

Signed-off-by: Artur Souza <asouza.pro@gmail.com>

* git bisect step for runtime at 0fdab70eb32a63dd2630c39c4b1bc623212cd099

Signed-off-by: Artur Souza <asouza.pro@gmail.com>

* git bisect step for runtime at b42319279f21ee5c63d5cd04bfef6e94897cf34f

Signed-off-by: Artur Souza <asouza.pro@gmail.com>

* Verify first bad commit at runtime: 0fdab70eb32a63dd2630c39c4b1bc623212cd099

Signed-off-by: Artur Souza <asouza.pro@gmail.com>

* Trying artursouza/dapr at 37ca4c81041de11677ddea101298ca3c2ad8585d

Signed-off-by: Artur Souza <asouza.pro@gmail.com>

* Add delay of 10s on MethodInvokeService for IT.

Signed-off-by: Artur Souza <asouza.pro@gmail.com>

* Trying dapr at artursouza's fork at 65e117433284388535f5a967456611a72773cf6b

Signed-off-by: Artur Souza <asouza.pro@gmail.com>

* Change MethodInvokeService to use AppHealthCheck.

Signed-off-by: Artur Souza <asouza.pro@gmail.com>

* Change TracingIT to use AppHealthCheck.

Signed-off-by: Artur Souza <asouza.pro@gmail.com>

* Change to use artursouza's fork at f770694b3fbf7222c162a4ee4e13818a5afc3b01

Signed-off-by: Artur Souza <asouza.pro@gmail.com>

* Remove use of artursouza's fork for runtime.

Signed-off-by: Artur Souza <asouza.pro@gmail.com>

* Fix MethodInvokeIT to actually use AppHealthCheck.

Signed-off-by: Artur Souza <asouza.pro@gmail.com>

* Try fix in runtime: artursouza/dapr at 72b6f7374a670c3054427aa2b01d2374e3bc3329

Signed-off-by: Artur Souza <asouza.pro@gmail.com>

* Trying runtime as per artursouza at 64d19957059d134378603630165b3e473bdde388

Signed-off-by: Artur Souza <asouza.pro@gmail.com>

* Increase delay to avoid race condition for app health checks.

Signed-off-by: Artur Souza <asouza.pro@gmail.com>

* Try runtime at artursouza at d2eb15d1707ff8539ff1561a1fd67750d205854b

Signed-off-by: Artur Souza <asouza.pro@gmail.com>

* Update to 1.12.0-rc.5

Signed-off-by: Artur Souza <asouza.pro@gmail.com>

---------

Signed-off-by: Artur Souza <asouza.pro@gmail.com>
Signed-off-by: Artur Souza <artursouza.ms@outlook.com>
2023-10-02 09:15:26 -07:00
Emanuel Alves 6c5aa6011a
Update instructions to spin dependent services (#920)
Signed-off-by: Emanuel Alves <emanuel.j.b.alves@gmail.com>
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2023-09-22 10:35:14 -07:00
Emanuel Alves 29847ce9a1
Set file encoding property on sdk-tests module (#923)
* Set file encoding on sdk-tests module

Signed-off-by: Emanuel Alves <emanuel.j.b.alves@gmail.com>

* trigger CI

Signed-off-by: Emanuel Alves <emanuel.j.b.alves@gmail.com>

---------

Signed-off-by: Emanuel Alves <emanuel.j.b.alves@gmail.com>
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2023-09-22 10:34:34 -07:00
Emanuel Alves 56d9270a0a
Migrate to Junit5 (#910)
* Migrating to Junit5

Signed-off-by: Emanuel Alves <emanuel.j.b.alves@gmail.com>

* Fix spotbugs errors

Signed-off-by: Emanuel Alves <emanuel.j.b.alves@gmail.com>

* Fix spotbugs errors

Signed-off-by: Emanuel Alves <emanuel.j.b.alves@gmail.com>

* remove unreachable code due to expected exception being thrown

Signed-off-by: Emanuel Alves <emanuel.j.b.alves@gmail.com>

* Increase daprRun timeout

Signed-off-by: Emanuel Alves <emanuel.j.b.alves@gmail.com>

* wait 5 secs before launching toxiproxy

Signed-off-by: Emanuel Alves <emanuel.j.b.alves@gmail.com>

* Rollback spotbugs bump version

Signed-off-by: Emanuel Alves <emanuel.j.b.alves@gmail.com>

* extract junit-bom version to a property

Signed-off-by: Emanuel Alves <emanuel.j.b.alves@gmail.com>

* Change settings in SdkResiliencyIT to reduce flakiness.

Signed-off-by: Artur Souza <asouza.pro@gmail.com>

* Wait for sidecar in SDKResiliencyIT

Signed-off-by: Artur Souza <asouza.pro@gmail.com>

---------

Signed-off-by: Emanuel Alves <emanuel.j.b.alves@gmail.com>
Signed-off-by: Artur Souza <asouza.pro@gmail.com>
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
Co-authored-by: Artur Souza <asouza.pro@gmail.com>
2023-09-22 10:25:10 -07:00
Artur Souza cf8040dd6d
Implement retry and timeout policy for gRPC client. (#889)
* Implement retry and timeout policy for gRPC client.

Signed-off-by: Artur Souza <asouza.pro@gmail.com>

* Fix invoke actor after aborted flow.

Signed-off-by: Artur Souza <asouza.pro@gmail.com>

---------

Signed-off-by: Artur Souza <asouza.pro@gmail.com>
2023-08-15 22:39:16 -07:00
Artur Souza 201dbc5344
Support remote endpoint. (#877)
* Support remote endpoint.

Signed-off-by: Artur Souza <asouza.pro@gmail.com>

* Use GRPC_ENDPOINT and HTTP_ENDPOINT in integration tests.

Signed-off-by: Artur Souza <asouza.pro@gmail.com>

* Fix happy path for waiting for sidecar test.

Signed-off-by: Artur Souza <asouza.pro@gmail.com>

---------

Signed-off-by: Artur Souza <asouza.pro@gmail.com>
Co-authored-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>
2023-06-18 23:34:09 -07:00
Artur Souza d34bcb8c5e
Upgrade the version to 1.10.0-SNAPSHOT (#874)
Signed-off-by: Artur Souza <asouza.pro@gmail.com>
2023-06-09 14:35:23 -07:00
Mukundan Sundararajan aaa5f7bc76
Convert Config API to Stable endpoints. (#846) 2023-05-09 10:46:54 -07:00
Artur Souza 135b109201
Test multiple reminder state types + improve timer tests. (#855)
Signed-off-by: Artur Souza <asouza.pro@gmail.com>
2023-05-05 07:32:16 -07:00
champel 7649ae44b0
Bump from reactor 2.3.5.RELEASE to 2.7.8 (#830)
* Bump from reactor 2.3.5.RELEASE to 2.7.8

Signed-off-by: Sergio <champel@gmail.com>

* Simplification

Signed-off-by: Sergio <champel@gmail.com>

---------

Signed-off-by: Sergio <champel@gmail.com>
2023-03-22 09:41:45 -07:00
champel 7d78d1880f
Inject autoconfiguration in the Spring Boot 3 style (#831)
* Bump from spring boot 2.3.5.RELEASE to 2.7.8

Signed-off-by: Sergio <champel@gmail.com>
(cherry picked from commit 9152c91bc1f08ecf2dd3bccf8159fd5d0500e351)

* Ensure old versions of spring boot are still compatible

Signed-off-by: Sergio <champel@gmail.com>

---------

Signed-off-by: champel <champel@gmail.com>
Signed-off-by: Sergio <champel@gmail.com>
2023-03-22 09:11:16 -07:00
Artur Souza 10d09619db
Upgrade the version to 1.9.0-SNAPSHOT (#829)
Signed-off-by: Artur Souza <asouza.pro@gmail.com>
2023-02-03 09:00:17 -08:00
Artur Souza 31a47f5521
Update springboot to latest minor.patch version. (#826) 2023-02-02 12:30:22 -08:00
Mukundan Sundararajan 81591b9f5b
initial bulk publish impl for java (#789)
* initial bulk publish impl for java

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

* add UTs and clean up java doc for new interface methods.

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

* add more interface methods for bulk publish

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

* adding examples and ITs for bulk publish

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

* addressing review comments

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

* use latest ref from dapr branch

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

* add example validation

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

* fix bindings example validation

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

* make changes for latest bulk publish dapr changes

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

* fix examples

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

* fix examples

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

* fix typo

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

* test against java 11 only

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

* change to latest dapr commit

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

* run only pubsub IT, upload failsafe reports as run artifact

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

* fix checkstyle

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

* fix IT report upload condition

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

* fix compile issues

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

* fix spotbugs issue

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

* run pubsubIT only

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

* change upload artifact name for IT

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

* fix tests

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

* fix

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

* introduce sleep

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

* test bulk publish with redis

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

* change longvalues test to kafka

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

* change bulk pub to kafka and revert long values changes

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

* remove kafka pubsub from pubsub IT

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

* change match order in examples

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

* set fail fast as false

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

* fix Internal Invoke exception in ITs

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

* address review comments

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

* fix IT

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

* fix app scopes in examples

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

* add content to daprdocs

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

* address review comments

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

* fix mm.py step comment

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

* reset bindings examples readme

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

* fix example, IT and make classes immutable

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>
Co-authored-by: Artur Souza <asouza.pro@gmail.com>
2023-01-19 12:57:06 -08:00
Shubham Sharma eb8565cca0
feat(pubsub): add bulk subscribe support (#791) 2023-01-18 17:58:03 -08:00
Artur Souza b83661d109
Update daprd, fix invoke it and improve binding it (#823)
* Use app health check in ITs to minimize flakiness.

Signed-off-by: Artur Souza <artursouza.ms@outlook.com>

* Fix DaprRun and update Dapr runtime ref.

Signed-off-by: Artur Souza <artursouza.ms@outlook.com>

* Add retry logic to tracing example's validation

Signed-off-by: Artur Souza <artursouza.ms@outlook.com>

* Printing validation steps.

Signed-off-by: Artur Souza <artursouza.ms@outlook.com>

* Change retry logic for tracing it

Signed-off-by: Artur Souza <artursouza.ms@outlook.com>

* Updare Dapr ref.

Signed-off-by: Artur Souza <artursouza.ms@outlook.com>

* Revert secret.json

Signed-off-by: Artur Souza <artursouza.ms@outlook.com>

* Add gRPC HealthCheck.

Signed-off-by: Artur Souza <artursouza.ms@outlook.com>

* Change expectations for invoke tests.

Signed-off-by: Artur Souza <artursouza.ms@outlook.com>

* Fix typo causing compilation error.

Signed-off-by: Artur Souza <asouza.pro@gmail.com>

* Update Dapr ref to latest master.

Signed-off-by: Artur Souza <asouza.pro@gmail.com>

* Fix binding and method invoke ITs.

Signed-off-by: Artur Souza <asouza.pro@gmail.com>

* Add wait time to reduce flakiness of ApiIT.

Signed-off-by: Artur Souza <asouza.pro@gmail.com>

* Re-enable health-check.

Signed-off-by: Artur Souza <asouza.pro@gmail.com>

* Remove AppHealth as it breaks actor ITs.

Signed-off-by: Artur Souza <artur.barbalho@outlook.com>

Signed-off-by: Artur Souza <artursouza.ms@outlook.com>
Signed-off-by: Artur Souza <asouza.pro@gmail.com>
Signed-off-by: Artur Souza <artur.barbalho@outlook.com>
2023-01-16 22:01:00 -08:00
Shubham Sharma 96259e49de
Fix App-IDs across examples and tests (#814)
* Update App IDs across examples and ITs

Signed-off-by: Shubham Sharma <shubhash@microsoft.com>

* Convert string to lower case

Signed-off-by: Shubham Sharma <shubhash@microsoft.com>

* Final

Signed-off-by: Shubham Sharma <shubhash@microsoft.com>

* re-trigger pipeline

Signed-off-by: Shubham Sharma <shubhash@microsoft.com>

* Update tracing IT

Signed-off-by: Shubham Sharma <shubhash@microsoft.com>

* re-trigger pipeline

Signed-off-by: Shubham Sharma <shubhash@microsoft.com>

* re-trigger pipeline

Signed-off-by: Shubham Sharma <shubhash@microsoft.com>

Signed-off-by: Shubham Sharma <shubhash@microsoft.com>
Co-authored-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>
2023-01-04 15:56:04 -08:00
Artur Souza a53f02d3d8
Upgrade the version to 1.8.0-SNAPSHOT (#796)
Signed-off-by: Artur Souza <artursouza.ms@outlook.com>

Signed-off-by: Artur Souza <artursouza.ms@outlook.com>
2022-11-06 21:16:47 -08:00
Pravin Pushkar 04e7298702
Config API : HTTP APIs and Unsubscribe gRPC API changes (#740)
* Config API : Unsubscribe config items changes

Signed-off-by: pravinpushkar <ppushkar@microsoft.com>

* Unit and integration tests changes

Signed-off-by: pravinpushkar <ppushkar@microsoft.com>

* Addressing review comments

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* GetConfiguration HTTP API impl

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* Subscribe and Unsubscribe HTTP changes

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* Subscribe config http changes

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* Http unsubscribe and unit tests

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* Integration tests for http config apis

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* Fixing lint

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* Chnaging rersponse of HTTP Unsubscribe API

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* Fix integration test failure

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* refactor IT tests

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* code clean up

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* setting dapr ref

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* Update readme

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* Modify Unit tests

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* Remove failing buggy tests

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* fix review commnets and integration tests

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* trigger pr check

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* Fix for getAll keys

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* Fix subscribe All

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* Move http subscribe handle to dapr controller

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* Simplified examples

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* change dapr ref, and add unit test

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* trigger pr checks

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* trigger pr checks

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* Use biConsumer to register handlers

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* Re use args contructors and re add final modifier

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* put dapr run back

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* fix nitpick

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* Remove the springboot HTTP "convenience".

Signed-off-by: Artur Souza <artursouza.ms@outlook.com>

Signed-off-by: pravinpushkar <ppushkar@microsoft.com>
Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>
Signed-off-by: Artur Souza <artursouza.ms@outlook.com>
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2022-09-29 20:37:46 -07:00
addjuarez 2cc9e536c8
Update sdk to use configuration dictionaries (#769)
* Update sdk to use configuration maps

Signed-off-by: addjuarez <addiajuarez@gmail.com>

* add ref

Signed-off-by: addjuarez <addiajuarez@gmail.com>

* add ref validate

Signed-off-by: addjuarez <addiajuarez@gmail.com>

* go 1.19

Signed-off-by: addjuarez <addiajuarez@gmail.com>

* fix it test

Signed-off-by: addjuarez <addiajuarez@gmail.com>

* update comments

Signed-off-by: addjuarez <addiajuarez@gmail.com>

* use immutable maps

Signed-off-by: addjuarez <addiajuarez@gmail.com>

Signed-off-by: addjuarez <addiajuarez@gmail.com>
2022-09-05 19:28:34 -07:00
Artur Souza 5b2d8f482d
Upgrade the version to 1.7.0-SNAPSHOT (#753)
Signed-off-by: Artur Souza <artursouza.ms@outlook.com>
2022-06-24 10:13:33 +05:30
Phil Kedy 2235e3d978
Adding pubsub routing support (#631)
* Adding pubsub routing support

Signed-off-by: Artur Souza <artursouza.ms@outlook.com>

* remove deprecated classes (#704)

* remove deprecated classes

Signed-off-by: Mukundan Sundararajan <msundar.ms@outlook.com>

* remove builder class ref in ITs

Signed-off-by: Mukundan Sundararajan <msundar.ms@outlook.com>

* fix setter in IT

Signed-off-by: Mukundan Sundararajan <msundar.ms@outlook.com>
Signed-off-by: Artur Souza <artursouza.ms@outlook.com>

* Address PR comments.

Signed-off-by: Artur Souza <artursouza.ms@outlook.com>

Co-authored-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2022-06-23 11:40:10 -07:00
Artur Souza 6ff58e9ee7
Fix integration tests on Windows. (#750)
Signed-off-by: Artur Souza <artursouza.ms@outlook.com>
2022-06-22 14:18:51 +05:30
www e2d4d1e1ea
replace vault to local (#719)
* replace vault to local

Signed-off-by: zjx244729 <zjx244729@alibaba-inc.com>

* change secret store name style

Signed-off-by: zjx244729 <zjx244729@alibaba-inc.com>

* delete vault token file

Signed-off-by: zjx244729 <zjx244729@alibaba-inc.com>

* remove vault int validate.yml

Signed-off-by: zjx244729 <zjx244729@alibaba-inc.com>

* fix it secret case

Signed-off-by: zjx244729 <zjx244729@alibaba-inc.com>

* replace vault to local

Signed-off-by: zjx244729 <zjx244729@alibaba-inc.com>

* change secret store name style

Signed-off-by: zjx244729 <zjx244729@alibaba-inc.com>

* delete vault token file

Signed-off-by: zjx244729 <zjx244729@alibaba-inc.com>

* remove vault int validate.yml

Signed-off-by: zjx244729 <zjx244729@alibaba-inc.com>

* fix it secret case

Signed-off-by: zjx244729 <zjx244729@alibaba-inc.com>

* fix it dead loop

Signed-off-by: zjx244729 <zjx244729@alibaba-inc.com>

Co-authored-by: zjx244729 <zjx244729@alibaba-inc.com>
Co-authored-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>
2022-05-05 13:55:13 +05:30
Artur Souza bb6db2ec6b
Upgrade the version to 1.6.0-SNAPSHOT (#727)
Signed-off-by: Artur Souza <artursouza.ms@outlook.com>
2022-03-31 22:11:32 -07:00
Mukundan Sundararajan 78a7312c75
Test long vals (#717)
* run IT test for long values

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

* Fix the class name

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

* assert for all messages and fix class name

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

* test for Long.MAX_VALUE

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

* revert back long number and print

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

* fix the typo

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

* update the latest dapr commit in workflow files

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

* log some more data to debug

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

* debug

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

* get the value from messages

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

* fix long values assert

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

* increasing TTL

Signed-off-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>

Co-authored-by: tanvigour <tanvi.gour@gmail.com>
Co-authored-by: tanvigour <60332928+tanvigour@users.noreply.github.com>
2022-03-31 21:36:16 -07:00
tanvigour 1ce67387b6
IT test for long values (#713)
* run IT test for long values

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

* Fix the class name

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

* assert for all messages and fix class name

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

* test for Long.MAX_VALUE

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

* revert back long number and print

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

* fix the typo

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

* update the latest dapr commit in workflow files

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

* log some more data to debug

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

* debug

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

* get the value from messages

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

* address feedback

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

* change the assertion

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

* Add hashcode and equals functione and create new obj while adding value to set

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

* move iterator

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

* log value before adding to hashset

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

* log value before adding to hashset

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

* log value before adding to hashset

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

* change assertion

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

* fix equals method

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

* adding debugging for expected value

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

* adding logs for expected value

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

* log value before adding to hashset

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

Co-authored-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>
2022-03-29 15:06:41 -07:00
Mukundan Sundararajan 436586292e
Add IntelliJ IT docs (#705)
* add intellij IT docs

Signed-off-by: Mukundan Sundararajan <msundar.ms@outlook.com>

* use wsl2

Signed-off-by: Mukundan Sundararajan <msundar.ms@outlook.com>
2022-03-21 20:59:39 -07:00
Mukundan Sundararajan 06d92dafca
Query State Preview API implementation. (#697)
* Query State Preview API implementation.

Signed-off-by: Mukundan Sundararajan <msundar.ms@outlook.com>

* Use latest dapr ref and fix grpc query state api

Signed-off-by: Mukundan Sundararajan <msundar.ms@outlook.com>

* fix service invocation automatic unesacpe

Signed-off-by: Mukundan Sundararajan <msundar.ms@outlook.com>

* add more unit tests

Signed-off-by: Mukundan Sundararajan <msundar.ms@outlook.com>

* Add query state API docs

Signed-off-by: Mukundan Sundararajan <msundar.ms@outlook.com>

* Fix example to be user friendly

Signed-off-by: Mukundan Sundararajan <msundar.ms@outlook.com>

* Fix example in docs

Signed-off-by: Mukundan Sundararajan <msundar.ms@outlook.com>

* make pagination immutable

Signed-off-by: Mukundan Sundararajan <msundar.ms@outlook.com>

Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2022-03-20 21:03:11 -07:00
Mukundan Sundararajan 0b881d3826
remove deprecated classes (#704)
* remove deprecated classes

Signed-off-by: Mukundan Sundararajan <msundar.ms@outlook.com>

* remove builder class ref in ITs

Signed-off-by: Mukundan Sundararajan <msundar.ms@outlook.com>

* fix setter in IT

Signed-off-by: Mukundan Sundararajan <msundar.ms@outlook.com>
2022-03-15 10:59:12 -07:00
Artur Souza 0c2fcb48a2
Update for next release: 1.5.0 snapshot (#672)
* Update CLI and runtime to 1.6.0-rc.x

Signed-off-by: Artur Souza <artursouza.ms@outlook.com>

* Upgrade the version to 1.5.0-SNAPSHOT

Signed-off-by: Artur Souza <artursouza.ms@outlook.com>
2022-01-18 12:28:35 +05:30
Pravin Pushkar 185cdba293
Config api support (#670)
* inital draft for config api

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* Introducing new client for preview apis and code refactoring

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* Unit tests and code refactoring

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* Adding integration test

Signed-off-by: pravinpushkar <ppushkar@microsoft.com>

* Copyright changes

Signed-off-by: pravinpushkar <ppushkar@microsoft.com>

* Review comments fixes

Signed-off-by: pravinpushkar <ppushkar@microsoft.com>

* Removed DaprPreviewClientProxy and updated example README

Signed-off-by: pravinpushkar <ppushkar@microsoft.com>

* Adding validate workflow for cofiguration api example

Signed-off-by: pravinpushkar <ppushkar@microsoft.com>

* fixing example autovalidation and code coverage

Signed-off-by: pravinpushkar <ppushkar@microsoft.com>

* Fixing autovalidation and removing getAllConfiguration

Signed-off-by: pravinpushkar <ppushkar@microsoft.com>

* Fixing review comments

Signed-off-by: pravinpushkar <ppushkar@microsoft.com>

* Add regex header checkstyle.

Signed-off-by: Artur Souza <artursouza.ms@outlook.com>

* Fix headers and add javadocs to some.

Signed-off-by: Artur Souza <artursouza.ms@outlook.com>

Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2022-01-12 16:01:13 -08:00
greenie-msft d37881b469
Update LICENSE to Apache 2.0 (#657)
* Update LICENSE to Apache 2.0

Signed-off-by: Artur Souza <artursouza.ms@outlook.com>

* Update headers to Apache 2.

Signed-off-by: Artur Souza <artursouza.ms@outlook.com>

Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2021-12-09 20:15:47 +05:30
Maarten Mulders be7edb17f6
Migrated out of JCenter as a Maven repository manager (#648)
* Upgrade okhttp-mock dependency

Version 1.3.2 was never deployed to Maven Central

* No longer refer to JCenter, as it has been shut down
2021-10-29 14:51:10 -07:00
Artur Souza 680915e832
Fix PubSubIT due to race in map. (#634) 2021-09-17 16:26:42 -07:00
Artur Souza ed1fac1f89
Upgrade the version to 1.4.0-SNAPSHOT (#632) 2021-09-15 22:03:12 -07:00
Maarten Mulders 3c3a5277d6
Add support for @PostMapping("/path") to pub/sub topic subscriptions (#583)
* Remove duplicate dependency

* Transform into managed dependencies

* Remove old JUnit version from dependencies

* Add tests for DaprBeanPostProcessor

* Also register PostMappings that use value

* Modify existing pub/sub test to no use @PostMapping(path="...")

* Remove added dependencies on AssertJ, Spring Test and Servlet API

* Remove test in favour of the sdk-tests one

Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2021-08-20 19:37:18 -07:00
Maarten Mulders ae5c2a1314
Declare CloudEvent generic to allow automatic payload deserialization using Jackson (#591)
* Declare CloudEvent generic

* Fix timestamp in logging

* Declare Spring Boot version once

* Simplify administration of received events

* Update docs

* Always return a list, even if it's empty

Rather than returning `null` when no
messages are present for a topic.
2021-08-13 13:52:37 -07:00
Bernd Verst 48b2d44aa7
Add support for configuring actor reminder storage partitions (#574)
* Update GRPC libraries for security updates

* AdConfigurable actor reminder storage patitions

* autoformat code

* Fix test and linter error

* more autoformatting

* competing style checker :(

Co-authored-by: Ubuntu <beverst@beverst-ubuntu.4gvshbv0hrpejbsei5kugsxnoc.xx.internal.cloudapp.net>
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2021-07-12 16:02:25 -07:00
Justin Rovang 0e5e3112de
Added SPEL evaluation against spring boot @Topic attributes (#556)
* [WIP] Added SPEL evaluation against spring boot @Topic name and pubsubname attributes

* [WIP] Updated SubscriberController to use SPEL in @Topic

* 554 - SPEL for @Topic attributes: Updated documentation and examples

* Updated documentation as discussed

* Update README.md

* Update SubscriberController.java

Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2021-06-17 22:48:45 -07:00
Artur Souza 5c05f3d9c7
Change Actor gRPC client to async. (#564) 2021-06-14 13:37:31 -07:00
halspang 2eb6e1d9e3
Upgrade the version to 1.2.0-SNAPSHOT (#549) 2021-05-19 22:01:28 -07:00
Artur Souza 33f793c186
Return empty metadata for key not found + add IT test. (#528) 2021-05-14 11:37:09 -07:00
halspang a654861def
Add shutdown API support (#530)
* Add shutdown API support

https://github.com/dapr/java-sdk/issues/529

* Utilize POST instead of GET for shutdown API
2021-04-07 11:42:00 -07:00
halspang bdf8e86b87
Add pause between stopping/starting runtime (#526)
ActorReminderRecoveryIT and ActorTimerRecoveryIT both rely
on reminders/timers being persisted when dapr restarts. On some
restarts, it appears that the placement service shares its placement
table during on ongoing update. This causes the dapr runtime to use
the wrong address for the actor.

https://github.com/dapr/java-sdk/issues/425
2021-04-05 09:29:09 -07:00
Artur Souza 589a352450
w3c tracing integration test (#522)
* w3c tracing integration test

* Addresses PR comments.
2021-03-23 14:30:34 -07:00
Artur Souza 45c81afa06
Upgrade the version to 1.1.0-SNAPSHOT (#494) 2021-02-16 18:14:23 -08:00
Artur Souza ce7ecb9965
Allows override of content-type in pubsub publish. (#492) 2021-02-16 00:03:08 -08:00
Artur Souza e46ef319cd
Support many query strings in HTTP and binary data in Cloud Event for PubSub. (#485)
* Handles base64 data from CloudEvent.

* Support for multiple query strings.

* Addressing comments.
2021-02-09 19:38:13 -08:00
Artur Souza 1b3077071f
Update license header. (#483) 2021-02-06 00:18:47 -08:00
Artur Souza 5147ad0202
Adds IT to confirm eTag is parsed correctly to/from runtime. (#475) 2021-02-02 20:21:21 -08:00
Artur Souza 1527d31640
Enhancing validation for ActorTurnBasedConcurrencyIT. (#474) 2021-02-02 14:39:19 -08:00
Artur Souza 5d7700b570
Refactor params for State class + Unit test example (#473)
* Refactor order of params for State class.

* Example for unit testing.

* Change toString() for State class.

* Add unittesting example to main README.

* Fix cmd for unittesting example.

* Add sleep to http inputing binding example validation.

* Fix unittesting example check.
2021-02-01 19:03:25 -08:00
Artur Souza 277f9958a6
Fix PubSub publish + Update IT to use RC3 bits. (#471)
* Update IT to use RC3 bits.

* Fixing publish method not to handle content-type metadata in GRPC.

* Fix flaky actor ITs.
2021-02-01 18:19:50 -08:00
Artur Souza ba496064d1
Removing OpenTelemetry and OpenCensus SDK. (#463) 2021-01-29 09:23:48 -08:00
Artur Souza 5d20a217a7 Fix IT to switch to GRPC service invocation. 2021-01-27 23:19:27 -08:00
Artur Souza 7eacfcc88f Fix error handling in http invoke.
ITs to validate invoke errors on http and grpc services.
Handle serialization of proto objects.
2021-01-27 22:22:22 -08:00
Artur Souza 6c26942dd5
Adds autoconfiguration for springboot apps. (#459)
* Adding Dapr Spring Boot Starter.

* Move Dapr Spring Boot Starter into existing sdk-springboot project.

Co-authored-by: Darren Wang <darren_wang@outlook.com>
2021-01-27 10:40:14 -08:00
Artur Souza c5b4cbd3f5
Add version to Components. (#455) 2021-01-25 22:14:19 -08:00
Artur Souza 907748f162 Adding GetBulkSecret API. 2021-01-25 12:21:46 -08:00
Artur Souza 57345ebf3e
Use DaprChannel instead of closeable ActorProxyBuilder. (#451)
* Use DaprChannel instead of closeable ActorProxyBuilder.

* Refactor Actor channel into DaprChannel and out of ActorProxyBuilder.

* Rename DaprChannel to ActorClient and make it a DaprClient.

* Make ActorClient not implement DaprClient but implement same method.

* Update sdk-actors/src/main/java/io/dapr/actors/client/ActorProxyBuilder.java

Co-authored-by: Mukundan Sundararajan <musundar@microsoft.com>

* Update sdk-actors/src/test/java/io/dapr/actors/client/ActorProxyBuilderTest.java

Co-authored-by: Mukundan Sundararajan <musundar@microsoft.com>

* Rename ActorProxyForTestsImpl to ActorProxyImplForTests

Co-authored-by: Mukundan Sundararajan <musundar@microsoft.com>
2021-01-25 12:04:58 -08:00
Artur Souza befed4a01b
Makes service method API invocations over HTTP by default. (#450)
* Makes service method API invocations over HTTP by default.

* Add logic to avoid building managedchannel in case of http API for actor runtime.
2021-01-23 12:12:34 -08:00
Artur Souza 81b47f85b3
Makes http call async and allows timeout in Mono. (#445) 2021-01-21 15:23:24 -08:00
Artur Souza 446cd17e18
Support ActorMethod to change method's name. (#448) 2021-01-19 23:34:14 -08:00
Artur Souza d43272fdc6
Rename InvokeServiceRequest to InvokeMethodRequest. (#443)
* Rename InvokeServiceRequest to InvokeMethodRequest.

* Organize imports.
2021-01-15 04:51:48 -08:00
Artur Souza 019dee9a8b
Fix handling of metadata, headers. Removes etag from getState. (#440)
* Fix handling of metadata, headers. Removes etag from getState().

* Update CLI and runtime.

* Fix ITs.
2021-01-14 15:01:22 -08:00
Artur Souza 1a6675add8
Support TTL in PubSub. Fixes + refactor of CloudEvent. Fix handling content-type in PubSub over GRPC (#431) 2020-12-30 13:37:15 -08:00
kerr 3b51b5b6c4
Rename ActorProxy invoke to invokeMethod. (#420)
Co-authored-by: Mukundan Sundararajan <musundar@microsoft.com>
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2020-12-18 14:41:16 -08:00
Arghya Sadhu a35e41480e
set etag to be null if it's empty (#414)
Signed-off-by: Arghya Sadhu <arghya88@gmail.com>
2020-12-18 12:13:46 -08:00
Arghya Sadhu 11d9e3b0b8
Rename methods and parameters for consistency across SDKs (#410)
Signed-off-by: Arghya Sadhu <arghya88@gmail.com>
2020-12-16 00:06:54 -08:00
Artur Souza de4c37e3a5
Upgrade the version to 1.0.0-SNAPSHOT (#413) 2020-12-15 23:34:20 -08:00
Artur Souza 85bdb24fa9
IT for failover actor reminder. (#411)
* IT for failover actor reminder.

* Refactoring for actor tests.
2020-12-11 15:28:55 -08:00
Artur Souza 3f51e29dde
Fix actor sample + remove HTTP reference in docs and code. (#407)
* Fix actor sample + remove HTTP reference in docs and code.

* Fix logging for IT.
2020-12-11 13:54:23 -08:00
Artur Souza f871b1f51f
IT for recovering reminder after sidecar restart. (#406) 2020-12-09 21:40:08 -08:00
Artur Souza adce91f743
Throw DaprException consistently + doc + example. (#403) 2020-12-08 15:58:07 -08:00
Artur Souza cf1c10d85a
Actor over GRPC. (#395) 2020-11-24 15:23:35 -08:00
Artur Souza a5c9bf73ba
Upgrade the version to 0.11.0-SNAPSHOT (#390) 2020-11-16 12:34:44 -08:00
Artur Souza c466e211f1
Fix build due to deprecated maven repo, using jcenter now. (#392) 2020-11-16 12:01:53 -08:00
Artur Souza 43107c3492
Update cli and runtime ITs to 1.0.0-rc.1 (#387)
* Fix ITs due to change in logs in daprd.

* Update to 1.0.0-rc.1 runtime and cli.
2020-11-12 15:32:23 -08:00
Artur Souza 2bafc05e4c
Updating proto, daprd and cli + fix ITs for v1.0.0 Milestone 1. (#384)
* Updating proto, daprd and cli prior to v1.0.0 Milestone 1.

* Fixes integration tests.
2020-11-10 09:29:39 -08:00
Mukundan Sundararajan 97eacf9598
update open telemetry lib version 0.7.1 (#380)
* update readme with secrets example link

* Update opentelemetry to 0.7.1, change repo id for sping

Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2020-11-09 21:52:36 -08:00
Mukundan Sundararajan 751ea2168c
upgrade dependency versions (#378) 2020-11-04 16:22:39 -08:00
dependabot[bot] f911756444
Bump junit from 4.12 to 4.13.1 in /sdk-tests (#359)
Bumps [junit](https://github.com/junit-team/junit4) from 4.12 to 4.13.1.
- [Release notes](https://github.com/junit-team/junit4/releases)
- [Changelog](https://github.com/junit-team/junit4/blob/main/doc/ReleaseNotes4.12.md)
- [Commits](https://github.com/junit-team/junit4/compare/r4.12...r4.13.1)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2020-10-16 15:38:18 -07:00
Artur Souza 76c848bb6f
Fixes timer invocation after app restarts. (#363) 2020-10-16 14:29:31 -07:00
Artur Souza 9076d9f60e
Fix save bytes (#353)
* IT for save byte error in actor state.

* Update proto version.

* Fixes bug on read/write byte[] in actor state.

* Addresses comments round 1.
2020-10-08 15:55:14 -07:00
Artur Souza 7f261be7ed
Upgrade the version to 0.10.0-SNAPSHOT (#345) 2020-09-28 11:15:38 -07:00
Mukundan Sundararajan 75efc3a633
Fix port collision in java ITs (#342) 2020-09-22 10:18:37 -07:00
Mukundan Sundararajan f6b56bb376
Initial transaction API changes (#337)
* Initial transaction API changes

* Add more unit tests

* Refactor IT
2020-09-16 14:00:57 -07:00
Artur Souza baab109202
Bulk get state (#335)
* unfinished work

* Working version of Bulk get state API.

Co-authored-by: Haishi2016 <hbai@microsoft.com>
2020-09-16 11:29:01 -07:00
Artur Souza fe027d0c54
Refactoring properties and constants. (#333) 2020-09-02 11:54:12 -07:00
Artur Souza eede480403
Support W3C tracing + example. (#320) 2020-08-25 11:20:33 -07:00
Artur Souza 811728133d
Remove EmptyService and use dapr run -- instead. (#321) 2020-08-24 08:44:02 -07:00
Charlie Stanley d72e4cc49b Upgrade the version to 0.9.0-SNAPSHOT 2020-08-19 13:38:16 -07:00
Charlie Stanley 63f591e877 Add support for multi-pubsub (#309) 2020-08-18 18:20:17 -07:00
Pruthvidhar R Dhodda bc4c5e1cee
Replace deprecated cli options with new ones (#318)
* Replace deprecated cli options with new ones

* Change DAPR_CLI_REF in build.yaml

* Change DAPR_REF in build.yaml

* Revert "Change DAPR_CLI_REF in build.yaml"

This reverts commit 7d9621f3aa.
2020-08-10 17:51:07 -07:00
Artur Souza 56927daedd
Removing RetryPolicy for state API. (#315) 2020-07-30 14:13:41 -07:00
Mukundan Sundararajan 14fded8d18
Make DaprClient Closeable and properly close GRPC Managed Channel (#311) 2020-07-30 13:34:04 -07:00
Mukundan Sundararajan a388a6a90f
Upgrade the version to 0.8.0-SNAPSHOT (#314) 2020-07-30 12:00:53 -07:00
Mukundan Sundararajan 55b0e3a1e5
Change Service Invocation API. Fix metadata bug. (#312)
* Change Service Invocation API

* Address review comments
2020-07-30 10:44:25 -07:00