fixing doc links

polishing test
This commit is contained in:
Oleg Zhurakousky
2019-05-07 11:04:58 +02:00
parent 326eb59997
commit b7d2557656
7 changed files with 7 additions and 11 deletions

View File

@@ -1,3 +1,3 @@
This project provides an adapter layer for a Spring Cloud Function application onto AWS Lambda. You can write an app with a single `@Bean` of type `Function`, `Consumer` or `Supplier` and it will be deployable in AWS if you get the JAR file laid out right. The best way to make it work is to include `spring-cloud-function-context` as a dependency, but not the higher level adapters (e.g. `spring-cloud-function-stream`).
include::aws-intro.adoc[]
include::adapters/aws-intro.adoc[]

View File

@@ -8,7 +8,7 @@ The https://aws.amazon.com/[AWS] adapter takes a Spring Cloud Function app and c
== Introduction
include::aws-intro.adoc[]
include::adapters/aws-intro.adoc[]
== Functional Bean Definitions

View File

@@ -1,7 +1,7 @@
This project provides an adapter layer for a Spring Cloud Function application onto Azure.
You can write an app with a single `@Bean` of type `Function` and it will be deployable in Azure if you get the JAR file laid out right.
include::azure-intro.adoc[]
include::adapters/azure-intro.adoc[]
== Sample Function

View File

@@ -6,4 +6,4 @@
The https://azure.microsoft.com[Azure] adapter bootstraps a Spring Cloud Function context and channels function calls from the Azure framework into the user functions, using Spring Boot configuration where necessary. Azure Functions has quite a unique, but invasive programming model, involving annotations in user code that are specific to the platform. The easiest way to use it with Spring Cloud is to extend a base class and write a method in it with the `@FunctionName` annotation which delegates to a base class method.
include::azure-intro.adoc[]
include::adapters/azure-intro.adoc[]

View File

@@ -1,6 +1,6 @@
== Quick Start
include::openwhisk-quick-start.adoc[]
include::adapters/openwhisk-quick-start.adoc[]
== Examples

View File

@@ -7,4 +7,4 @@
The https://openwhisk.apache.org/[OpenWhisk] adapter is in the form of an executable jar that can be used in a a docker image to be deployed to Openwhisk. The platform works in request-response mode, listening on port 8080 on a specific endpoint, so the adapter is a simple Spring MVC application.
== Quick Start
include::openwhisk-quick-start.adoc[]
include::adapters/openwhisk-quick-start.adoc[]

View File

@@ -131,7 +131,6 @@ public class RoutingFunctionTests {
.contentType(MediaType.APPLICATION_JSON)
.header("function.name", "fluxconsumer")
.body(new String[] {"a", "b", "c"}), String.class);
//assertThat(postForEntity.getBody()).isEqualTo("[\"A\",\"B\",\"C\"]");
assertThat(postForEntity.getStatusCode()).isEqualTo(HttpStatus.OK);
}
@@ -192,11 +191,8 @@ public class RoutingFunctionTests {
@Bean
public Consumer<Flux<String>> fluxconsumer() {
// return v -> v.map(value -> {
// return value.toUpperCase();
// });
return flux -> flux.doOnNext(s -> {
System.out.println(s + " jkljlkjlkj l");
System.out.println("Received: " + s);
}).subscribe();
}