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:
@@ -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"})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user