summaryrefslogtreecommitdiffstats
path: root/testapi
AgeCommit message (Collapse)AuthorFilesLines
2017-11-14Create functionality and e2e tests for projectthuva415-43/+444
Implemented the create function for the projects. Wrote the e2e tests for the create function. Change-Id: Iceac650573ca31b6246350c4d60033b42e0ffb0f Signed-off-by: thuva4 <tharma.thuva@gmail.com>
2017-11-03Merge "add simple e2e tests for PodsCotroller"Serena Feng6-0/+395
2017-11-01add simple e2e tests for PodsCotrollerthuva46-0/+395
Change-Id: I9baa04ff062f36569c1e143014239931de64cf32 Signed-off-by: thuva4 <tharma.thuva@gmail.com>
2017-10-31remove components out side of 3rd_partySerenaFeng19-0/+1
components are implemented by TestAPI team, they are not the third party code, put them under opnfv_testapi/ui directory Change-Id: Ia0f5e2afe4bcb12bcb74d3a8d78fb28fe1432bec Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2017-10-30Merge "divide resources into handlers and models"Serena Feng34-227/+106
2017-10-27divide resources into handlers and modelsSerenaFeng34-227/+106
divide resources into handlers&models put ui handlers into handlers directory put User into user_models.py Change-Id: I3d9e260097205213c3ea8d4eac08b9019e017f71 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2017-10-27add develop guide for testapiSerenaFeng13-5/+381
Change-Id: Iaa9c15092aafda2024f08c467eea2f3ab9cddd96 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2017-10-27bugfix: E722 do not use bare exceptSerenaFeng3-4/+4
new added pep8 check: https://build.opnfv.org/ci/job/testapi-verify-master/435/console Change-Id: I29c1ffbb534babf55ec2fe675001cc85b9e2e922 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2017-10-23Merge "allow authentication to be disabled"Serena Feng5-8/+18
2017-10-20allow authentication to be disabledSerenaFeng5-8/+18
in local deployment situation, authentication can be disabled by setting authenticate=False of ui section in config.ini JIRA: RELENG-324 Change-Id: I9157d1723851feb12435033dbdd59035e3eb5777 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2017-10-20criteria field must be 'PASS/FAIL'SerenaFeng5-2/+33
criteria must be fix with 'PASS/FAIL', case insensitive or else, BADREQUEST exception will be raises JIRA: RELENG-327 Change-Id: Ic648b9d38937fc63924e42cfdf5345cdaa32e1ed Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2017-10-16delete legacy update codeSerenaFeng14-610/+0
update directory was employed to update TestAPI before auto deployment is adopted, now it is useless and can be deleted. Change-Id: I4e5ae84e80879cd9f711dc1d02224ae4f5902e49 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2017-10-16fix yamllint verify failSerenaFeng2-1/+3
fail record: https://build.opnfv.org/ci/job/opnfv-yamllint-verify-master/1050/console Change-Id: Ic709b9a3d1d3642a3deebd930714a2ba2de22da6 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2017-10-13Added license metadata to specify Apache-2.0rpaik1-0/+1
Change-Id: Id2e6b148f896eee5122339e501c8604e74ef774c Signed-off-by: rpaik <rpaik@linuxfoundation.org>
2017-10-11put htmlize directory under jjb/relengSerenaFeng3-105/+0
centralize jjb related scripts Change-Id: I4abeb06f17b48b8e7ac15803db0f3ce7eb0c1b93 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2017-09-21Merge "bugfix: autoupdate failed due to mingle with watchdog"Morgan Richomme1-165/+0
2017-09-21refactor one click deployment in testapiSerenaFeng3-55/+55
substitue docker-compose.template with string description, so that user can wget deploy.py and execute directly. Change-Id: I9703a1c8dfbdc46470561d54c6663e3728540162 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2017-09-21bugfix: autoupdate failed due to mingle with watchdogSerenaFeng1-165/+0
1. In the original design, if the auto-job starts soon after the watchdog starts, the auto update might be mingled with connectivity check, which may lead to update failure. so instead, the connectivity is checked first, if failed and module is not in deploying, restart module. 2. only automate-docker-deploy job will impact the container status during auto-job, so substitue auto-job status check with automate-docker-deploy's 3. the watchdog is not only for testapi, but also for reporting, and all docker container server deployed in testresults.opnfv.org, so move it under utils/test/opts, which is leveraged to store tool-sets employed for testing tools. Change-Id: I766f3a534a3d510ce7509d4e742150150ccd8f54 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2017-09-18Bug Fix: Using library for urlencodeutkarshrai981-19/+18
Changes to method call _set_query Change-Id: I95837df57cc98c21ff5d95d9753269490c025dd3 Signed-off-by: utkarshrai98 <utkarshrai98@gmail.com>
2017-09-16Merge "testing for raise in config.py"Serena Feng1-0/+9
2017-09-12leverage LFID authentication to pod creationSerenaFeng10-23/+128
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-12leverage token_check only when posting resultsSerenaFeng3-77/+17
In this patch begin to consider the LFID authentication, token check only effects results, the permission of other resources(pods/projects...) will be checked by LFID. Change-Id: I20f6f221e3bd75ebf06dcd91012898b913f1d0be Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2017-09-12testing for raise in config.pyutkarshrai981-0/+9
Change-Id: I3b4f21307af55c8f32332502ddcb9315074b7202 Signed-off-by: utkarshrai98 <utkarshrai98@gmail.com> Testing for the raise in test_config.py Change-Id: Iea7ae53b5eac51d3e3eaf9f23d6e8cd79919f103 Signed-off-by: utkarshrai98 <utkarshrai98@gmail.com>
2017-09-12Merge "add case-insensitive for find pods query"Serena Feng4-4/+24
2017-09-12Merge "update Readme.rst to be consistent with current implementation"Serena Feng1-36/+65
2017-09-11Merge "Fix the error in the podscontroller."Aric Gardner1-2/+2
2017-09-11Handle error in front-endthuva41-4/+5
Handle the error and show appropriate message, without showing the entire error to the users Change-Id: Ib5213190efc1e87d56a7329a4572b525a5e16a12 Signed-off-by: thuva4 <tharma.thuva@gmail.com>
2017-09-11Fix the error in the podscontroller.thuva41-2/+2
remove the unnecessary "$rootscope" in the controller's parameters. Change-Id: Ia048af9e146e871003307af27faca24a5ee225ca Signed-off-by: thuva4 <tharma.thuva@gmail.com>
2017-09-11add case-insensitive for find pods querythuva44-4/+24
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-09-11Merge "Updating reporting url and fixed a bug"Serena Feng1-10/+10
2017-09-07Updating reporting url and fixed a bugSakala Venkata Krishna Rohit1-10/+10
Changing the url of the reporting to the original one. Change-Id: I2973a4b7d28cbdd725a4764dffbf777c3fc2e937 Signed-off-by: Sakala Venkata Krishna Rohit <rohitsakala@gmail.com>
2017-09-06update Readme.rst to be consistent with current implementationSerenaFeng1-36/+65
Change-Id: Ie8abeca5901cce635f54f0c01496a7181287d0cd Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2017-09-06hide cas ticket from web portalSerenaFeng6-47/+49
In the previous implementation, when login the url will shown as: http://localhost:8000/?ticket=ST-5WzYs6SD2A#/ this patch aims to hide the ticket mechanism. 1) add /api/v1/auth/signin_return to process login verify 2) refactor code, leverage SignBaseHanlder() to manage casclient Change-Id: I62e23eb69ee52304c30753e861b4f0a4e0d45541 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2017-09-05Merge "Refactored docker watchdog code"Morgan Richomme1-38/+25
2017-09-05Merge "hide create_pod function from anonymous user"Serena Feng2-7/+8
2017-09-05bugfix: TestAPI start failed due to config.ini not foundSerenaFeng2-2/+2
not specifying abspath, so that the config.ini is installed under /usr/local/etc/opnfv_testapi/config.ini Change-Id: If9f4d1ab2d6a67a4aa5b5d481f46e9eddb4a2cbb Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2017-09-05Merge "bugfix: leverage data_files to stop hacking setup.py"Serena Feng8-27/+11
2017-09-05bugfix: container start failed due to config_file set to NonetypeSerenaFeng1-1/+1
Traceback (most recent call last): File "/usr/local/bin/opnfv-testapi", line 6, in <module> from opnfv_testapi.cmd.server import main File "/usr/local/lib/python2.7/dist-packages/opnfv_testapi/cmd/server.py", line 34, in <module> from opnfv_testapi.common.config import CONF File "/usr/local/lib/python2.7/dist-packages/opnfv_testapi/common/config.py", line 67, in <module> CONF = Config() File "/usr/local/lib/python2.7/dist-packages/opnfv_testapi/common/config.py", line 21, in __init__ self._parse() File "/usr/local/lib/python2.7/dist-packages/opnfv_testapi/common/config.py", line 29, in _parse if not os.path.exists(self.config_file): File "/usr/lib/python2.7/genericpath.py", line 18, in exists os.stat(path) TypeError: coercing to Unicode: need string or buffer, NoneType found Change-Id: Ifa26b5b52e7f1c19a773b02ecc1c45b59b5dc09b Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2017-09-05Merge "improve: discard venv support for official product"Serena Feng1-13/+2
2017-09-04Refactored docker watchdog codeSakala Venkata Krishna Rohit1-38/+25
Removed start_containers fix as it was redundant. Checking jenkins job status for each module separately as deployment of one module doesn't depend on other module. Change-Id: I8ce34b9b7458ac56c9b866b5add539ad304095ed Signed-off-by: Sakala Venkata Krishna Rohit <rohitsakala@gmail.com>
2017-09-04bugfix: leverage data_files to stop hacking setup.pySerenaFeng8-27/+11
1) leverage data_files to distribute ui related files, and dispatch them under /usr/local/share/opnfv_testapi 2) delete hacking coding, no more extra processes 3) utilize MANIFEST.in to include 3rd_party when producing a source distribution Change-Id: Idb83a02be11f6b24610191e9f85e0db80d92e972 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2017-09-04hide create_pod function from anonymous userSerenaFeng2-7/+8
Querying pods is open to everybody But only login users are allowed to create the new pod Change-Id: I1c722580c2c51a8a8b0f84f1ffac451dff20b086 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2017-09-04improve: discard venv support for official productSerenaFeng1-13/+2
virtual env is only to facilitate the development, not be used in official product, thus delete the support, let the developer manage their own development env. Change-Id: I33af882ab257e88b1e7a316d1d78197d6279933d Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2017-09-04clarify obsoleted test configuration filesSerenaFeng7-83/+3
delete noparam.ini/nosection.ini/notboolean.ini/notint.ini/normal.ini substitute normal.ini with etc/config.ini Change-Id: I7e2fa331736a2f9bf807814416a3118be5f613e5 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2017-09-04Merge "leverage LFID as Authentication"Serena Feng14-204/+104
2017-09-01Merge "Add watchdog into testresults server to restart docker containers."Aric Gardner1-0/+178
2017-08-31leverage LFID as AuthenticationSerenaFeng14-204/+104
delete openid authentication add LFID authentication Change-Id: Iead144b5130bce51448024e65092fdea3bb2f07a Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2017-08-30Added the validation for name field in create pod functionthuva42-16/+21
Change-Id: I18a072c7b2677794a64693135904cf97eb7b3349 Signed-off-by: thuva4 <tharma.thuva@gmail.com>
2017-08-29Add watchdog into testresults server to restart docker containers.Sakala Venkata Krishna Rohit1-0/+178
Unexpected crashing of docker containers were occuring. So, a cron script is to be run in regular intervals which will check for status of the deployments and restart docker if necessary. Docker restart is seen as a solution to solve majority of crashes. Suggest if there is a better approach. Change-Id: I40d56180350844b4a0f766e1b10a9fabfa02d3be Signed-off-by: Sakala Venkata Krishna Rohit <rohitsakala@gmail.com>
2017-08-29Merge "leverage setup.py directly to install TestAPI"Serena Feng4-32/+12