1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-17 18:07:01 +00:00

add a full gRPC example as previously requested at: https://github.com/kataras/iris/issues/1449

Former-commit-id: 0cb5121e7d44644f7f0eb34597ff34274157fe95
This commit is contained in:
Gerasimos (Makis) Maropoulos
2020-03-07 12:53:23 +02:00
parent dd18dc9ee8
commit aea836efc7
11 changed files with 414 additions and 24 deletions

View File

@@ -10,7 +10,7 @@ func TestGRPCCompatible(t *testing.T) {
app := newApp()
e := httptest.New(t, app)
e.POST("/login").WithJSON(map[string]string{"username": "makis"}).Expect().
e.POST("/hello").WithJSON(map[string]string{"name": "makis"}).Expect().
Status(httptest.StatusOK).
JSON().Equal(map[string]string{"message": "makis logged"})
JSON().Equal(map[string]string{"message": "Hello makis"})
}