Commit Graph

121 Commits

Author SHA1 Message Date
Marcos Reyes de1ab57b6c Adding documentation for examples (#153) 2020-01-24 12:36:49 -08:00
Juan Jose Herrera 4ba8f4e8d1 Add E2E testing for bindings (#148)
* Add GRP State Integration Test

* Explain ignored test cases for GRPC

* Explain ignored test cases for GRPC

* Update DaprClientTestBuilder.java

* Add binding E2E testing.

* Add fix binding E2E testing after merge with new changes

* Remove example comments

Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2020-01-24 11:59:05 -08:00
Artur Souza 1171c6cc4f
Update debug instructions since LB is not needed. (#150) 2020-01-24 11:40:20 -08:00
Artur Souza 9077e8e83a
Adding checkstyle + fix style in sdk-actos. (#146) 2020-01-24 11:32:56 -08:00
mestizoLopez 57d0aff93a Adding more unit test to reach 80% Coverage (#149) 2020-01-24 10:48:12 -08:00
Andres Robles 614deb61bc Actor Activation / Deactivation Integartion Test (#144)
* Adding common setup for starting dapr applications in Integration Tests.
Adding integration test for Actor Activation and Reactivation.

* Changing the way parameters are sent to the application running under Dapr in ITs to fix issue found in Ubuntu about wrong parsing.
Moving logic of the ActivationClient into the IT class

* Fixing compilation issues in test due to rebase from upstream.

* Addressing PR comments
2020-01-23 17:48:42 -08:00
Juan Jose Herrera 172859bc82 Add gRPC State Integration Test (#138)
* Add GRP State Integration Test

* Explain ignored test cases for GRPC

* Explain ignored test cases for GRPC

* Update DaprClientTestBuilder.java

Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2020-01-23 13:12:16 -08:00
Artur Souza 103b407aeb
Separate serializer for state. (#135) 2020-01-23 11:39:23 -08:00
Young Bu Park d5506f38b6
Install local test kafka before running build and tests (#142)
* local test kafka docker-compose yaml

* add kafka install step
2020-01-22 13:50:39 -08:00
Leon Mai a6fa6b10f1 Missing block (#140) 2020-01-21 22:11:44 -08:00
Artur Souza 0f008b43d8 Fix bug in Actor due to timer serialization. (#139) 2020-01-21 21:36:24 -08:00
Leon Mai a99e8adc8f Fix arg parsing problem -Dexec.args= seems to not allow hyphens inside (#136) 2020-01-21 14:08:37 -08:00
Artur Souza c5f040fb49
Addresses multiple items from design review (#124)
* Use byte[] for customer data and serialized data.
Fixes for actor demo.

* Simplifying ObjectSerializer + handling CloudEvent properly.

* Split DaprClient into 3 parts to hide actor APIs.

* Remove Actor "dummy" interface.

* Supports custom serializer.

* Change seriaizer to receive Object directly.

* Handling custom serialization in State APIs + enhancements to the state APIs.

* Addressing small comment on Mono chain in ActorManager.

* Make serializer mandatory, throwing exception when null.
2020-01-21 11:35:08 -08:00
Juan Jose Herrera 1725247761 Fix IT issues, to run the integration test rember to add the parameter skipITs=false (#131) 2020-01-20 19:12:07 -08:00
Juan Jose Herrera 1fd8d54e12 Refactor StateOptions and add IT consistency testing (#110)
* Renaming State domain object.
Removing duplicate use of State Options.
Adding custom serialize and deserialize classes for StateOptions objects.

* #26 Refractor StateOptions to clean unused code

* Fixing merge issues.

* #26 Add integration test for states using Retry policies

Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2020-01-20 12:32:13 -08:00
Artur Souza 47918cc009
Resolving conflict for PR #110 (#130)
* Renaming State domain object.
Removing duplicate use of State Options.
Adding custom serialize and deserialize classes for StateOptions objects.

* #26 Refractor StateOptions to clean unused code

* Fixing merge issues.

* Fixing unit test for DaprClientHttpAdapterTest after refactoring.

Co-authored-by: Juan Jose Herrera <35985447+JuanJose-Herrera@users.noreply.github.com>
2020-01-20 11:34:54 -08:00
Leon Mai 449ae611dd mvn integration-test doesn't work w/o this plugin (#122) 2020-01-17 19:54:57 -08:00
Artur Souza 00251b7e31 Moving io.dapr.runtime to test + fixing examples accordingly. (#121) 2020-01-17 17:14:16 -08:00
Leon Mai 04ee301371 Unit tests for actors, no state. (#117)
* actor unit tests, no state

clean up a bit

* Rename class

* Fix merge

Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2020-01-17 15:14:05 -08:00
Leon Mai 8d91f9b22c Fix sample (#119)
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2020-01-17 15:07:47 -08:00
Young Bu Park 848ab95763
Release SNAPSHOT pkg for every build (#118)
* Release SNAPSHOT build every build

* fix
2020-01-17 14:26:05 -08:00
Artur Souza 19f75763be
Removing springboot jar and adding some unit tests for ActorRuntime. (#114) 2020-01-17 13:52:04 -08:00
mestizoLopez bcf653bc5e Creating unit tests for HttpAdapter + Adding junit 5 dependency + Reformating code (#112)
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2020-01-17 09:27:06 -08:00
Young Bu Park 8bb452f66a
[CD] Conditional SNAPSHOT and final release (#115)
* Release pkg based on tag and branch

* Update build.yml

* Update build.yml
2020-01-16 19:47:11 -08:00
Young Bu Park ed1e91a575 Fix GPG plugin 2020-01-16 16:49:51 -08:00
Young Bu Park 7374cf0138
[CD] Fix gpg private key import (#113)
* fix gpg key import process

* add GPG_TTY env setting

* revert

* rename dapr-sdk to dapr-actors

* fix
2020-01-16 16:23:57 -08:00
Young Bu Park da7bd2940f
Disable GPG sign by default (#111) 2020-01-16 14:44:34 -08:00
Andres Robles c67d5678d0 Fixing bug, where call should be deferred instead of async (#102)
* Fixing bug, where call should be deferred instead of async

* Removing unused pool property
Returning null as response body if empty response is found.
Adding Test case for validating callback is executed when expected.

* Fixing assertion based on previous changes

* Adding test case to verify that the call to grpc only happens when the requestor block the thread, instead of in parallel immediately after calling the methods in the adapter.
Documenting complex test case

* Fixing merge conflicts

* Documenting complex test case
2020-01-16 14:34:39 -08:00
Leon Mai 0fed4fe76e deactivate should not call save (#108)
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2020-01-16 11:24:46 -08:00
Young Bu Park df99cc7345 Deploy Jar packages to Nexus via CI (#106)
* Add SNAPSHOT suffix to version

* set deployment setup

* add ossrh  repostiory

* OSSRH setting

* add deployment steps

* exclude examples jar

* remove condition

* exclude spring boot pkg

Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2020-01-16 11:06:42 -08:00
Andres Robles acd28bb189 Receiving the StateOptions on save as part of the State, to comply with the DAPR API (#105)
* Receiving the StateOptions on save as part of the State, to comply with the DAPR API

* #26 Add integration test for Concurrency funtionality in the states module

Co-authored-by: Juan Jose Herrera <35985447+JuanJose-Herrera@users.noreply.github.com>
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2020-01-16 10:57:12 -08:00
Artur Souza 4c68286aa5
Unit tests for stateful actors + fixes. (#104) 2020-01-16 10:47:06 -08:00
mestizoLopez 192b37e4c0 Fixing and finishing unit tests (#97)
* Fixing and finishing unit tests

* Fixing styling Issues and adding new test
2020-01-15 10:53:25 -08:00
Juan Jose Herrera a0250fd002 #26 Integretion Testing Initial Example (#74)
* #26 Add Hello World Integration Testing working on Windows, need work to work on MAC and Linux

* #26 Add new Integration Test to test DAPR state functionality

* #26 Add Hello World Integration Testing working on Windows, need work to work on MAC and Linux

* Update Integration Testing getting free ports automatically

* #26 Refractor to use a base class for all the integration tests

* #26 Make StateOptions as optional in order to not throw a null pointer exception

* #26 Remove empty lines and correct the ident

* Adding license to DaprIntegrationTestingRunner

Co-authored-by: Young Bu Park <youngp@microsoft.com>
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2020-01-13 17:59:27 -08:00
Young Bu Park e6dbde5182
Upload jacoco test coverage report to artifact storage (#95)
* set jacoco report output dir

* upload test report

* add dapr version info
2020-01-13 17:52:13 -08:00
Andres Robles 59762ab819 Increasing test coverage for DaprClientGrpcAdapter (#94) 2020-01-13 17:14:51 -08:00
Artur Souza 80ed8bf0c1
Fixing DaprHttp and its tests. (#93) 2020-01-13 16:40:34 -08:00
Young Bu Park 880cd92515 Merge branch 'master' into java_sdk_wip 2020-01-13 16:30:05 -08:00
Young Bu Park b63fa48954
Initial commit of GitHub Actions CI (#91)
* Initial commit of gh actions yaml

* Add dapr runtime install

* show dapr install version

* add java_sdk_wip branch for pr build
2020-01-13 16:22:12 -08:00
Andres Robles c56b08913b Addressing comments regarding where to build the query parameters forthe HTTP Client calls. (#84)
* Addressing comments regarding where to build the query parameters for the HTTP Client calls.

* Making map immutable while also preventing a NPE
2020-01-13 10:46:57 -08:00
Andres Robles 9703dabaae Unit testing + bug fixing in GRPC Adapter (#79)
* Adding mockito plugin to be able to mock final classes
Increasing test coverage for ObjectSerializer
Fixing bug in GRPC Adapter while creating the envelopes, found during unit testing.

* First step into returning Http Headers as part of the response for the DaprClientHttpAdapter
Updating State object to match the API.
Fixing Broken Unit Tests and increasing coverage for DaprClientGrpcAdapter

* Adding documentation, fixing typos and renaming support method to be more descriptive.

* Addressing PR comments
Increasing test coverage
Fixing Merge conflicts

* Addressing PR comments
2020-01-13 08:01:45 -08:00
Artur Souza 6953bc49d1
Spliting Actor client and runtime into a separate jar. (#83) 2020-01-11 10:13:29 -08:00
Leon Mai 018a79530b Fix bindings + add samples (#81)
* Fix binding and add samples

* Fix sample command line

* update comment for name change

* lowercase d matches runtime, though it looks like it is case insensitive
2020-01-10 17:07:40 -08:00
Leon Mai a7ad026e01 pubsub sample needs update for listener interface (#80) 2020-01-10 16:40:38 -08:00
mestizoLopez 44a2806659 Java sdk wip (#77)
* Fixing issue regarding GET and DELETE method

* Adding unit test for DaprHttp.java

* Adding test scope

* Renaming a property and fixing conflict to merge.

Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2020-01-10 14:52:21 -08:00
Artur Souza 9dd89da7e1
Invoke service + unit tests. (#78) 2020-01-10 14:46:57 -08:00
Artur Souza d9c60441fd
Unit tests for PubSub + JavaDocs. (#75) 2020-01-09 15:47:22 -08:00
mestizoLopez eb7d1b62cf Fixing issue regarding GET and DELETE method (#76) 2020-01-09 12:52:20 -08:00
Artur Souza 858f28a34b
PubSub + related fixes. (#71) 2020-01-08 12:08:29 -08:00
Andres Robles 5e3dc74003 Refactoring HTTP Client and creating Client HTTP Adapter (#68)
* Refactoring HTTP Client to follow same pattern as the GRPC Client.
Creating DaprClientHttpAdapter to be exposed to the users.
Refactor all uses of the http Client to use the adapter instead following composition rather than inheritance.
Dealing with conflicts

* Renaming AppToDaprHttpAsync to AppToDaprHttpAsyncClient changed previously by mistake

* Refactor Adapters to centralize all generic and actor specific functionality in the same place, having a single entry point for all communications to DAPR.
Leaving GRPC Adapter implemented, but without the possibility to create an instance of it.
Fixing Test cases

* Addressing PR comments
2020-01-07 20:08:55 -08:00