Skip to content

[Subtask] Original rest client e2e testing #291

Open
@xunliu

Description

@xunliu

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

#169

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions