31 Commits

Author SHA1 Message Date
spencergibb
d120eb0731 Updates to*Case() to use Locale.ROOT 2024-10-18 10:53:24 -04:00
Christian Tzolov
9ceb4f64d2 Fix the http trigger signatures in tests, samples and docs. Upgrade the azure maven version
Resolves #1088
2023-11-30 16:42:16 +01:00
spencergibb
4be877c32d Revert "Removes unneeded @Configuration"
This reverts commit 4940292b13.
2023-08-16 14:30:08 -04:00
spencergibb
4940292b13 Removes unneeded @Configuration 2023-08-15 18:13:55 -04:00
Oleg Zhurakousky
efda7285ad Cleanup and fix tests 2023-07-20 16:50:16 +02:00
Christian Tzolov
8486e0bcb9 Refactor the azure adapter tests 2023-07-20 14:33:48 +02:00
Oleg Zhurakousky
4655f7089e Fix compatibility iussue with Azure test 2023-05-11 17:36:39 +02:00
Oleg Zhurakousky
5228a2cc13 Fix AzureFunctionInstanceInjectorTest for boot 3.1 compatibility 2023-05-11 16:11:19 +02:00
Christian Tzolov
ba1094df63 resolve code style issues
Resolves #999
2023-02-24 10:33:59 +01:00
Christian Tzolov
bb066b9b3f Add support for injecting the ExecutionContext as metadata 2023-02-24 10:17:57 +01:00
Christian Tzolov
af70509b5e Add FunctionInstanceInjector adapter test 2022-12-15 13:50:51 +01:00
onobc
408035b94a Ability to extend default function result handling
Fixes #757
2022-03-08 14:39:10 +01:00
Oleg Zhurakousky
6031cc83f3 GH-727 Fix Azure's Supplier<Publisher> logic to avoid NPE
Resolves #727
2021-11-18 13:29:07 +01:00
Oleg Zhurakousky
3d1c1e2314 GH-692 Fix reactive support in Azure FunctionInvoker
Resolves #692
2021-05-25 17:25:06 +02:00
Oleg Zhurakousky
98fe5bc8eb GH-437 Refactor Azure request handler
This approach simplifies the existing request handlers while also fixing the invocation model to ensure AC is not created multiple times and ExecutionContext is properly propagated via Message headers
The old request handlers are deprecated
Documentation updates as well as tests
Resolves #437
2021-03-15 11:08:36 +01:00
Oleg Zhurakousky
29ad49cbf6 GH-437 Pass ExecutionContext via MessageHeader
Caching it as part of ApplicationContext was not the right idea so this changes it
2021-03-10 18:53:25 +01:00
anshlykov
8bcfad48fa Migrate to JUnit 5
spring-cloud-function-context

spring-cloud-function-context: fix

spring-cloud-function-web

spring-cloud-function-adapters

spring-cloud-function-samples

spring-cloud-function-deployer; spring-cloud-function-kotlin

Resolves #535
2020-06-10 16:43:04 +02:00
Oleg Zhurakousky
aa721a7b43 GH-456 Fix Azure logging
Added static delegate context which holds target context and is also refreshed with new context on each request

Resolves #456
2020-04-02 16:36:54 +02:00
Oleg Zhurakousky
f16a2c76cf GH-317 Polishing and minor refactoring in AzureSpringBootHttpRequestHandler
- Moved convertOutput() to base class and added input value as an argument
- Added javadoc
- fixed checkstyle violations

Resolves #317
Resolves #360
2019-04-29 13:46:13 +02:00
Markus Gulden
27344d7098 GH-317, Implement HTTP request-specific handler for Azure adapter
* Handler extends AzureSpringBootRequestHandler with types
  HttpRequestMessage and HttpResponseMessage (which are required by
  Azure Functions for HTTP-triggered functions)

* Handler extracts request path, query string parameters as well as the
  HTTP method from the HttpRequestMessage object and forwards them to
  the function as message headers

* Handler creates an HttpResponseMessage with the response coming from
  the called function

* Created unit tests accordingly

GH-317, Implement HTTP request-specific  handler for Azure adapter

* Handler extends AzureSpringBootRequestHandler with types
  HttpRequestMessage and HttpResponseMessage (which are required by
  Azure Functions for HTTP-triggered functions)

* Handler extracts request path, query string parameters as well as the
  HTTP method from the HttpRequestMessage object and forwards them to
  the function as message headers

* Handler creates an HttpResponseMessage with the response coming from
  the called function

* Created unit tests accordingly

GH-317, Implement HTTP request-specific  handler for Azure adapter

* Handler extends AzureSpringBootRequestHandler with types
  HttpRequestMessage and HttpResponseMessage (which are required by
  Azure Functions for HTTP-triggered functions)

* Handler extracts request path, query string parameters as well as the
  HTTP method from the HttpRequestMessage object and forwards them to
  the function as message headers

* Handler creates an HttpResponseMessage with the response coming from
  the called function

* Created unit tests accordingly
2019-04-29 13:42:55 +02:00
Oleg Zhurakousky
3fed1f1cd4 GH-264 Simplified signagure for Supplier 2019-04-03 09:42:34 +02:00
Oleg Zhurakousky
edba4c428e GH-264 Added initial support for Supplier and Consumer for Azure
Resolves #264
2019-04-03 09:37:01 +02:00
Spring Operator
3b573c27ac URL Cleanup
This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener).

# Fixed URLs

## Fixed Success
These URLs were switched to an https URL with a 2xx status. While the status was successful, your review is still recommended.

* [ ] http://www.apache.org/licenses/ with 1 occurrences migrated to:
  https://www.apache.org/licenses/ ([https](https://www.apache.org/licenses/) result 200).
* [ ] http://www.apache.org/licenses/LICENSE-2.0 with 247 occurrences migrated to:
  https://www.apache.org/licenses/LICENSE-2.0 ([https](https://www.apache.org/licenses/LICENSE-2.0) result 200).
2019-03-21 12:48:58 -05:00
Oleg Zhurakousky
d20171d196 GH-265 Added support for injecting execution context
- Added support for injecting target execution context into the ApplicationContext in AbstractSpringFunctionAdapterInitializer, effectively making it available to all adapters (if one is provided)
- Added test, docs

Resolves #265
2019-03-01 17:07:03 +01:00
Oleg Zhurakousky
cdca44f714 Polished adapter initializers consolidation effort
- Added ability to retrieve input type from FunctionRegistration (if available) in AbstractSpringFunctionAdapterInitializer
- Removed azure/AzureSpringFunctionInitializer and aws/SpringFunctionInitializer
- Added additional tests in AWS and Azure modules
- See 0189c578ef for additional info
2019-02-25 19:37:34 +01:00
Oleg Zhurakousky
0189c578ef GH-266 Consolidated Adapter infrastructure
- Moved common logic into a new AbstractSpringFunctionAdapterInitializer
- Modified Azure and AWS request handlers to extend from it
- Deprecated both AzureSpringFunctionInitializer and SpringFunctionInitializer(AWS)

Resolves #266
2019-02-25 13:25:08 +01:00
Marcin Grzejszczak
c6ddfe1af4 Added checkstyle for tests 2019-02-03 15:34:10 +01:00
Marcin Grzejszczak
e4b08a083c Turned on checkstyle 2019-02-01 15:48:32 +01:00
Dave Syer
3966f378b7 Add support for application type Function in Azure
See #215
2018-10-12 16:53:42 +01:00
Dave Syer
c964dc5451 Add some logging on startup of Azure adapter 2018-09-17 11:58:38 +01:00
Dave Syer
f09f750c39 Add support for different handler->function mappings in Azure 2018-09-17 11:06:17 +01:00