summaryrefslogtreecommitdiffstats
path: root/testapi/testapi-client/testapiclient
AgeCommit message (Collapse)AuthorFilesLines
2018-05-10Merge "Add testcase client"Serena Feng2-0/+154
2018-05-08Add testcase clientthuva42-0/+154
Change-Id: I75825642f21ab0818f5c08e6be2510f36cdadb19 Signed-off-by: thuva4 <tharma.thuva@gmail.com>
2018-05-08Merge "Add deploy result model to testapi client"Serena Feng2-7/+22
2018-05-07Merge "Add result model to the client"Serena Feng2-6/+19
2018-05-07Merge "Add testcase model in the client"Serena Feng2-12/+27
2018-05-07Merge "Add project model in testapiclient"Serena Feng2-6/+13
2018-05-07Merge "Add scenario and scenario related models to testapi client"Serena Feng2-53/+131
2018-05-07Merge "Add get functionality for the import module"Serena Feng4-3/+115
2018-05-07Add deploy result model to testapi clientthuva42-7/+22
Change-Id: I53881146306087da5da967408d2a585a8775f641 Signed-off-by: thuva4 <tharma.thuva@gmail.com>
2018-05-07Add get functionality for the import modulethuva44-3/+115
Tested Module will deserialize the json objects from the server to Pod instance. Change-Id: I3e2cb9386f8949d544624be687ee227ae4529d72 Signed-off-by: thuva4 <tharma.thuva@gmail.com>
2018-05-07Add scenario and scenario related modelsthuva42-53/+131
to testapi client Change-Id: I9d1f7f19b030b8a7a762abed33e7b4f0efa0854f Signed-off-by: thuva4 <tharma.thuva@gmail.com>
2018-05-07Add project model in testapiclientthuva42-6/+13
Change-Id: If238e2d22f3c895264c90579c7c4d0b442f6c82a Signed-off-by: thuva4 <tharma.thuva@gmail.com>
2018-05-07Add testcase model in the clientthuva42-12/+27
Change-Id: I54b8caf8b1291229b01eb39d50c3997983dd81e9 Signed-off-by: thuva4 <tharma.thuva@gmail.com>
2018-05-07Add result model to the clientthuva42-6/+19
Change-Id: I0921835f8d1042b2d0c12f3972bda24736741d55 Signed-off-by: thuva4 <tharma.thuva@gmail.com>
2018-04-26Merge "Add tests to check clientmanager auth function"Serena Feng2-2/+52
2018-04-26Add tests to check clientmanager auth functionthuva42-2/+52
JIRA: RELENG-379 Change-Id: Ia1b36cabc1b0750f5a9dab8509c1c9b868889e7a Signed-off-by: thuva4 <tharma.thuva@gmail.com>
2018-04-23impl import-testapiclient frameworkSerenaFeng6-2/+43
the usage: from testapiclient.client import pods pod_client = pods.PodsClient(user='test', password='pass') pod_client.create({'name': 'test-api', 'mode':'metal', 'role':'community_ci', 'details':''} from testapiclient.client import pods from testapiclient.models import pods as pm pod_client = pods.PodsClient(user='test', password='pass') pod = pm.Pods(name='test') pod_client.create(pod.__dict__) Change-Id: I6a7770d0b54f5570552a6ebbf1c42a638723997c Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2018-04-13Add CRUD funtionalities for results in testapiclientthuva43-1/+203
Tests included Change-Id: If0bcac51391c2f2debd27831f10ef89e417f9ad1 Signed-off-by: thuva4 <tharma.thuva@gmail.com>
2018-04-10Merge "Add CRUD operations for deployresults with tests"Serena Feng2-0/+209
2018-04-10Add CRUD operations for deployresults with teststhuva42-0/+209
Change-Id: I679b6c1b0723ed3df2a9b0e6af5d9a149ede9987 Signed-off-by: thuva4 <tharma.thuva@gmail.com>
2018-04-08remove useless placeholderSerenaFeng1-6/+0
Change-Id: Ie3b93826271c0ee2984509bbaa8c92ae68f32d0d Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2018-03-23Add scores CRUD in testapiclientthuva42-0/+77
implement interface to do CRUD operations for scores in testapiclient Tests are added Change-Id: Icf73a0ecdadcd51c0457837306d24ec7851500eb Signed-off-by: thuva4 <tharma.thuva@gmail.com>
2018-03-23Add trust indicators CRUD in testapiclientthuva42-0/+81
implement interface to do CRUD operations for trust indicators in testapiclient Tests are added Change-Id: I06b4c217d11fa55fa34387b9199aa98ac273e0a2 Signed-off-by: thuva4 <tharma.thuva@gmail.com>
2018-03-23Add customs CRUD in testapiclientthuva42-0/+187
implement interface to do CRUD operations for customs in testapiclient Tests are added Change-Id: I8a18323c2e679ab022702a607a53ad01ee60a6af Signed-off-by: thuva4 <tharma.thuva@gmail.com>
2018-03-23Add projects CRUD in testapiclientthuva42-0/+179
implement interface to do CRUD operations for projects in testapiclient Tests are added Change-Id: I777b684b0a48a81de4555aa77bef88fd19249458 Signed-off-by: thuva4 <tharma.thuva@gmail.com>
2018-03-23CRUD operations for scenario versions inthuva42-0/+214
testapiclient Test are added Change-Id: I8be5c04f4b6baed47dbf6d229c32eff5a47a8558 Signed-off-by: thuva4 <tharma.thuva@gmail.com>
2018-03-23Add installers CRUD in testapiclientthuva45-6/+149
implement interface to do CRUD operations for installers in testapiclient Tests are added Change-Id: I025b01c5b48d5b04cfcead8ee7818c0a1752cec0 Signed-off-by: thuva4 <tharma.thuva@gmail.com>
2018-03-21Add testcases CRUD in testapiclientthuva43-2/+276
implement interface to do CRUD operations for testcases in testapiclient + tests Change-Id: I59a810b6ba496d672fdf04be465ca5581dc58a3f Signed-off-by: thuva4 <tharma.thuva@gmail.com>
2018-03-19Add scenarios CRUD in testapiclientthuva42-0/+283
implement interface to do CRUD operations for scenarios in testapiclient + tests Change-Id: Ia952bd29e88d867a2873af79c3424953142676d3 Signed-off-by: thuva4 <tharma.thuva@gmail.com>
2018-03-15delete useless get_parserSerenaFeng1-11/+0
Change-Id: I0c14cf2d549f8363cb5a0a0267b69e5c00a64ce5 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2018-03-14save authentication with save auth_completeSerenaFeng2-6/+23
✗ testapi -u xxx -p xxxxx -v initialize_app (testapi) pod create '{}' authenticating..... Create failed: name Missing (testapi) pod create '{}' Create failed: name Missing Change-Id: I9de0949b0bf203032a7b0763e791bd0cd10de7fb Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2018-03-14bugfix: TestAPI Cookie cannot be foundSerenaFeng12-334/+212
Change-Id: Ibab60aba26e30669dddab74ce61ed00197dc86a8 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2018-03-14bugfix: list projects failedSerenaFeng1-1/+1
Change-Id: I4d5ccdf788f2e5791a8ed46384cdba73fad500c7 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2018-03-13Add tests for projects in testapiclientthuva42-8/+233
Change-Id: Id32dc102f4cc594496cb72949bc6ce1cf6bad86b Signed-off-by: thuva4 <tharma.thuva@gmail.com>
2018-03-13Add tests for pods testapiclientthuva42-0/+214
Add tests to check the functionality of the pods in testapiclient Change-Id: Iae6b0b96d31b72ba701684300e10c69d8c5306b4 Signed-off-by: thuva4 <tharma.thuva@gmail.com>
2018-03-13bugfix: query_by errorSerenaFeng1-3/+3
for pure pods get, the correct should be: http://localhost:8000/api/v1/pods now it is http://localhost:8000/api/v1/pods?name= Change-Id: I8fe080ddcf834d211cb1494087b70e5888a8b701 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2018-03-13format URLsSerenaFeng4-22/+28
1. unify URL query 2. unify URL format Change-Id: I4bdf13067c4f726df42a8e34b4365fed4f58924e Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2018-03-13format outputSerenaFeng6-44/+98
JIRA: RELENG-348 Change-Id: I8f6edae6ed70542f5dde45d81601c35d32af96d9 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2018-03-11Fix return value in project url - testapiclientthuva41-1/+1
Change-Id: Ia879b208027b857e543f5d4c23415da19deb94f3 Signed-off-by: thuva4 <tharma.thuva@gmail.com>
2018-03-09remove long html show when service unavailableSerenaFeng1-3/+5
long message: <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html><head> <meta http-equiv="Content-Type" CONTENT="text/html; charset=utf-8"> <title>ERROR: The requested URL could not be retrieved</title> <style type="text/css"><!-- Change-Id: I1f5495b20328a7a23462ce66813b1ecc2082822b Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2018-03-09restructure testapiclient projectSerenaFeng11-19/+22
Change-Id: I13d24ce7b436f203a66fe14f4930e58b3ab1193c Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2018-03-09unify message promptSerenaFeng4-55/+45
Change-Id: I31a10c0aa92a72fdbd76475e6f618f63fef9b925 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2018-03-09Merge "remove unwanted params from arguments"Serena Feng1-5/+3
2018-03-09Merge "Fix the error in testapiclient delete"Serena Feng1-1/+1
2018-03-08remove unwanted params from argumentsthuva41-5/+3
Remove -name from GetOne and Delete command arguments Change-Id: I163444467e0bac95df2d11f5bddda6bc441c4c21 Signed-off-by: thuva4 <tharma.thuva@gmail.com>
2018-03-08Do not need to check if user has existing sessionthuva41-9/+11
We are currently checking no matter user has a session or not.Fix it. Current implemetation don't allow user to use existing session. Fix it. Change-Id: I5c1bf2bf9b3475f4723d7e136a60effd4287199d Signed-off-by: thuva4 <tharma.thuva@gmail.com>
2018-03-08Fix the error in testapiclient deletethuva41-1/+1
Fix delete operation in testapiclient Change-Id: I11b338629bdc81771b7ce911e7de1c3776fef063 Signed-off-by: thuva4 <tharma.thuva@gmail.com>
2018-03-08refactor url procesSerenaFeng5-31/+66
Change-Id: I8a253cc921875b810b954abafaad84f61f559ef5 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2018-03-07refactor config process in testapiclientSerenaFeng6-27/+9
substitue config file with env variable Change-Id: Ie8243a7dd429708998bde9d612c9a4552a76c14f Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2018-03-07simply user session processSerenaFeng3-30/+25
Change-Id: I1e6a95cb97f54ec633933c73c4b8d7055f34336f Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>