You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{samples_code}/standalone/dsl/http-server/src/test/resources/contracts/yml/fraud/shouldReturnFraudStats.yml[Click here to see the code]
59
56
60
57
In the `metadata` section we've set an entry with key `wiremock` and its value is a JSON `StubMapping` that sets a delay in the generated stub. Such code allowed us to get the following merged WireMock JSON stub.
Copy file name to clipboardExpand all lines: docs/modules/ROOT/pages/docker-project.adoc
+1-3Lines changed: 1 addition & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -180,8 +180,6 @@ in case of polyglot applications) then you'll have to have the following prerequ
180
180
181
181
The contract needs to call a `triggerMessage(...)` method. That method is already provided in the base class for all tests in the docker image and will send out a request to the HTTP endpoint on the producer side. Below you can find examples of such contracts.
Copy file name to clipboardExpand all lines: docs/modules/ROOT/pages/getting-started/cdc.adoc
+17-87Lines changed: 17 additions & 87 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,34 +24,15 @@ Social remarks
24
24
discuss changes while going through the process.
25
25
* CDC is all about communication.
26
26
27
-
The server-side code is available under Spring Cloud Contract's repository `samples/standalone/dsl/http-server` path, and the client-side code is available under Spring Cloud Contract's repository `samples/standalone/dsl/http-client` path.
27
+
The server-side code is available under {samples_code}[Spring Cloud Contract Samples] repository `samples/standalone/dsl/http-server` path, and the client-side code is available under Spring Cloud Contract's repository `samples/standalone/dsl/http-client` path.
28
28
29
29
TIP: In this case, the producer owns the contracts. Physically, all the contracts are
30
30
in the producer's repository.
31
31
32
32
[[getting-started-cdc-technical-note]]
33
33
== Technical Note
34
34
35
-
If you use the SNAPSHOT, Milestone, or Release Candidate versions, you need to add the
{samples_code}/standalone/dsl/http-server/src/test/resources/contracts/fraud/shouldMarkClientAsFraud.groovy[Click here to see the Groovy Code]
112
+
113
+
{samples_code}/standalone/dsl/http-server/src/test/resources/contracts/yml/fraud/shouldMarkClientAsFraud.yml[Click here to see the YAML Code]
128
114
129
115
IMPORTANT: It is expected that contracts are coming from a **trusted source**. You should never download nor interact with contracts coming from untrusted locations.
0 commit comments