dmwm / dbs2go

DBS server written in Go
MIT License
5 stars 4 forks source link

Blocks GET API Query Parameter Check #33

Closed d-ylee closed 2 years ago

d-ylee commented 2 years ago

While doing a blocks GET test, test29a1 in DBSClientReader_t shows that without providing one of the four required query parameters (dataset, block_name,data_tier_name,logical_file_name), the server should respond with HTTP 400. This was added to this server.

Original Test: https://github.com/dmwm/DBSClient/blob/0037373af2c7df509438d455bae60796b25bbcd5/tests/dbsclient_t/unittests/DBSClientReader_t.py#L278-L281

DBS logic: https://github.com/dmwm/DBS/blob/14df8bbe8ee8f874fe423399b18afef911fe78c7/Server/Python/src/dbs/business/DBSBlock.py#L233-L245