Closed ticoann closed 6 years ago
Jenkins results:
Jenkins results:
@yuyiguo, Yuyi, Serverside unittest is already included. I will add more validation check. You are taking about input validation right? child id has to be in the same block. The only problem is I have get the id some how first. Currently it seems only way is that listFiles with detail option True.
All validation are added. If you want to do more input validation let me know.
Jenkins results:
Jenkins results:
@yuyiguo, patch is updated as you suggested. However there is a bug on unittest.
https://github.com/dmwm/DBS/blob/master/Server/Python/tests/dbsserver_t/utils/DBSRestApi.py#L138
This is raising Exception although it says raising HTTPError.
So I can't really to asserRaise(HTTPError).
I try to fix is by just changing Exception to HTTPError. But there are underlining structure also need to be changed.
======================================================================
ERROR: test12a (dbsserver_t.unittests.web_t.DBSWriterModel_t.DBSWriterModel_t)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/afs/cern.ch/user/s/sryu/DBS/Server/Python/tests/dbsserver_t/unittests/web_t/DBSWriterModel_t.py", line 103, in wrapper
if self.msg not in ex.args[0]:
TypeError: argument of type 'int' is not iterable
For now I just catch Exception instead of HTTPError.
@yuyiguo, Please review