summaryrefslogtreecommitdiffstats
path: root/testapi/opnfv_testapi/tests/unit/fake_pymongo.py
AgeCommit message (Collapse)AuthorFilesLines
2021-03-28Allow verifying testapiCédric Ollivier1-3/+3
It allows running tox vs py27 (epydoc forces py27). It also fixes 2 indent issues. Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> Change-Id: I63e28089a56147b359a72eb330b5badbc6fc7d7f
2018-01-04Merge "add deployment result collecting interfaces"Serena Feng1-0/+1
2018-01-03add deployment result collecting interfacesSerenaFeng1-0/+1
Change-Id: I5fe50c44e7b36ea45dd1b8632130b30dfe173d0a Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2018-01-02leverage query_by_name decorator to simplify name queryingSerenaFeng1-0/+3
name query is case insensitive and partial match Change-Id: I65a6f5d3aa9411559cb9cf27d0fbd7ec46d4b26f Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2017-12-06remove useless print snippetSerenaFeng1-1/+0
Change-Id: I3ea4ea202bf2f5cf17ca585ccffbef3265ef7cc0 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2017-09-12leverage LFID authentication to pod creationSerenaFeng1-0/+1
only valid linux foundation user is allowed to create the new pod add owner field in pods to track the pod creator Change-Id: Icada07152069f7c826bfa6122cb86db8c4e3bf68 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2017-09-11add case-insensitive for find pods querythuva41-3/+9
Now user can't create the pods with the same name. Just like "Demo" , "deMo" and "demo" Add unit test for case-insensitive query Change-Id: Ifddc7b70a38d8504e5fe105fa5cc1a77bf0e39a9 Signed-off-by: thuva4 <tharma.thuva@gmail.com>
2017-07-21separate db methods from handler.pySerenaFeng1-1/+2
db methods are mingled in handler, which is not well structured Change-Id: I639679d3fc05a0b6528158186b8bf89e0cd10596 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2017-07-20role based access control and result uploadgrakiss1-2/+1
1. add role for user 2. user can upload test results Change-Id: I1c5370be7818edb0394f05e8b81f975deb98b286 Signed-off-by: grakiss <grakiss.wanglei@huawei.com>
2017-07-19bugfix: query doesn't work well with period=1SerenaFeng1-3/+7
when querying by date, if $lt is not provided, the empty/None/null/'' results will also be returned, the patch aims to fix this issue by adding $lt = datetime.now() if not provided JIRA: RELENG-212 Change-Id: Ida1e7d386a88d4ab640441df161c1fe134593f82 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2017-06-27bugfix: pagination crash due to memory limitationSerenaFeng1-7/+27
MongoDB sorts the results in memory, and the default mem limitation is 32M, if the sort operation consumes more than that it will return an error: OperationFailure: Executor error during find command: OperationFailed Sort operation used more than the maximum 33554432 bytes of RAM. Add an index, or specify a smaller limit. To solve this problem, here we leverage aggregate() and allowDiskUse=True, it is said will not be limited by memory Change-Id: Id698ad1d02912e8b350a33a926fcccc390814fcc Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2017-06-20support pagination in TestAPISerenaFeng1-5/+20
In this patch, pagination is supported, so you can go through results leveraging: http://testresults.opnfv.org/test/api/v1/results?page=2 Change-Id: Ibe31c787643f27dbb06c4899e713b3c8e716e784 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2017-02-22Add unit tests to token based authenticationrohitsakala1-0/+1
Projects has been choosen as an helper to test token success,invalid and unauthorized JIRA: FUNCTEST-739 Change-Id: Iecc68821f5cc85630c17e54144723cc6f5e21ded Signed-off-by: rohitsakala <rohitsakala@gmail.com>
2017-01-18implement get/query scenario(s) and add unittestSerenaFeng1-8/+60
supported queries: scenario name/version/installer/project JIRA: RELENG-163 Change-Id: I3f6ea6e3c81edff30569918e0789e8c1e693b9fc Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2017-01-16implement create scenario and add unittestSerenaFeng1-0/+1
JIRA: RELENG-163 Change-Id: Id715a2e5de1022cfd0a745505771d250935541bd Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2016-10-18rename result_collection_api to testapiSerenaFeng1-0/+191
Change-Id: Iec4e3db23cd44f30831e17c127eda74e9d9b5d14 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>