-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
implement actual grpc trigger (#903)
- Loading branch information
Showing
25 changed files
with
435 additions
and
53 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
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
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
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
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,52 @@ | ||
id: f89be07c-3efb-4389-b2ea-06ebcc5ab144 | ||
name: Test Create with gRCP trigger | ||
description: "" | ||
trigger: | ||
type: grpc | ||
grpc: | ||
protobufFile: | | ||
syntax = "proto3"; | ||
option java_multiple_files = true; | ||
option java_outer_classname = "PokeshopProto"; | ||
option objc_class_prefix = "PKS"; | ||
package pokeshop; | ||
service Pokeshop { | ||
rpc getPokemonList (GetPokemonRequest) returns (GetPokemonListResponse) {} | ||
rpc createPokemon (Pokemon) returns (Pokemon) {} | ||
rpc importPokemon (ImportPokemonRequest) returns (ImportPokemonRequest) {} | ||
} | ||
message ImportPokemonRequest { | ||
int32 id = 1; | ||
} | ||
message GetPokemonRequest { | ||
optional int32 skip = 1; | ||
optional int32 take = 2; | ||
} | ||
message GetPokemonListResponse { | ||
repeated Pokemon items = 1; | ||
int32 totalCount = 2; | ||
} | ||
message Pokemon { | ||
optional int32 id = 1; | ||
string name = 2; | ||
string type = 3; | ||
bool isFeatured = 4; | ||
optional string imageUrl = 5; | ||
} | ||
address: localhost:8002 | ||
method: pokeshop.Pokeshop.importPokemon | ||
request: | | ||
{ | ||
"id": 52 | ||
} | ||
testDefinition: | ||
- selector: span[tracetest.span.type="rpc"] | ||
assertions: | ||
- tracetest.selected_spans.count = 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
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
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
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
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
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
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
Oops, something went wrong.