Open
Description
Describe the subtask
Currently, the only using GravitonClient to integration test in the integration-test
module, it doesn't cover the test from end to end, we highly leverage Graviton's Jackson serialization/deserialization and original rest client, and it cannot simulate the use case where the user writes a restful request manually.
Example
For example, We can use an original REST client (like, Apache HttpClient) to connect Graviton Server and testing all of the REST interfaces.
curl -X POST -H "Content-Type: application/json" -d '{"name":"company1","comment":"company1 Game","properties":{}}' http://192.168.123.127:8090/api/metalakes
curl -X POST -H "Content-Type: application/json" -d '{"name":"us_hive","type":"RELATIONAL","comment":"Hive on USA","properties":{"provider":"hive","hive.metastore.uris":"thrift://localhost:9083"}}' http://192.168.123.127:8090/api/metalakes/company1/catalogs
curl -X POST -H "Content-Type: application/json" -d '{"name":"jp_hive","type":"RELATIONAL","comment":"Hive on Japan","properties":{"provider":"hive","hive.metastore.uris":"thrift://localhost:9183"}}' http://192.168.123.127:8090/api/metalakes/company1/catalogs
curl -X DELETE -H "Content-Type: application/json" http://192.168.123.127:8090/api/metalakes/company1/catalogs/us_hive/schemas/game1_db/tables/player
curl -X DELETE -H "Content-Type: application/json" http://192.168.123.127:8090/api/metalakes/company1/catalogs/us_hive/schemas/game1_db/tables/sales
curl -X DELETE -H "Content-Type: application/json" http://192.168.123.127:8090/api/metalakes/company1/catalogs/us_hive/schemas/game1_db
curl -X DELETE -H "Content-Type: application/json" http://192.168.123.127:8090/api/metalakes/company1/catalogs/us_hive
curl -X DELETE -H "Content-Type: application/json" http://192.168.123.127:8090/api/metalakes/company1/catalogs/jp_hive/schemas/game2_db/tables/player
curl -X DELETE -H "Content-Type: application/json" http://192.168.123.127:8090/api/metalakes/company1/catalogs/jp_hive/schemas/game2_db/tables/sales
curl -X DELETE -H "Content-Type: application/json" http://192.168.123.127:8090/api/metalakes/company1/catalogs/jp_hive/schemas/game2_db
curl -X DELETE -H "Content-Type: application/json" http://192.168.123.127:8090/api/metalakes/company1/catalogs/jp_hive
curl -X DELETE -H "Content-Type: application/json" http://192.168.123.127:8090/api/metalakes/company1
Parent issue
Metadata
Metadata
Assignees
Labels
No labels