Hi, everyone! Any suggestions/experience on how to...
# general
b
Hi, everyone! Any suggestions/experience on how to employ contract testing for "long" consumer-provider chains, where the data is consumed by pacticipants that do not interact directly?
One simple example would be a chain with 3 pacticipants
A <> B <> C
, where
B
is not using the
C
response, but it simply wraps it and forwards it to
A
. That is: •
A
is in the position to write meaningful interactions against
C
, (
A
"consumes" `C`'s response), but
A
interacts with
B
B
interacts with
C
, but it has no requirements on the response (it treats it as an opaque payload), so cannot define meaningful interactions for
C
to verify.
b
m
Is
B
a gateway or proxy Bogdan? What’s it’s role in the process?
b
B
is providing access to a service (which
A
cannot access directly). All
B
is advertising is:
Copy code
{
    "results" : { ... }
}
where the payload received from
C
is simply returned inside the
results
value.