Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviazhang0809 authored and cl1337 committed Jan 5, 2018
1 parent e77106e commit 339019d
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 6 deletions.
2 changes: 2 additions & 0 deletions backend/repository/data/client/baz_client_update.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
"Call": "SimpleService::call",
"Compare": "SimpleService::compare",
"DeliberateDiffNoop": "SimpleService::sillyNoop",
"TestUUID": "SimpleService::testUuid",
"URLTest": "SimpleService::urlTest",
"EchoI8": "SecondService::echoI8",
"EchoI16": "SecondService::echoI16",
"EchoI32": "SecondService::echoI32",
Expand Down
4 changes: 3 additions & 1 deletion backend/repository/data/client_config_updated_expected.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@
"EchoStructSet": "SecondService::echoStructSet",
"EchoTypedef": "SecondService::echoTypedef",
"Ping": "SimpleService::ping",
"Trans": "SimpleService::trans"
"TestUUID": "SimpleService::testUuid",
"Trans": "SimpleService::trans",
"URLTest": "SimpleService::urlTest"
}
}
}
4 changes: 3 additions & 1 deletion backend/repository/data/gateway_config_expected.json
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,9 @@
"EchoStructSet": "SecondService::echoStructSet",
"EchoTypedef": "SecondService::echoTypedef",
"Ping": "SimpleService::ping",
"Trans": "SimpleService::trans"
"TestUUID": "SimpleService::testUuid",
"Trans": "SimpleService::trans",
"URLTest": "SimpleService::urlTest"
},
"ip": "127.0.0.1",
"port": 4002,
Expand Down
12 changes: 9 additions & 3 deletions backend/repository/data/handler/test_cases.json
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,9 @@
"EchoStructSet": "SecondService::echoStructSet",
"EchoTypedef": "SecondService::echoTypedef",
"Ping": "SimpleService::ping",
"Trans": "SimpleService::trans"
"TestUUID": "SimpleService::testUuid",
"Trans": "SimpleService::trans",
"URLTest": "SimpleService::urlTest"
},
"ip": "127.0.0.1",
"name": "baz",
Expand Down Expand Up @@ -2648,7 +2650,9 @@
"EchoStructSet": "SecondService::echoStructSet",
"EchoTypedef": "SecondService::echoTypedef",
"Ping": "SimpleService::ping",
"Trans": "SimpleService::trans"
"TestUUID": "SimpleService::testUuid",
"Trans": "SimpleService::trans",
"URLTest": "SimpleService::urlTest"
},
"ip": "127.0.0.1",
"name": "baz",
Expand Down Expand Up @@ -3591,7 +3595,9 @@
"EchoStructSet": "SecondService::echoStructSet",
"EchoTypedef": "SecondService::echoTypedef",
"Ping": "SimpleService::ping",
"Trans": "SimpleService::trans"
"TestUUID": "SimpleService::testUuid",
"Trans": "SimpleService::trans",
"URLTest": "SimpleService::urlTest"
},
"ip": "127.0.0.1",
"name": "baz",
Expand Down
4 changes: 3 additions & 1 deletion examples/example-gateway/clients/baz/client-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@
"EchoStructSet": "SecondService::echoStructSet",
"EchoTypedef": "SecondService::echoTypedef",
"Ping": "SimpleService::ping",
"Trans": "SimpleService::trans"
"TestUUID": "SimpleService::testUuid",
"Trans": "SimpleService::trans",
"URLTest": "SimpleService::urlTest"
}
}
}
14 changes: 14 additions & 0 deletions examples/idl-registry/idl/endpoints/baz/baz.thrift
Original file line number Diff line number Diff line change
Expand Up @@ -92,4 +92,18 @@ service SimpleService {
zanzibar.http.path = "/baz/silly-noop"
zanzibar.handler = "baz.sillyNoop"
)

void testUuid() (
zanzibar.http.status = "204"
zanzibar.http.method = "GET"
zanzibar.http.path = "/baz/test-uuid"
zanzibar.handler = "baz.testUuid"
)

void urlTest() (
zanzibar.http.status = "204"
zanzibar.http.method = "GET"
zanzibar.http.path = "/baz/url-test"
zanzibar.handler = "baz.urlTest"
)
}

0 comments on commit 339019d

Please sign in to comment.