Commit Graph

159 Commits

Author SHA1 Message Date
buildmaster
ef0e42dd6f Going back to snapshots 2019-08-13 06:02:38 +00:00
buildmaster
b49e116cf2 Update SNAPSHOT to 3.0.0.M2 2019-08-13 05:56:32 +00:00
Oleg Zhurakousky
93f7a248a5 Added initial support for lazy style FunctionCatalog/Registry which:
-  does not rely on any of the existing wrappers and instead relies on internal wrapper which performs  in-flight/just-in-time wrapping and unwrapping from reactive to imperative types
- performs transparent type conversion relying on MessageConverters and ConversionService
- supports multiple inputs/outputs
2019-07-17 13:54:02 +02:00
Dave Syer
5e3111bf80 Fix conditions for custom AWS runtime
Conflicts:
	spring-cloud-function-samples/function-sample-aws-custom/pom.xml
2019-07-12 17:08:34 +02:00
Kane Zhu
1de8526b7a Fix the issue that api gateway handler of AWS does not honor the encrypted body data.
Resolves #382
2019-07-12 17:07:02 +02:00
Oleg Zhurakousky
cf5cd49b72 fixed checkstyle 2019-07-12 17:04:45 +02:00
Oleg Zhurakousky
493b9da295 Simplified enhanecements to SpringBootApiGatewayRequestHandler introduced by previous commit"
Resolves #249
Resolves #375
2019-07-12 16:59:33 +02:00
Markus Gulden
01e813ec52 GH-249, Add full HTTP support to SpringBootApiGatewayRequestHandler
* Add support for handling APIGatewayProxyRequestEvent objects with
empty body (should apply to all GET and DELETE requests, which
comply with recommandation of RFC-7231)

* Add support ReSTful APIs: path and query string parameters as well
as the HTTP method are now extracted from the
APIGatewayProxyRequestEvent object and forwarded to the function
as message headers

* Extend unit tests accordingly
2019-07-12 16:59:21 +02:00
Oleg Zhurakousky
570bbb23b5 Fixed doc rendering 2019-07-12 16:52:33 +02:00
Oleg Zhurakousky
2afb53f967 Added cleanup code to the failing AWS test 2019-06-07 14:41:45 +02:00
Oleg Zhurakousky
cfd24a8316 Upgraded master to 3.0.0.BUILD-SNAPSHOT 2019-06-06 18:47:09 +02:00
Oleg Zhurakousky
2dad9b65c1 Bumped to spring-cloud-build 2.2
Fixed boot 2.2 related errors
set master version to 2.2.0
2019-05-28 13:22:02 +02:00
Oleg Zhurakousky
0d51b30538 Update README.adoc 2019-05-07 17:37:01 +02:00
buildmaster
d28fc9978a Bumping versions to 2.1.1.BUILD-SNAPSHOT after release 2019-05-07 10:08:10 +00:00
buildmaster
e44c61754c Going back to snapshots 2019-05-07 10:08:09 +00:00
buildmaster
7fafbe7848 Update SNAPSHOT to 2.1.0.RELEASE 2019-05-07 09:12:21 +00:00
Oleg Zhurakousky
f2e4cea47d GH-263 Added more AWS tests
Resolves #263
2019-05-03 09:27:04 +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
buildmaster
9df7455a30 Going back to snapshots 2019-04-08 14:18:29 +00:00
buildmaster
24740e4e17 Update SNAPSHOT to 2.1.0.RC1 2019-04-08 14:14:23 +00:00
Oleg Zhurakousky
bd094bef39 GH-349 Added support for raw input to AWS adapter
Resolves #349
2019-04-08 14:18:19 +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
Dave Syer
744a7587d3 Narrow condition for function exporter in AWS custom runtime 2019-04-01 15:50:57 +01:00
Dave Syer
2efeafd793 Conditionally switch on the custom runtime in a functional app 2019-04-01 15:38:13 +01: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
buildmaster
0fe8693565 Going back to snapshots 2019-03-20 08:49:57 +00:00
buildmaster
60f11baf57 Update SNAPSHOT to 2.1.0.M1 2019-03-20 08:45:24 +00:00
Spring Operator
5bf9bebbb2 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://cloud.spring.io/ with 1 occurrences migrated to:
  https://cloud.spring.io/ ([https](https://cloud.spring.io/) result 200).
* http://maven.apache.org/xsd/assembly-1.1.2.xsd with 1 occurrences migrated to:
  https://maven.apache.org/xsd/assembly-1.1.2.xsd ([https](https://maven.apache.org/xsd/assembly-1.1.2.xsd) result 200).
* http://maven.apache.org/xsd/maven-4.0.0.xsd with 28 occurrences migrated to:
  https://maven.apache.org/xsd/maven-4.0.0.xsd ([https](https://maven.apache.org/xsd/maven-4.0.0.xsd) result 200).

# Ignored
These URLs were intentionally ignored.

* http://maven.apache.org/POM/4.0.0 with 56 occurrences
* http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 with 2 occurrences
* http://www.w3.org/2001/XMLSchema-instance with 29 occurrences
2019-03-19 21:21:48 -05:00
Oleg Zhurakousky
8ee8215c9c Migrated docs to new styles 2019-03-14 16:04:46 +01:00
Oleg Zhurakousky
7689f8ed60 Revert "Hoxton"
This reverts commit d67d77c4e0.
2019-03-14 13:22:05 +01:00
Marcin Grzejszczak
d67d77c4e0 Hoxton 2019-03-08 17:21:10 +01: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
neokeld
3f4401f9be Simple refactor: isSingleInput already check if input is a collection
Resolves #269
2019-03-01 05:46:45 +01:00
Dave Syer
138e1cf3c2 Deeper support for custom AWS Lambda runtime
Adds an EnvironmentPostProcessor so the user ony has to set one
property (spring.cloud.function.web.export.enabled=true).
2019-02-28 10:05:13 -05:00
Dave Syer
428243ce48 Add new feature to initialize a Supplier from a remote HTTP endpoint
Kind of like the SupplierExporter but to create the Supplier itself.
With this in place you can define the templateUrl (destination) and
the originaUrl (source) and use the app as a pipeline for events
from/to HTTP.

Provide functional bean support for HTTP export

Add autoconfig to AWS adapter for custom runtime

Fix HttpSupplier to always supply Message if headers are included

Fix registration of origin supplier in functional beans

Add docs on new AWS features

Add custom runtime sample
2019-02-28 09:55:51 +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
Dave Syer
6865d53c91 Update to 2.1.0 snapshots in all the other places 2019-02-20 13:19:03 +00:00
Oleg Zhurakousky
0994a244e0 Polishing, fixed checkstyles, added author tag
Resolves #256
Resolves #260
2019-02-15 10:39:59 +01:00
Semyon Fishman
8c4c1aefde GH-256, Add AWS support for Consumer's and Supplier's
Added support for Consumer and Supplier functions when executing within AWS Lambda.

It appears that this was previously supported but was removed in 083d5e for some reason.

Improve Consumer support for AWS API Gateway

Consumer type functions, by definition, do not return anything; i.e. they do not have a response.  However when executing within a Lambda + API Gateway environment, the Lambda must still return a 200-level status response to signal the API Gateway that the function executed succesfully.   I added the logic for this.

Improve Supplier support for AWS API Gateway

Supplier functions, by defnition, do not take input; in the case of API Gateway calls this type of execution passes a null body, which fails to deserialize and throws an exception.  I added logic that skips the deserialization of the body in the case it is a Supplier.
2019-02-15 10:23:54 +01:00
Oleg Zhurakousky
194858bf60 GH-253 Updated AZUR library 2019-02-06 07:59:51 +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
buildmaster
94e9b8f2f8 Bumping versions to 2.0.2.BUILD-SNAPSHOT after release 2019-01-31 14:48:58 +00:00
buildmaster
036e0c4090 Going back to snapshots 2019-01-31 14:48:57 +00:00
buildmaster
eaf519b82a Update SNAPSHOT to 2.0.1.RELEASE 2019-01-31 14:34:17 +00:00
buildmaster
9cf4b72ef3 Bumping versions to 2.0.1.BUILD-SNAPSHOT after release 2019-01-08 11:32:36 +00:00
buildmaster
5b2345c7d4 Going back to snapshots 2019-01-08 11:32:36 +00:00