Skip to content

Adding DaprSpringBootTest and DaprSidecarContainer annotation for easier ITs authoring#1610

Merged
dapr-bot merged 6 commits into
dapr:masterfrom
artur-ciocanu:random-port-junit
Jan 6, 2026
Merged

Adding DaprSpringBootTest and DaprSidecarContainer annotation for easier ITs authoring#1610
dapr-bot merged 6 commits into
dapr:masterfrom
artur-ciocanu:random-port-junit

Conversation

@artur-ciocanu

@artur-ciocanu artur-ciocanu commented Dec 24, 2025

Copy link
Copy Markdown
Contributor

Description

This PR adds two major improvements:

  • DaprSpringBootTest that hides a lot of complexity related to SpringBootTest and Testcontainers
  • DaprSidecarContainer that takes care of adding all the nitty gritty details for Dapr container and Spring Boot

Currently only a single IT has been migrated to showcase how things are looking.

Issue reference

We strive to have all PR being opened based on an issue, where the problem or feature have been discussed prior to implementation.

Please reference the issue this PR will close: N/A

Checklist

Please make sure you've completed the relevant tasks for this PR, out of the following list:

  • Code compiles correctly
  • Created/updated tests
  • Extended the documentation

@artur-ciocanu
artur-ciocanu requested review from a team as code owners December 24, 2025 07:37
@artur-ciocanu

Copy link
Copy Markdown
Contributor Author

@dapr/maintainers-java-sdk and @dapr/approvers-java-sdk could you please take a look. I think this is a really important improvement for ITs and Testcontainers integration.

@salaboy and @javier-aliaga could you please take a look. Thank you.

@salaboy

salaboy commented Dec 24, 2025

Copy link
Copy Markdown
Contributor

@artur-ciocanu great stuff.. as always..
The main reason why I didn't do something like this before is because I think, with this we push Spring Users to learn Dapr specific stuff.. I always thought by exposing the DaprContainer as a single entry point that you can define as you define PostgreSQLContainer or RedisContainer will make Dapr easier to consume without learning a lot of stuff.

I am not saying that these improvements are not good. I am just worried on going too deep into simplifications where it looks odd for spring users. For example @DaprSpringBootTest(classes = {TestActorsApplication.class, TestDaprActorsConfiguration.class}) this doesn't look friendly in my opinion.. I wonder if we can just use the normal annotation but do more magic behind the scenes if the Dapr dependencies are in the classpath, instead of pushing the user to think in terms of @DaprSpringBootTests.. as they already have @SpringBootTests in their applications.
Now if this annotation @DaprSpringBootTests is for our internal tests, we need to make sure that this doesn't leak to the users as prefered way to write their tests.

@artur-ciocanu

Copy link
Copy Markdown
Contributor Author

@artur-ciocanu great stuff.. as always.. The main reason why I didn't do something like this before is because I think, with this we push Spring Users to learn Dapr specific stuff.. I always thought by exposing the DaprContainer as a single entry point that you can define as you define PostgreSQLContainer or RedisContainer will make Dapr easier to consume without learning a lot of stuff.

I am not saying that these improvements are not good. I am just worried on going too deep into simplifications where it looks odd for spring users. For example @DaprSpringBootTest(classes = {TestActorsApplication.class, TestDaprActorsConfiguration.class}) this doesn't look friendly in my opinion.. I wonder if we can just use the normal annotation but do more magic behind the scenes if the Dapr dependencies are in the classpath, instead of pushing the user to think in terms of @DaprSpringBootTests.. as they already have @SpringBootTests in their applications. Now if this annotation @DaprSpringBootTests is for our internal tests, we need to make sure that this doesn't leak to the users as prefered way to write their tests.

@salaboy your suggestion is that we do not try to compose annotations, so we do not confuse SpringBoot users. I get your point.

I wanted to make sure that we can simplify some of this random port and sidecar dependency, but I guess since we want it just for us we can push it to it as a helper, outside of the Dapr Testconainer module, what do you think?

@salaboy

salaboy commented Dec 24, 2025

Copy link
Copy Markdown
Contributor

Yeah so let's split what the end user will use to create end user tests and the functionality that we want to have for our own tests to make them easier

@artur-ciocanu

Copy link
Copy Markdown
Contributor Author

@salaboy the helper annotations and classes have been moved to "sdk-tests" module, now these should not conflict with "testcontainers-dapr" module.

Let me know your thoughts.

Comment thread sdk-tests/src/test/java/io/dapr/testcontainers/spring/DaprSpringBootTest.java Outdated
@artur-ciocanu

artur-ciocanu commented Jan 5, 2026

Copy link
Copy Markdown
Contributor Author

@salaboy I have moved all the helper classes to internal, so it is easier to signal that these are internal classes that end users should not use.

@siri-varma and @javier-aliaga let me know your thoughts. Once this is merged I will open PRs to move other ITs to use this new approach.

@artur-ciocanu
artur-ciocanu requested review from a team and salaboy January 5, 2026 19:00

@cicoyle cicoyle left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm 🎉

@dapr-bot
dapr-bot merged commit 8f11972 into dapr:master Jan 6, 2026
15 of 16 checks passed
@codecov

codecov Bot commented Jan 6, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 78.90%. Comparing base (d759c53) to head (17ec3e9).
⚠️ Report is 248 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #1610      +/-   ##
============================================
+ Coverage     76.91%   78.90%   +1.98%     
- Complexity     1592     2074     +482     
============================================
  Files           145      227      +82     
  Lines          4843     6256    +1413     
  Branches        562      684     +122     
============================================
+ Hits           3725     4936    +1211     
- Misses          821      972     +151     
- Partials        297      348      +51     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

salaboy pushed a commit to salaboy/java-sdk that referenced this pull request Jan 7, 2026
…ier ITs authoring (dapr#1610)

* Adding DaprSpringBootTest and DaprSidecarContainer annotation for easier IT authoring.

Signed-off-by: Artur Ciocanu <[email protected]>

# Conflicts:
#	testcontainers-dapr/pom.xml

* Adding DaprSpringBootTest and DaprSidecarContainer annotation for easier IT authoring.

Signed-off-by: Artur Ciocanu <[email protected]>

* Move all the helper Dapr SpringBoot annotations to tests, to avoid exposing it as public API

Signed-off-by: Artur Ciocanu <[email protected]>

* Fix a few issues related to Dapr container usage in ITs.

Signed-off-by: Artur Ciocanu <[email protected]>

* Addressing code review comments to ensure things are internal.

Signed-off-by: Artur Ciocanu <[email protected]>

---------

Signed-off-by: Artur Ciocanu <[email protected]>
Co-authored-by: Cassie Coyle <[email protected]>
Signed-off-by: salaboy <[email protected]>
salaboy pushed a commit to salaboy/java-sdk that referenced this pull request Jan 7, 2026
…ier ITs authoring (dapr#1610)

* Adding DaprSpringBootTest and DaprSidecarContainer annotation for easier IT authoring.

Signed-off-by: Artur Ciocanu <[email protected]>

# Conflicts:
#	testcontainers-dapr/pom.xml

* Adding DaprSpringBootTest and DaprSidecarContainer annotation for easier IT authoring.

Signed-off-by: Artur Ciocanu <[email protected]>

* Move all the helper Dapr SpringBoot annotations to tests, to avoid exposing it as public API

Signed-off-by: Artur Ciocanu <[email protected]>

* Fix a few issues related to Dapr container usage in ITs.

Signed-off-by: Artur Ciocanu <[email protected]>

* Addressing code review comments to ensure things are internal.

Signed-off-by: Artur Ciocanu <[email protected]>

---------

Signed-off-by: Artur Ciocanu <[email protected]>
Co-authored-by: Cassie Coyle <[email protected]>
Signed-off-by: salaboy <[email protected]>
salaboy pushed a commit to salaboy/java-sdk that referenced this pull request Jan 7, 2026
…ier ITs authoring (dapr#1610)

* Adding DaprSpringBootTest and DaprSidecarContainer annotation for easier IT authoring.

Signed-off-by: Artur Ciocanu <[email protected]>

# Conflicts:
#	testcontainers-dapr/pom.xml

* Adding DaprSpringBootTest and DaprSidecarContainer annotation for easier IT authoring.

Signed-off-by: Artur Ciocanu <[email protected]>

* Move all the helper Dapr SpringBoot annotations to tests, to avoid exposing it as public API

Signed-off-by: Artur Ciocanu <[email protected]>

* Fix a few issues related to Dapr container usage in ITs.

Signed-off-by: Artur Ciocanu <[email protected]>

* Addressing code review comments to ensure things are internal.

Signed-off-by: Artur Ciocanu <[email protected]>

---------

Signed-off-by: Artur Ciocanu <[email protected]>
Co-authored-by: Cassie Coyle <[email protected]>
Signed-off-by: salaboy <[email protected]>
salaboy pushed a commit to salaboy/java-sdk that referenced this pull request Jan 7, 2026
…ier ITs authoring (dapr#1610)

* Adding DaprSpringBootTest and DaprSidecarContainer annotation for easier IT authoring.

Signed-off-by: Artur Ciocanu <[email protected]>

# Conflicts:
#	testcontainers-dapr/pom.xml

* Adding DaprSpringBootTest and DaprSidecarContainer annotation for easier IT authoring.

Signed-off-by: Artur Ciocanu <[email protected]>

* Move all the helper Dapr SpringBoot annotations to tests, to avoid exposing it as public API

Signed-off-by: Artur Ciocanu <[email protected]>

* Fix a few issues related to Dapr container usage in ITs.

Signed-off-by: Artur Ciocanu <[email protected]>

* Addressing code review comments to ensure things are internal.

Signed-off-by: Artur Ciocanu <[email protected]>

---------

Signed-off-by: Artur Ciocanu <[email protected]>
Co-authored-by: Cassie Coyle <[email protected]>
Signed-off-by: salaboy <[email protected]>
@nelson-parente nelson-parente added this to the v1.17 milestone Jan 13, 2026
salaboy added a commit that referenced this pull request Jan 28, 2026
* initial workflow dashboard config

Signed-off-by: salaboy <[email protected]>

* adding test for dashboard container

Signed-off-by: salaboy <[email protected]>

* adding URL to output

Signed-off-by: salaboy <[email protected]>

* Adding a Flux based subscribeToEvents method (#1598)

* Adding a Flux based subscribeToEvents method

Signed-off-by: Artur Ciocanu <[email protected]>

* Simplify GRPC stream handling

Signed-off-by: Artur Ciocanu <[email protected]>

* Simplify Javadoc

Signed-off-by: Artur Ciocanu <[email protected]>

* Fix unit tests and simplify implementation

Signed-off-by: Artur Ciocanu <[email protected]>

* Adding event subscriber stream observer to simplify subscription logic

Signed-off-by: Artur Ciocanu <[email protected]>

* Use start() method to start stream subscription

Signed-off-by: Artur Ciocanu <[email protected]>

* Add unit test for event suscriber observer

Signed-off-by: Artur Ciocanu <[email protected]>

* Improve the tests a little bit

Signed-off-by: Artur Ciocanu <[email protected]>

* Remove the unnecessary method

Signed-off-by: Artur Ciocanu <[email protected]>

* Improve error handling and use CloudEvent wrapper

Signed-off-by: Artur Ciocanu <[email protected]>

* Fix unit tests asserts

Signed-off-by: Artur Ciocanu <[email protected]>

* Adjust Java examples for Subscriber

Signed-off-by: Artur Ciocanu <[email protected]>

---------

Signed-off-by: Artur Ciocanu <[email protected]>
Signed-off-by: salaboy <[email protected]>

* fixing configure()

Signed-off-by: salaboy <[email protected]>

* Remove SDK docs due to migration to main Docs repo (#1593)

* Remove SDK docs due to migration to main Docs repo

Signed-off-by: Marc Duiker <[email protected]>

* Remove sed lines related to sdk docs

Signed-off-by: Marc Duiker <[email protected]>

---------

Signed-off-by: Marc Duiker <[email protected]>
Co-authored-by: salaboy <[email protected]>
Signed-off-by: salaboy <[email protected]>

* fixing headers

Signed-off-by: salaboy <[email protected]>

* codecov token and new image

Signed-off-by: salaboy <[email protected]>

* Update testcontainers-dapr/src/main/java/io/dapr/testcontainers/WorkflowDashboardContainer.java

Co-authored-by: Joe Bowbeer <[email protected]>
Signed-off-by: salaboy <[email protected]>

* Update testcontainers-dapr/src/main/java/io/dapr/testcontainers/WorkflowDashboardContainer.java

Co-authored-by: Joe Bowbeer <[email protected]>
Signed-off-by: salaboy <[email protected]>

* Bringing Durable Task Java as a Maven module inside the Java SDK (#1575)

* fixing checkstyle and javadocs

Signed-off-by: salaboy <[email protected]>

* Replace openjdk:17-jdk-slim to eclipse-temurin:17-jdk-jammy (#1574)

Signed-off-by: Matheus Cruz <[email protected]>
Signed-off-by: salaboy <[email protected]>

* Align Java API with other languages (#1560)

* Align Java API with other languages

Signed-off-by: Matheus Cruz <[email protected]>

* Update documentation

Signed-off-by: Matheus Cruz <[email protected]>

* Change return type of waitForWorkflowStart method

Signed-off-by: artur-ciocanu <[email protected]>

---------

Signed-off-by: Matheus Cruz <[email protected]>
Signed-off-by: artur-ciocanu <[email protected]>
Co-authored-by: artur-ciocanu <[email protected]>
Signed-off-by: salaboy <[email protected]>

* use built in durable task

Signed-off-by: salaboy <[email protected]>

* exclude jacoco rules for examples and durabletask-client

Signed-off-by: salaboy <[email protected]>

* increasing timeout for IT

Signed-off-by: salaboy <[email protected]>

* removing dt build from matrix

Signed-off-by: salaboy <[email protected]>

* adding java to dt build

Signed-off-by: salaboy <[email protected]>

* Fix dependencies multi app build and add proper test deps (#1572)

* Force Jackson version to override the SB Jackson version

Signed-off-by: Artur Ciocanu <[email protected]>

* Move all the Jackson deps to parent POM.

Signed-off-by: Artur Ciocanu <[email protected]>

* Ensure app JAR build order

Signed-off-by: Artur Ciocanu <[email protected]>

* Remove explicit Jackson from sdk-tests module.

Signed-off-by: Artur Ciocanu <[email protected]>

* Make sure <scope>test</scope> is used for test dependencies.

Signed-off-by: Artur Ciocanu <[email protected]>

* Remove extra Jackson modules.

Signed-off-by: Artur Ciocanu <[email protected]>

---------

Signed-off-by: Artur Ciocanu <[email protected]>
Signed-off-by: salaboy <[email protected]>

* docs: add architecture diagram to README (#1549)

* Preview New README

* Preview New README 2

* Preview New README 3

* docs: add architecture diagram showing Java SDK interaction with Dapr runtime (close #<915>)

* docs: add architecture diagram showing Java SDK interaction with Dapr runtime CORRECTION (close #<915>)

* docs: add architecture diagram showing Java SDK interaction with Dapr runtime (close #<915>)

* docs: add architecture diagram showing Java SDK interaction with Dapr runtime (close #<915>)

---------

Co-authored-by: Siri Varma Vegiraju <[email protected]>
Co-authored-by: artur-ciocanu <[email protected]>
Co-authored-by: Cassie Coyle <[email protected]>
Signed-off-by: salaboy <[email protected]>

* Add statestore example with Outbox pattern (#1582)

* Add statestore example with Outbox pattern

Signed-off-by: Matheus Cruz <[email protected]>

* Clean events after each test

Signed-off-by: Matheus Cruz <[email protected]>

* Add license header

Signed-off-by: Matheus Cruz <[email protected]>

* Apply pull request suggestions

Signed-off-by: Matheus Cruz <[email protected]>

---------

Signed-off-by: Matheus Cruz <[email protected]>
Co-authored-by: salaboy <[email protected]>
Signed-off-by: salaboy <[email protected]>

* adding new method signature plus test (#1570)

* adding new method signature plus test

Signed-off-by: salaboy <[email protected]>

* re adding imports

Signed-off-by: salaboy <[email protected]>

* fixing style

Signed-off-by: salaboy <[email protected]>

* checking empty metadata

Signed-off-by: salaboy <[email protected]>

* copy meta for safety and check if key is present

Signed-off-by: salaboy <[email protected]>

* Centralize Maven dependency version management (#1564)

Signed-off-by: salaboy <[email protected]>

* Fix dependencies multi app build and add proper test deps (#1572)

* Force Jackson version to override the SB Jackson version

Signed-off-by: Artur Ciocanu <[email protected]>

* Move all the Jackson deps to parent POM.

Signed-off-by: Artur Ciocanu <[email protected]>

* Ensure app JAR build order

Signed-off-by: Artur Ciocanu <[email protected]>

* Remove explicit Jackson from sdk-tests module.

Signed-off-by: Artur Ciocanu <[email protected]>

* Make sure <scope>test</scope> is used for test dependencies.

Signed-off-by: Artur Ciocanu <[email protected]>

* Remove extra Jackson modules.

Signed-off-by: Artur Ciocanu <[email protected]>

---------

Signed-off-by: Artur Ciocanu <[email protected]>
Signed-off-by: salaboy <[email protected]>

* reverting pom

Signed-off-by: salaboy <[email protected]>

* fix codestyle

Signed-off-by: salaboy <[email protected]>

* using metaCopy

Signed-off-by: salaboy <[email protected]>

---------

Signed-off-by: salaboy <[email protected]>
Signed-off-by: Artur Ciocanu <[email protected]>
Co-authored-by: artur-ciocanu <[email protected]>
Signed-off-by: salaboy <[email protected]>

* Bump actions/upload-artifact from 4 to 5 (#1587)

Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4 to 5.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](actions/upload-artifact@v4...v5)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: salaboy <[email protected]>

* Add gRPC support to Dapr testcontainer (#1586)

* Add gRPC support to Dapr testcontainer

Signed-off-by: wlfgang <[email protected]>

* Avoid using null to indicate default value

Signed-off-by: wlfgang <[email protected]>

---------

Signed-off-by: wlfgang <[email protected]>
Co-authored-by: artur-ciocanu <[email protected]>
Co-authored-by: wlfgang <[email protected]>
Signed-off-by: salaboy <[email protected]>

* Use dependencies BOM and remove duplicates. (#1588)

Signed-off-by: Artur Ciocanu <[email protected]>
Signed-off-by: salaboy <[email protected]>

* Examples + Docs for App API Token authentication for gRPC and HTTP (#1589)

* example

Signed-off-by: Cassandra Coyle <[email protected]>

* docs for example

Signed-off-by: Cassandra Coyle <[email protected]>

---------

Signed-off-by: Cassandra Coyle <[email protected]>
Signed-off-by: salaboy <[email protected]>

* Another set of Maven version, properties and plugin improvements (#1596)

Signed-off-by: salaboy <[email protected]>

* Adding a Flux based subscribeToEvents method (#1598)

* Adding a Flux based subscribeToEvents method

Signed-off-by: Artur Ciocanu <[email protected]>

* Simplify GRPC stream handling

Signed-off-by: Artur Ciocanu <[email protected]>

* Simplify Javadoc

Signed-off-by: Artur Ciocanu <[email protected]>

* Fix unit tests and simplify implementation

Signed-off-by: Artur Ciocanu <[email protected]>

* Adding event subscriber stream observer to simplify subscription logic

Signed-off-by: Artur Ciocanu <[email protected]>

* Use start() method to start stream subscription

Signed-off-by: Artur Ciocanu <[email protected]>

* Add unit test for event suscriber observer

Signed-off-by: Artur Ciocanu <[email protected]>

* Improve the tests a little bit

Signed-off-by: Artur Ciocanu <[email protected]>

* Remove the unnecessary method

Signed-off-by: Artur Ciocanu <[email protected]>

* Improve error handling and use CloudEvent wrapper

Signed-off-by: Artur Ciocanu <[email protected]>

* Fix unit tests asserts

Signed-off-by: Artur Ciocanu <[email protected]>

* Adjust Java examples for Subscriber

Signed-off-by: Artur Ciocanu <[email protected]>

---------

Signed-off-by: Artur Ciocanu <[email protected]>
Signed-off-by: salaboy <[email protected]>

* Remove SDK docs due to migration to main Docs repo (#1593)

* Remove SDK docs due to migration to main Docs repo

Signed-off-by: Marc Duiker <[email protected]>

* Remove sed lines related to sdk docs

Signed-off-by: Marc Duiker <[email protected]>

---------

Signed-off-by: Marc Duiker <[email protected]>
Co-authored-by: salaboy <[email protected]>
Signed-off-by: salaboy <[email protected]>

* cleaning up sdk version script

Signed-off-by: salaboy <[email protected]>

---------

Signed-off-by: salaboy <[email protected]>
Signed-off-by: Matheus Cruz <[email protected]>
Signed-off-by: artur-ciocanu <[email protected]>
Signed-off-by: Artur Ciocanu <[email protected]>
Signed-off-by: dependabot[bot] <[email protected]>
Signed-off-by: wlfgang <[email protected]>
Signed-off-by: Cassandra Coyle <[email protected]>
Signed-off-by: Marc Duiker <[email protected]>
Co-authored-by: Matheus Cruz <[email protected]>
Co-authored-by: artur-ciocanu <[email protected]>
Co-authored-by: Raymundo Zamora <[email protected]>
Co-authored-by: Siri Varma Vegiraju <[email protected]>
Co-authored-by: Cassie Coyle <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: wlfgang <[email protected]>
Co-authored-by: wlfgang <[email protected]>
Co-authored-by: Marc Duiker <[email protected]>
Signed-off-by: salaboy <[email protected]>

* Bump codecov/codecov-action from 5.5.1 to 5.5.2 (#1607)

Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 5.5.1 to 5.5.2.
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md)
- [Commits](codecov/codecov-action@v5.5.1...v5.5.2)

---
updated-dependencies:
- dependency-name: codecov/codecov-action
  dependency-version: 5.5.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: salaboy <[email protected]>

* Create Dapr WaitStrategy to improve ITs ergonomics (#1609)

* Create Dapr WaitStrategy to improve ITs ergonomics

Signed-off-by: Artur Ciocanu <[email protected]>

* Improve unit tests naming and coverage

Signed-off-by: Artur Ciocanu <[email protected]>

* Fix a potential NPE and remove extra "for..." methods for pubsub and topic.

Signed-off-by: Artur Ciocanu <[email protected]>

* Fix NPE properly for actor match

Signed-off-by: Artur Ciocanu <[email protected]>

* Fix NPE another potential NPEs.

Signed-off-by: Artur Ciocanu <[email protected]>

* Rename to use wait strategy to use abstract prefix.

Signed-off-by: Artur Ciocanu <[email protected]>

* Add more tests to cover null checks

Signed-off-by: Artur Ciocanu <[email protected]>

* Fix pubsub outbox IT.

Signed-off-by: Artur Ciocanu <[email protected]>

* Ignore pubsub outbox for now.

Signed-off-by: Artur Ciocanu <[email protected]>

* Disable pubsub outbox for now.

Signed-off-by: Artur Ciocanu <[email protected]>

---------

Signed-off-by: Artur Ciocanu <[email protected]>
Signed-off-by: salaboy <[email protected]>

* Bump actions/upload-artifact from 4 to 6 (#1606)

Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4 to 6.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](actions/upload-artifact@v4...v6)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Cassie Coyle <[email protected]>
Co-authored-by: Dapr Bot <[email protected]>
Signed-off-by: salaboy <[email protected]>

* Jobs promotion to DaprClient (#1602)

* job promotion to DaprClient

Signed-off-by: salaboy <[email protected]>

* updating Jobs readme

Signed-off-by: salaboy <[email protected]>

* fixing IT tests for Jobs

Signed-off-by: salaboy <[email protected]>

* Remove SDK docs due to migration to main Docs repo (#1593)

* Remove SDK docs due to migration to main Docs repo

Signed-off-by: Marc Duiker <[email protected]>

* Remove sed lines related to sdk docs

Signed-off-by: Marc Duiker <[email protected]>

---------

Signed-off-by: Marc Duiker <[email protected]>
Co-authored-by: salaboy <[email protected]>
Signed-off-by: salaboy <[email protected]>

* adding client config for sdk tests

Signed-off-by: salaboy <[email protected]>

---------

Signed-off-by: salaboy <[email protected]>
Signed-off-by: Marc Duiker <[email protected]>
Co-authored-by: Marc Duiker <[email protected]>
Co-authored-by: Siri Varma Vegiraju <[email protected]>
Co-authored-by: Dapr Bot <[email protected]>
Signed-off-by: salaboy <[email protected]>

* Add Cryptography APIs to the Java SDK (#1599)

* Bringing Durable Task Java as a Maven module inside the Java SDK (#1575)

* fixing checkstyle and javadocs

Signed-off-by: salaboy <[email protected]>

* Replace openjdk:17-jdk-slim to eclipse-temurin:17-jdk-jammy (#1574)

Signed-off-by: Matheus Cruz <[email protected]>
Signed-off-by: salaboy <[email protected]>

* Align Java API with other languages (#1560)

* Align Java API with other languages

Signed-off-by: Matheus Cruz <[email protected]>

* Update documentation

Signed-off-by: Matheus Cruz <[email protected]>

* Change return type of waitForWorkflowStart method

Signed-off-by: artur-ciocanu <[email protected]>

---------

Signed-off-by: Matheus Cruz <[email protected]>
Signed-off-by: artur-ciocanu <[email protected]>
Co-authored-by: artur-ciocanu <[email protected]>
Signed-off-by: salaboy <[email protected]>

* use built in durable task

Signed-off-by: salaboy <[email protected]>

* exclude jacoco rules for examples and durabletask-client

Signed-off-by: salaboy <[email protected]>

* increasing timeout for IT

Signed-off-by: salaboy <[email protected]>

* removing dt build from matrix

Signed-off-by: salaboy <[email protected]>

* adding java to dt build

Signed-off-by: salaboy <[email protected]>

* Fix dependencies multi app build and add proper test deps (#1572)

* Force Jackson version to override the SB Jackson version

Signed-off-by: Artur Ciocanu <[email protected]>

* Move all the Jackson deps to parent POM.

Signed-off-by: Artur Ciocanu <[email protected]>

* Ensure app JAR build order

Signed-off-by: Artur Ciocanu <[email protected]>

* Remove explicit Jackson from sdk-tests module.

Signed-off-by: Artur Ciocanu <[email protected]>

* Make sure <scope>test</scope> is used for test dependencies.

Signed-off-by: Artur Ciocanu <[email protected]>

* Remove extra Jackson modules.

Signed-off-by: Artur Ciocanu <[email protected]>

---------

Signed-off-by: Artur Ciocanu <[email protected]>
Signed-off-by: salaboy <[email protected]>

* docs: add architecture diagram to README (#1549)

* Preview New README

* Preview New README 2

* Preview New README 3

* docs: add architecture diagram showing Java SDK interaction with Dapr runtime (close #<915>)

* docs: add architecture diagram showing Java SDK interaction with Dapr runtime CORRECTION (close #<915>)

* docs: add architecture diagram showing Java SDK interaction with Dapr runtime (close #<915>)

* docs: add architecture diagram showing Java SDK interaction with Dapr runtime (close #<915>)

---------

Co-authored-by: Siri Varma Vegiraju <[email protected]>
Co-authored-by: artur-ciocanu <[email protected]>
Co-authored-by: Cassie Coyle <[email protected]>
Signed-off-by: salaboy <[email protected]>

* Add statestore example with Outbox pattern (#1582)

* Add statestore example with Outbox pattern

Signed-off-by: Matheus Cruz <[email protected]>

* Clean events after each test

Signed-off-by: Matheus Cruz <[email protected]>

* Add license header

Signed-off-by: Matheus Cruz <[email protected]>

* Apply pull request suggestions

Signed-off-by: Matheus Cruz <[email protected]>

---------

Signed-off-by: Matheus Cruz <[email protected]>
Co-authored-by: salaboy <[email protected]>
Signed-off-by: salaboy <[email protected]>

* adding new method signature plus test (#1570)

* adding new method signature plus test

Signed-off-by: salaboy <[email protected]>

* re adding imports

Signed-off-by: salaboy <[email protected]>

* fixing style

Signed-off-by: salaboy <[email protected]>

* checking empty metadata

Signed-off-by: salaboy <[email protected]>

* copy meta for safety and check if key is present

Signed-off-by: salaboy <[email protected]>

* Centralize Maven dependency version management (#1564)

Signed-off-by: salaboy <[email protected]>

* Fix dependencies multi app build and add proper test deps (#1572)

* Force Jackson version to override the SB Jackson version

Signed-off-by: Artur Ciocanu <[email protected]>

* Move all the Jackson deps to parent POM.

Signed-off-by: Artur Ciocanu <[email protected]>

* Ensure app JAR build order

Signed-off-by: Artur Ciocanu <[email protected]>

* Remove explicit Jackson from sdk-tests module.

Signed-off-by: Artur Ciocanu <[email protected]>

* Make sure <scope>test</scope> is used for test dependencies.

Signed-off-by: Artur Ciocanu <[email protected]>

* Remove extra Jackson modules.

Signed-off-by: Artur Ciocanu <[email protected]>

---------

Signed-off-by: Artur Ciocanu <[email protected]>
Signed-off-by: salaboy <[email protected]>

* reverting pom

Signed-off-by: salaboy <[email protected]>

* fix codestyle

Signed-off-by: salaboy <[email protected]>

* using metaCopy

Signed-off-by: salaboy <[email protected]>

---------

Signed-off-by: salaboy <[email protected]>
Signed-off-by: Artur Ciocanu <[email protected]>
Co-authored-by: artur-ciocanu <[email protected]>
Signed-off-by: salaboy <[email protected]>

* Bump actions/upload-artifact from 4 to 5 (#1587)

Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4 to 5.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](actions/upload-artifact@v4...v5)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: salaboy <[email protected]>

* Add gRPC support to Dapr testcontainer (#1586)

* Add gRPC support to Dapr testcontainer

Signed-off-by: wlfgang <[email protected]>

* Avoid using null to indicate default value

Signed-off-by: wlfgang <[email protected]>

---------

Signed-off-by: wlfgang <[email protected]>
Co-authored-by: artur-ciocanu <[email protected]>
Co-authored-by: wlfgang <[email protected]>
Signed-off-by: salaboy <[email protected]>

* Use dependencies BOM and remove duplicates. (#1588)

Signed-off-by: Artur Ciocanu <[email protected]>
Signed-off-by: salaboy <[email protected]>

* Examples + Docs for App API Token authentication for gRPC and HTTP (#1589)

* example

Signed-off-by: Cassandra Coyle <[email protected]>

* docs for example

Signed-off-by: Cassandra Coyle <[email protected]>

---------

Signed-off-by: Cassandra Coyle <[email protected]>
Signed-off-by: salaboy <[email protected]>

* Another set of Maven version, properties and plugin improvements (#1596)

Signed-off-by: salaboy <[email protected]>

* Adding a Flux based subscribeToEvents method (#1598)

* Adding a Flux based subscribeToEvents method

Signed-off-by: Artur Ciocanu <[email protected]>

* Simplify GRPC stream handling

Signed-off-by: Artur Ciocanu <[email protected]>

* Simplify Javadoc

Signed-off-by: Artur Ciocanu <[email protected]>

* Fix unit tests and simplify implementation

Signed-off-by: Artur Ciocanu <[email protected]>

* Adding event subscriber stream observer to simplify subscription logic

Signed-off-by: Artur Ciocanu <[email protected]>

* Use start() method to start stream subscription

Signed-off-by: Artur Ciocanu <[email protected]>

* Add unit test for event suscriber observer

Signed-off-by: Artur Ciocanu <[email protected]>

* Improve the tests a little bit

Signed-off-by: Artur Ciocanu <[email protected]>

* Remove the unnecessary method

Signed-off-by: Artur Ciocanu <[email protected]>

* Improve error handling and use CloudEvent wrapper

Signed-off-by: Artur Ciocanu <[email protected]>

* Fix unit tests asserts

Signed-off-by: Artur Ciocanu <[email protected]>

* Adjust Java examples for Subscriber

Signed-off-by: Artur Ciocanu <[email protected]>

---------

Signed-off-by: Artur Ciocanu <[email protected]>
Signed-off-by: salaboy <[email protected]>

* Remove SDK docs due to migration to main Docs repo (#1593)

* Remove SDK docs due to migration to main Docs repo

Signed-off-by: Marc Duiker <[email protected]>

* Remove sed lines related to sdk docs

Signed-off-by: Marc Duiker <[email protected]>

---------

Signed-off-by: Marc Duiker <[email protected]>
Co-authored-by: salaboy <[email protected]>
Signed-off-by: salaboy <[email protected]>

* cleaning up sdk version script

Signed-off-by: salaboy <[email protected]>

---------

Signed-off-by: salaboy <[email protected]>
Signed-off-by: Matheus Cruz <[email protected]>
Signed-off-by: artur-ciocanu <[email protected]>
Signed-off-by: Artur Ciocanu <[email protected]>
Signed-off-by: dependabot[bot] <[email protected]>
Signed-off-by: wlfgang <[email protected]>
Signed-off-by: Cassandra Coyle <[email protected]>
Signed-off-by: Marc Duiker <[email protected]>
Co-authored-by: Matheus Cruz <[email protected]>
Co-authored-by: artur-ciocanu <[email protected]>
Co-authored-by: Raymundo Zamora <[email protected]>
Co-authored-by: Siri Varma Vegiraju <[email protected]>
Co-authored-by: Cassie Coyle <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: wlfgang <[email protected]>
Co-authored-by: wlfgang <[email protected]>
Co-authored-by: Marc Duiker <[email protected]>
Signed-off-by: siri-varma <[email protected]>

* Add Cryptography API support with encrypt/decrypt operations

- Add EncryptRequestAlpha1 and DecryptRequestAlpha1 domain classes
- Implement encrypt() and decrypt() methods in DaprPreviewClient
- Add CryptoExample and StreamingCryptoExample with documentation
- Add integration tests for crypto operations
- Add localstorage crypto component configuration

Signed-off-by: siri-varma <[email protected]>

* Add keys

Signed-off-by: siri-varma <[email protected]>

* Update localstorage.yaml key path to relative

Signed-off-by: Siri Varma Vegiraju <[email protected]>

* Fix things

Signed-off-by: siri-varma <[email protected]>

* fix things

Signed-off-by: siri-varma <[email protected]>

* Add missing imports

Signed-off-by: siri-varma <[email protected]>

---------

Signed-off-by: salaboy <[email protected]>
Signed-off-by: Matheus Cruz <[email protected]>
Signed-off-by: artur-ciocanu <[email protected]>
Signed-off-by: Artur Ciocanu <[email protected]>
Signed-off-by: dependabot[bot] <[email protected]>
Signed-off-by: wlfgang <[email protected]>
Signed-off-by: Cassandra Coyle <[email protected]>
Signed-off-by: Marc Duiker <[email protected]>
Signed-off-by: siri-varma <[email protected]>
Signed-off-by: Siri Varma Vegiraju <[email protected]>
Co-authored-by: salaboy <[email protected]>
Co-authored-by: Matheus Cruz <[email protected]>
Co-authored-by: artur-ciocanu <[email protected]>
Co-authored-by: Raymundo Zamora <[email protected]>
Co-authored-by: Cassie Coyle <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: wlfgang <[email protected]>
Co-authored-by: wlfgang <[email protected]>
Co-authored-by: Marc Duiker <[email protected]>
Signed-off-by: salaboy <[email protected]>

* Adding DaprSpringBootTest and DaprSidecarContainer annotation for easier ITs authoring (#1610)

* Adding DaprSpringBootTest and DaprSidecarContainer annotation for easier IT authoring.

Signed-off-by: Artur Ciocanu <[email protected]>

# Conflicts:
#	testcontainers-dapr/pom.xml

* Adding DaprSpringBootTest and DaprSidecarContainer annotation for easier IT authoring.

Signed-off-by: Artur Ciocanu <[email protected]>

* Move all the helper Dapr SpringBoot annotations to tests, to avoid exposing it as public API

Signed-off-by: Artur Ciocanu <[email protected]>

* Fix a few issues related to Dapr container usage in ITs.

Signed-off-by: Artur Ciocanu <[email protected]>

* Addressing code review comments to ensure things are internal.

Signed-off-by: Artur Ciocanu <[email protected]>

---------

Signed-off-by: Artur Ciocanu <[email protected]>
Co-authored-by: Cassie Coyle <[email protected]>
Signed-off-by: salaboy <[email protected]>

* adding constant for dashboard

Signed-off-by: salaboy <[email protected]>

* extend test for codecov

Signed-off-by: salaboy <[email protected]>

* adding tests for null state store

Signed-off-by: salaboy <[email protected]>

* testing string constructor

Signed-off-by: salaboy <[email protected]>

---------

Signed-off-by: salaboy <[email protected]>
Signed-off-by: Artur Ciocanu <[email protected]>
Signed-off-by: Marc Duiker <[email protected]>
Signed-off-by: Matheus Cruz <[email protected]>
Signed-off-by: artur-ciocanu <[email protected]>
Signed-off-by: dependabot[bot] <[email protected]>
Signed-off-by: wlfgang <[email protected]>
Signed-off-by: Cassandra Coyle <[email protected]>
Signed-off-by: siri-varma <[email protected]>
Signed-off-by: Siri Varma Vegiraju <[email protected]>
Co-authored-by: artur-ciocanu <[email protected]>
Co-authored-by: Marc Duiker <[email protected]>
Co-authored-by: Joe Bowbeer <[email protected]>
Co-authored-by: Matheus Cruz <[email protected]>
Co-authored-by: Raymundo Zamora <[email protected]>
Co-authored-by: Siri Varma Vegiraju <[email protected]>
Co-authored-by: Cassie Coyle <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: wlfgang <[email protected]>
Co-authored-by: wlfgang <[email protected]>
Co-authored-by: Dapr Bot <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants