Commit Graph

299 Commits

Author SHA1 Message Date
Oleg Zhurakousky
8ea309c45b Clean up and simplifications around CloudEvent processing
This commit effectively a merge of work with #607 and simplifies the following
- CloudEventAttributesProvider now provides CloudEventAttributes initialized with defaults to be set by the user
- In HTTP RequestProcessor the logic of sanitizing headers was improved to ensure that correct prefix is applied

Resolves #607
2020-11-16 13:40:53 +01:00
Oleg Zhurakousky
40d06b8c95 GH-422 GH-606 Add support for normalizing structure-mode CE message
Normalizing in this context means converting it to binary-mode so the rest of the processing logic is the same.
Added support for canonical attribute names. Now, internally any attribute can be set as 'ce_' regardless where it came from are where it goes to as the frameork will be able to recognize both
Removed CloudEventMessageConverter
Renamed CloudEventAttributes to CloudEventAttributesHelperas it is better suited to what it actually does
2020-11-16 12:06:33 +01:00
Oleg Zhurakousky
b9f417a4da Make CloudEventAttributesProvider a FunctionalInterface
Related to #422 and #606
2020-11-16 08:41:42 +01:00
Oleg Zhurakousky
1d67b8070f Add PojoToPojo and MapToMap tests
Related to GH-422 and GH-606
2020-11-13 18:44:01 +01:00
Oleg Zhurakousky
14b39c2077 Fix HTTP header propagation logic
Related to GH-422 and GH-606
2020-11-13 17:47:41 +01:00
Oleg Zhurakousky
632e73caf9 Fix CloudEvent prefix and fix the name of CloudEventAttributesProvider.java 2020-11-13 16:07:33 +01:00
Oleg Zhurakousky
1a16af46de GH-606 add initila support for generating default cloud event attributes 2020-11-13 11:39:48 +01:00
Oleg Zhurakousky
f0b2ce7691 GH-422 GH-606 Add support for simplifying message headers to attribute mapping
Added CloudEventAttributesProvider and default implementation
Added CloudEventMessageUtils
2020-11-13 10:24:27 +01:00
Oleg Zhurakousky
a26ad928f6 GH-422 Formalize Cloud Event conversion strategy to consistently handle binary-mode and structured-mode cloud events
Moved CloudEvent related artifacts to ‘cloud events’ package with hopes to eventually donating it to CNCF SDK
Created CloudEventUtils identifying necessary constants and utility methods
2020-11-12 17:01:42 +01:00
Oleg Zhurakousky
daa3c27226 GH-422 Add test and documentation for pure function interaction 2020-11-11 12:26:09 +01:00
Oleg Zhurakousky
e2db46818d Update README.adoc 2020-11-11 12:02:36 +01:00
Oleg Zhurakousky
454da217c5 Update README.adoc 2020-11-11 12:02:11 +01:00
Oleg Zhurakousky
ffbba1f930 Update README.adoc 2020-11-11 12:01:12 +01:00
Oleg Zhurakousky
5a8b9ab3da Update README.adoc 2020-11-11 12:00:27 +01:00
Oleg Zhurakousky
052a56861d Adjust image size 2020-11-11 11:59:16 +01:00
Oleg Zhurakousky
27d0d8afd9 GH-422 Add RabbitMQ instructions for Cloud Events interaction 2020-11-11 11:53:39 +01:00
Oleg Zhurakousky
97347bf30d GH-422 Improvements in cloud event samples
Added initial README
Polished tests
2020-11-11 09:18:51 +01:00
Oleg Zhurakousky
b8c02587e9 GH-422 Add initial set of Cloud Event samples
This commit adds initial set of samples and tests demonstrating various ways of how cloud event can be consumed (i.e., structured, bindary, pojo etc)
2020-11-10 16:29:30 +01:00
buildmaster
8a4129a4da Bumping versions 2020-11-03 18:55:56 +00:00
Oleg Zhurakousky
b0b2fc3554 Add integration profiles for ContainerTests 2020-10-21 10:04:31 +02:00
buildmaster
cc9a550bde Bumping versions 2020-10-19 18:56:00 +00:00
buildmaster
349f084bd0 Going back to snapshots 2020-10-02 09:22:55 +00:00
buildmaster
9a6a2abb3d Update SNAPSHOT to 3.1.0-M4 2020-10-02 09:20:53 +00:00
buildmaster
262c3533a1 Bumping versions 2020-09-29 18:56:52 +00:00
buildmaster
d7a302133e Going back to snapshots 2020-09-23 14:34:33 +00:00
buildmaster
80b62f5ebe Update SNAPSHOT to 3.1.0-M3 2020-09-23 14:32:21 +00:00
Oleg Zhurakousky
1b6bfef3b9 Fix new ContainerTest assertion 2020-09-23 13:31:05 +02:00
Dave Syer
92e7167c99 Add test containers integration test to another sample 2020-09-22 12:55:41 +01:00
Oleg Zhurakousky
c8ae76d536 polishing
Resolves #589
2020-09-21 13:23:36 +02:00
Dave Syer
935ba1ce84 Replace integration test with test containers 2020-09-21 10:38:19 +01:00
Artem Bilan
271171e233 Fix typo in spring-cloud-function-samples/pom.xml
Resolves #577

Co-authored-by: Mike Eltsufin <meltsufin@google.com>
2020-09-01 13:58:50 +02:00
Artem Bilan
6c8554d980 Fix SI sample for compatibility with latest SI
* Fix test `FunctionSampleSpringIntegrationApplicationTests` to use AssertJ
2020-09-01 13:22:44 +02:00
buildmaster
a760083e18 Bumping versions 2020-07-24 18:55:36 +00:00
buildmaster
63dd852ca5 Bumping versions 2020-07-20 18:55:28 +00:00
buildmaster
4213d19180 Going back to snapshots 2020-07-20 14:25:39 +00:00
buildmaster
ae4efc2b9d Update SNAPSHOT to 3.1.0-M2 2020-07-20 14:23:39 +00:00
Oleg Zhurakousky
39fd3868f4 Updated shade plugin version 2020-07-20 15:08:46 +02:00
dsolomakha
4f0ebbe546 add plugin repositories to fix gcp-background sample
Resolves #558
2020-07-15 10:13:29 +02:00
Oleg Zhurakousky
2e5c670a28 Add condition to reset content-type only if it isd not already set
Polish some of the POMs to address missing dependencies
Temporary disconnect gcp background sample until errors are fixed
2020-07-13 14:21:02 +02:00
anshlykov
dfa02750c1 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
buildmaster
675fe8fb79 Bumping versions 2020-06-04 18:55:44 +00:00
Oleg Zhurakousky
c6dc8f9a72 Change from v.BUILD-SNAPSHOT to v-SNAPSHOT 2020-06-03 14:56:41 +02:00
buildmaster
38e1b79efd Bumping versions 2020-05-30 18:55:30 +00:00
dzou
e085c2d0be Fix the GCP integration tests 2020-05-27 13:58:20 +02:00
buildmaster
fe66d6020f Bumping versions 2020-05-26 18:55:14 +00:00
谭繁华
1f8b5a4a5a Fix GCP test
Resolves #521
Resolves #522
2020-05-26 16:10:20 +02:00
Oleg Zhurakousky
ce28ce2cb6 GH-514 Remove 'proxyInvokerIfNecessary()' method
It is really not needed as it does not add much value other then allows user to cast POJO function to its actual type. The reality is that the actual goald of POJO function is to make sure they can be looked at as plain Functions.

Resolves #514
2020-05-26 15:46:42 +02:00
Marcin Grzejszczak
d606fde3ef Skipping deployment of samples 2020-05-25 16:12:56 +02:00
dzou
a4788aba08 Add docs and updates for background function support
rename fuction-sample-gcp to function-sample-gcp-http

refdoc polish

background sample polish

Resolves #525
Update pub/sub bg function to use base64 encoding
2020-05-22 12:24:24 +02:00
Mike Eltsufin
d74111785d Re-enable GCP sample test and fix mvn not found
enable test output temporarily for Travis

Revert "enable test output temporarily for Travis"

This reverts commit a797ca75e8c7a48e57f988360e5d57dbb497a6fb.

Resolves #527
2020-05-21 11:26:15 +02:00