Commit Graph

21 Commits

Author SHA1 Message Date
Siri Varma Vegiraju 8b8684a2db
Make the DAPR version being used consistent across all tests (#1299) 2025-04-19 01:59:56 +03:00
Thomas Vitale 6e0f267b49
Bump supported Spring Boot baseline to version 3.2.x (#1050)
* Drop support for Spring Boot 2.x
* Bump dependencies in sdk-springboot module from Spring Boot 2.x to 3.2.6
* Update examples module to use new Spring Boot support with Java 17 baseline
* Fix wrong sdkman and mavne wrapper setup that failed the local setup
* Update GHA workflow to stop testing for Spring Boot versions < 3.2.x

Fixes gh-1039

Signed-off-by: Thomas Vitale <ThomasVitale@users.noreply.github.com>

* Update pom.xml

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

---------

Signed-off-by: Thomas Vitale <ThomasVitale@users.noreply.github.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>
2024-07-16 09:33:53 -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
Cassie Coyle 0543011d59
Updated enable dead letter topic (#913)
* feat: Add dead letter topic to a subscription topic.

Signed-off-by: Charlie Mk <carlosrb00@gmail.com>

* feat: Add endpoint examples

Signed-off-by: Charlie Mk <carlosrb00@gmail.com>

* feat: Add dead letter topic example to the docs.

Signed-off-by: Charlie Mk <carlosrb00@gmail.com>

* Create new methods with deadLetterTopic instead of overload existing ones.

Signed-off-by: Charlie Mk <carlosrb00@gmail.com>

* Update _index.md

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

* Create overloads for deadlettertopic.

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

* fix integration tests from names overlapping

Signed-off-by: Cassandra Coyle <cassie@diagrid.io>

---------

Signed-off-by: Charlie Mk <carlosrb00@gmail.com>
Signed-off-by: Artur Souza <asouza.pro@gmail.com>
Signed-off-by: Cassandra Coyle <cassie@diagrid.io>
Co-authored-by: Charlie Mk <carlosrb00@gmail.com>
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
Co-authored-by: Artur Souza <asouza.pro@gmail.com>
Co-authored-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>
Co-authored-by: Yaron Schneider <schneider.yaron@live.com>
2023-09-14 17:28:29 -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
Shubham Sharma eb8565cca0
feat(pubsub): add bulk subscribe support (#791) 2023-01-18 17:58:03 -08:00
John Ewart aeb42d833f
Allow subscription builder to be called with the same route (#805)
If the route being provided for a topic is the same as it was previously,
do not raise an exception.

Fixes parallel test execution without `forkMode=always` (#766)

Signed-off-by: John Ewart <johnewart@microsoft.com>

Signed-off-by: John Ewart <johnewart@microsoft.com>
2022-11-07 11:00:23 -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
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
deepanshuagarwal 593da48bc4
Catering to all possible routes for Post Request (#700)
* Catering to all possible routes for Post Request

Signed-off-by: deepanshuagarwal <deepanshu.agarwal1984@gmail.com>

* Correcting checkstyle related violations

Signed-off-by: deepanshuagarwal <deepanshu.agarwal1984@gmail.com>

* Refactoring and Adding UTs for post method routes

Signed-off-by: deepanshuagarwal <deepanshu.agarwal1984@gmail.com>

* Using resolved topic name

Signed-off-by: deepanshuagarwal <deepanshu.agarwal1984@gmail.com>

* Shifting routesPostMethod to reduce its access

Signed-off-by: deepanshuagarwal <deepanshu.agarwal1984@gmail.com>

Co-authored-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>
2022-03-21 14:27:29 +05:30
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 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
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 1b3077071f
Update license header. (#483) 2021-02-06 00:18:47 -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 76c848bb6f
Fixes timer invocation after app restarts. (#363) 2020-10-16 14:29:31 -07:00
Charlie Stanley 63f591e877 Add support for multi-pubsub (#309) 2020-08-18 18:20:17 -07:00
Artur Souza f020b33656
Fixing content-type for Spring controller. (#300) 2020-07-08 23:15:36 -07:00
Charlie Stanley 8362c6347b
SDK update for breaking changes in dapr core. (#287)
* Update proto files for 0.8.0 release (#283)

* Bump dapr core to master

* Update integration tests for 0.8.0 proto changes

* Added unit tests to ensure StateOptions enums always map to their equivalent gRPC enums

* Remove some uneed comments/imports

* Update pub/sub subscription to match new route/metdata format (#278)

* Automatically initialize actor on first invocation (#284)

* Update integration tests to publish to more than one pubsub topic/route

* Bump dapr CLI version

* Remove uneeded interface and exception

Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2020-05-28 18:42:01 -07:00
Artur Souza e7f5ba401d
Health check API. (#260) 2020-03-30 18:58:30 -07:00
Artur Souza 4611f40cb5
Springboot integration. (#256) 2020-03-30 09:49:31 -07:00