update all and fix tests

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
2021-08-17 01:11:23 +03:00
parent 8c4c9f20b8
commit 6b666fe1a4
26 changed files with 404 additions and 345 deletions

View File

@@ -14,17 +14,17 @@ service TestDouble {
rpc CallDouble(CallReq) returns (CallRsp) {
option (micro.openapiv2.openapiv2_operation) = {
operation_id: "Call";
responses: {
key: "default";
responses: {
response_code: {
name: "default";
value: {
description: "Error response";
schema: {
json_schema: {
ref: ".test.Error";
}
}
}
}
json_reference: {
description: "Error response";
_ref: ".test.Error";
};
};
};
};
};
option (micro.api.http) = { post: "/v1/testdouble/call/name/{name}"; body: "*"; };
option (micro.api.micro_method) = { timeout: 5; };
@@ -35,17 +35,17 @@ service Test {
rpc CallRepeatedString(CallReq) returns (CallRsp) {
option (micro.openapiv2.openapiv2_operation) = {
operation_id: "CallRepeatedString";
responses: {
key: "default";
responses: {
response_code: {
name: "default";
value: {
description: "Error response";
schema: {
json_schema: {
ref: ".test.Error";
}
}
}
}
json_reference: {
description: "Error response";
_ref: ".test.Error";
};
};
};
};
};
option (micro.api.http) = { post: "/v1/test/call_repeated_string/{string_ids}"; body: "*"; };
option (micro.api.micro_method) = { timeout: 5; };
@@ -53,17 +53,17 @@ service Test {
rpc CallRepeatedInt64(CallReq) returns (CallRsp) {
option (micro.openapiv2.openapiv2_operation) = {
operation_id: "CallRepeatedInt64";
responses: {
key: "default";
responses: {
response_code: {
name: "default";
value: {
description: "Error response";
schema: {
json_schema: {
ref: ".test.Error";
}
}
}
}
json_reference: {
description: "Error response";
_ref: ".test.Error";
};
};
};
};
};
option (micro.api.http) = { post: "/v1/test/call_repeated_int64/{int64_ids}"; body: "*"; };
option (micro.api.micro_method) = { timeout: 5; };
@@ -74,17 +74,17 @@ service Test {
rpc Call(CallReq) returns (CallRsp) {
option (micro.openapiv2.openapiv2_operation) = {
operation_id: "Call";
responses: {
key: "default";
responses: {
response_code: {
name: "default";
value: {
description: "Error response";
schema: {
json_schema: {
ref: ".test.Error";
}
}
}
}
json_reference: {
description: "Error response";
_ref: ".test.Error";
};
};
};
};
};
option (micro.api.http) = { post: "/v1/test/call/{name}"; body: "*"; };
option (micro.api.micro_method) = { timeout: 5; };
@@ -92,17 +92,17 @@ service Test {
rpc CallError(CallReq1) returns (CallRsp1) {
option (micro.openapiv2.openapiv2_operation) = {
operation_id: "CallError";
responses: {
key: "default";
responses: {
response_code: {
name: "default";
value: {
description: "Error response";
schema: {
json_schema: {
ref: ".test.Error";
}
}
}
}
json_reference: {
description: "Error response";
_ref: ".test.Error";
};
};
};
};
};
option (micro.api.http) = { post: "/v1/test/callerror/{name}"; body: "*"; };
};