forked from pact-foundation/pact-reference
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add demo of pact-ruby-ffi issue 6
1. create an existing pact with single plugin interaction 2. create a new plugin interaction that only differs by interaction description expected: 2 interactions are generated, identical bar interaction description actual: existing interaction is modified at response[0].contents, when merging 2nd interaction
- Loading branch information
Showing
2 changed files
with
157 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
syntax = "proto3"; | ||
|
||
package area_calculator; | ||
|
||
option php_generic_services = true; | ||
option go_package = "io.pact/area_calculator"; | ||
|
||
service Calculator { | ||
rpc calculateOne (ShapeMessage) returns (AreaResponse) {} | ||
rpc calculateMulti (AreaRequest) returns (AreaResponse) {} | ||
} | ||
|
||
message ShapeMessage { | ||
oneof shape { | ||
Square square = 1; | ||
Rectangle rectangle = 2; | ||
Circle circle = 3; | ||
Triangle triangle = 4; | ||
Parallelogram parallelogram = 5; | ||
} | ||
} | ||
|
||
message Square { | ||
float edge_length = 1; | ||
} | ||
|
||
message Rectangle { | ||
float length = 1; | ||
float width = 2; | ||
} | ||
|
||
message Circle { | ||
float radius = 1; | ||
} | ||
|
||
message Triangle { | ||
float edge_a = 1; | ||
float edge_b = 2; | ||
float edge_c = 3; | ||
} | ||
|
||
message Parallelogram { | ||
float base_length = 1; | ||
float height = 2; | ||
} | ||
|
||
message AreaRequest { | ||
repeated ShapeMessage shapes = 1; | ||
} | ||
|
||
message AreaResponse { | ||
repeated float value = 1; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters