summaryrefslogtreecommitdiffstats
path: root/testcases
AgeCommit message (Collapse)AuthorFilesLines
2016-02-22Add git support for Doctor repo in config_functest.yamljose.lausuch1-0/+2
Change-Id: I10ad0dc6cd6697a2a93f5e11edcdd69f70f86c5f Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com> (cherry picked from commit e0e52cec1e43491714f0ce078a7722e2cc3d9fca)
2016-02-19Fix message outputs taken from the console log in vPing_sshjose.lausuch1-4/+18
Change-Id: Id169167d90d60b8266913a8451699969abb4ef7c Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com> (cherry picked from commit 8960264f843abd8c261b0effe9014d1be5cd4dae)
2016-02-18Remove network failed message check form vping_sshjose.lausuch1-2/+1
Change-Id: I72d97af3ddd76f698ce54918cf92f98c8f5a7fd4 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com> (cherry picked from commit 4789710123718723adbc84ab6445ac141e074a9b)
2016-02-17Release floating ip after vPing_ssh testjose.lausuch2-37/+37
Also, check the console to see if the instance fails when sending the discover to the dhcp agent Change-Id: I314051886b9580a42bb88f2d88a9bdbf2a9e198a Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com> (cherry picked from commit 62131c3f53e66b6305bdd163037d452483821cfd)
2016-02-16Create vPing_userdata instances with dynamic ports created by nova/neutronjose.lausuch3-110/+115
Change-Id: I1808763f6ccf1ac90b8a696c48ecdfba03d782fb Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com> (cherry picked from commit 81892929f7fc0949b08eb79c93583658a2b87c50)
2016-02-16Create vPing instances with dynamic ports created by nova/neutronjose.lausuch2-147/+146
Also, - check if the used network is already created to not create it again - check if the image already exists to not create it again - check if the sec group already exists to not create it again Change-Id: I243619a1538444d836fdda84a86b834668aaf456 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com> (cherry picked from commit 12c1b110e91b2c062b378561f3fb271fe0626aec)
2016-02-12Rally live migration case selectionJuha Kosonen3-44/+61
Execute live migration cases only if the feature is enabled in Tempest configuration file. Change-Id: Ie88da2a8f6a4e22cbc96d6aa1f749d555ac58d84 Signed-off-by: Juha Kosonen <juha.kosonen@nokia.com> (cherry picked from commit 1d62586d396d948c523fb0b0e351ae162e7fdc6b)
2016-02-11bug fiw syntax when calling push to db from vIMSMorgan Richomme1-1/+2
Change-Id: I79ce10993c5a21fcb840681efd364ad2dc366e50 Signed-off-by: Morgan Richomme <morgan.richomme@orange.com> (cherry picked from commit b577ceda844c7fae4b2991b12a335f34fcf9cd73)
2016-02-11Add project in push_to_db function of functests utils to allow external ↵Morgan Richomme7-53/+50
project onboarded in Functest to push their results Change-Id: I3a065e6ce82b1a87bbd07810f13df7d146655933 Signed-off-by: Morgan Richomme <morgan.richomme@orange.com> (cherry picked from commit 9812bf270c6ef1a5f0582bd8be3c5a3776e73960)
2016-02-11Push results without extra formatingMorgan Richomme1-5/+7
Change-Id: I70713a30cec556ca7cd32122b9c10cf4c1732c3f Signed-off-by: Morgan Richomme <morgan.richomme@orange.com> (cherry picked from commit 4c2674593f1bf6f093bbdc5de41241e46bfcbe14)
2016-02-11Enadled --serial option for run_tests.shViktor Tikkanen1-2/+11
It could be useful to execute e.g. Tempest test cases in a single thread in order to troubleshoot possible concurrency problems. Change-Id: I5e5fc190fb4483ff075a8f837a8d4116ece90c80 Signed-off-by: Viktor Tikkanen <viktor.tikkanen@nokia.com> (cherry picked from commit 66df82a76334015e3e2d25ddcc22b343b110320c)
2016-02-10Add -n|--no-clean flag to vPing,Tempest,Rally,vIMS scriptsjose.lausuch6-0/+36
Use --no-clean flag in run_tests.sh to tell the test scripts to cleanup or not the resources Change-Id: I597eca5199e1eaf16b1f03a223222d33e4adf170 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com> (cherry picked from commit abc81e24d33b9bf8d2f8fb05dc5f5f57443abe93)
2016-02-10Rename the vPing scripts proplery and adapt documentationjose.lausuch4-6/+9
Change-Id: Idb498eb7cefd938006661f42f1bf1772395d9d47 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2016-02-10Create Rally summary report also for verbose modejose.lausuch1-24/+36
Also: - Fix percentage format of summary - Get the percentage from the row 'total' JIRA: FUNCTEST-134 Change-Id: Ifb45523921b4096c3242578cf4ddc6b084e8bbb2 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com> (cherry picked from commit 945aff5ef35837170fc09953b83cfb6081a1edad)
2016-02-10Push rally summary results into DBMorgan Richomme2-49/+53
json produced by Rally are pushed to rally_details Change-Id: I2f057093307cb395f5c5ffd42c3d228b05133a09 Signed-off-by: Morgan Richomme <morgan.richomme@orange.com> (cherry picked from commit 96f4bbb9aef2b4d3a8bda16b82a06157c110d2e9)
2016-02-09Remove obsolete public network definitionsJuha Kosonen2-11/+10
Use functest_utils.py routines in run_rally-cert.py to retrive external network name instead of static definition in config_functest.yaml. Also change the network name and id setting in task arguments. Change-Id: Iced9e9a28e79d6ac6ddd2f9f593481949f5fc8a0 Signed-off-by: Juha Kosonen <juha.kosonen@nokia.com> (cherry picked from commit 41eaec87fe939a8511dc6c0ec63976b53cbf5578)
2016-02-09Create Rally output summary at the end of the testsjose.lausuch1-8/+85
Added template to start pushing results to DB JIRA: FUNCTEST-134 Change-Id: Ibc04eae8478827146947df2bcf3460b8c7ef0bc7 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com> (cherry picked from commit 76ee625343b28868ca7c6c6108ee974bb57dbea8)
2016-02-09doctor: adds loggerRyota MIBU1-7/+23
Change-Id: Idc9c0f17049b9e6d2d7a0b8dc2bf35778d3c29dd Signed-off-by: Ryota MIBU <r-mibu@cq.jp.nec.com> (cherry picked from commit fc19da3f029594b4e0a72bfe11b66d0ed76f0ff4)
2016-02-09Used sed instead of crudini for updating regexViktor Tikkanen2-3/+2
It seems that crudini has limitations regarding quotation marks so sed tool is used instead in order to replace ssh_user_regex parameter into tempest.conf file. Change-Id: I8587b3e6b0c15930407ab90bf05f00086348edf6 Signed-off-by: Viktor Tikkanen <viktor.tikkanen@nokia.com> (cherry picked from commit 8d7f1158885ca2d880811747b07f34ab50d2031d)
2016-02-08Merge "enable doctor test scenario" into stable/brahmaputraMorgan Richomme1-2/+2
2016-02-08enable doctor test scenarioRyota MIBU1-2/+2
Change-Id: If0e050e979d886fff436daa384a97a651a56aaa5 Signed-off-by: Ryota MIBU <r-mibu@cq.jp.nec.com> (cherry picked from commit f91f448317ea36ce5c790bcac345dfdcefbe1fb7)
2016-02-08Added configuration of ssh_user_regex parameterViktor Tikkanen2-0/+7
Some Rally versions don't set correctly SSH user name into tempest.conf file so that e.g. test_server_basicops test case of Tempest suite fails with "Please login as 'cirros' user, not as root" error. This change ensures that correct SSH user info will be used for Cirros images created by Rally. Change-Id: I90dcad0024f2034ef3ed20d2c6981e675213558d Signed-off-by: Viktor Tikkanen <viktor.tikkanen@nokia.com> (cherry picked from commit 04cf934e24b0f7e0c53125711b4e98c14d54f049)
2016-02-05Reduce the number of iterations to ten in rally scenariosJuha Kosonen11-95/+98
Change-Id: Ibefc3f5eeb57ff6a1daa0be26f482ed0376a0d40 Signed-off-by: Juha Kosonen <juha.kosonen@nokia.com> (cherry picked from commit 01608c214878c19c9f01c60e1b08e106a5d684cf)
2016-02-04Import request python module for promise test casejose.lausuch1-0/+1
Change-Id: I437766fe1c595a60a82af3c49a5eb29974e0da33 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com> (cherry picked from commit b0e19118c80d694820dd75c53001e0b9563061a9)
2016-02-04Fix success status parsing of rally resultsJuha Kosonen1-8/+6
Change-Id: I6053bce6cc919af7ac34a16843b2583e45f01ac2 Signed-off-by: Juha Kosonen <juha.kosonen@nokia.com> (cherry picked from commit 5cf9b7fe8f380f6315e656527b90778c2d91a95c)
2016-02-04Use python json parser to get the results form the Promise json reportjose.lausuch1-29/+32
JIRA: FUNCTEST-68 Also, add sleep to let the promise instances terminate, otherwise, clean_openstack will detect them while they are still being removed and will fail. Change-Id: I7a5543143758483eb1d7e06dbe4922e9f1e05cfb Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com> (cherry picked from commit 75149a9d278b5a969606ad182fff580c08e37d6c)
2016-02-03bug fix: get installer using functest_utilsMorgan Richomme1-1/+1
JIRA: FUNCTEST-68 Change-Id: I0b4847f28ca77e171ca525b301b7bfa6cf366e94 Signed-off-by: Morgan Richomme <morgan.richomme@orange.com> (cherry picked from commit a6a3af39986e61f5f7c9094befec41fd753610d5)
2016-02-03FIX: sleep 3 second to release create_venv.sh from chmod commandgrakiss1-0/+1
sometimes vIMS failed to create venv for "Text file busy",it should be a side effect of last command "chmod +x ..." Change-Id: I6a94b644e89988efa92afc46e9fbdeb8564db89e Signed-off-by: grakiss <grakiss.wanglei@huawei.com>
2016-02-03Show Promise results output and push results to DBjose.lausuch1-18/+45
JIRA: FUNCTEST-68 Change-Id: Iecb1becee1fc788a7c854227a8c3ea2252898eba Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com> (cherry picked from commit 17baf4a83e8b9962281ed230e75c362047c34487)
2016-02-03Consider volumes and floatingips as defaults in clean_openstackjose.lausuch2-18/+56
Change-Id: I3ffc864768a7c474ee1063eecee1e2085de807b5 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com> (cherry picked from commit 16038f444c1e80006e13b72cb0597976a0b2f92e)
2016-02-02Create security groups with ICMP and SSH rules for vPing testsjose.lausuch2-17/+112
JIRA: FUNCTEST-133 Some installers don't allow icmp and TCP port 22 (SSH) in the default security group. To avoid any dependency with the installer, vPing will create its own security group with those rules and delete it afterwards. Change-Id: I6f31f21c240d80eed8bead638af51aa7e1e92aad Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com> (cherry picked from commit ab3413a15aeb3b3669da94fa383ec07212eeb915)
2016-02-02bug fix to run tempest and minor display error in run_test.shMorgan Richomme2-1/+2
Change-Id: Ic30bdd1c514aa8dcab37ba91de2f8879729a80a2 Signed-off-by: Morgan Richomme <morgan.richomme@orange.com> (cherry picked from commit 86c95df05ef125218f392748a177d2f9aa79848f)
2016-02-02Report vPing timeouts to the DB with duration = 0 and test status=NOKjose.lausuch2-37/+38
JIRA: FUNCTEST-132 Change-Id: Ida0c485504fd07db29b0c33ac59da6944da303a9 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com> (cherry picked from commit 5bb53025a593bbda834ef6ad325faba5aa073f7f)
2016-02-02Remove error message if instance is not foundjose.lausuch1-2/+2
Reason: vping calls this function until the VMs are deleted, when that happens, it throws an exception and returns None, which is fine, but the message error on the output is a bit confusing if you don't know the context. Change-Id: I8a4c408197d3c83151fb15a12387575d9fe1d553 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com> (cherry picked from commit 7dd58acc208727aaed83807f065dedcc899b0137)
2016-02-02Small improvements with output messagesjose.lausuch1-24/+11
Change-Id: I4c274df30bc3123bef23d5423a1762a07dd93e68 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com> (cherry picked from commit ac0d556e54a09b5a3470b20384ac58f7ed383202)
2016-02-02Use openstack client to avoid keystone deprecation warningsjose.lausuch2-7/+7
Change-Id: Ib82b3f20d0c23fc67201c7159e3b3a6de5c201cf Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com> (cherry picked from commit 906b3b2f7e85f1269d009684b1a557a6c19e96bc)
2016-02-02Use generate_defaults instead of os_defaults fixed parametersjose.lausuch3-26/+29
JIRA: FUNCTEST-131 Running generate_defaults.py in prepare_env.sh (before running any test) will create a file with the CURRENT OpenStack objects in the deployment. After each test, the cleanup script will take into consideration those parameters instead of the specified in os_defaults.yaml Keep os_defaults.yaml for the moment Change-Id: I5f38fef47f0a6d79407d1d582b1e7d3713503e07 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com> (cherry picked from commit 47635924e6def36be3c44a047d91018e47a439eb)
2016-02-01Use promise-flavor if exists and don't try to create it againjose.lausuch1-10/+17
Change-Id: I02ba76acb02f9785d13ca9bcd61ebe1290fa1cd7 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com> (cherry picked from commit 81d7877b7f124f393c929e3a862e64125218e945)
2016-02-01Add script to generate the OpenStack defaultsjose.lausuch1-0/+176
JIRA: FUNCTEST-131 It checks the existing Openstack objects in the current deployment (i.e. when the script is executed) and it will create a yaml file to be used afterwards by clean_openstack. This way, a user can generate the defaults when needed if there are things that are not meant to be deleted without fear of using clean_openstack. Change-Id: Iacf204bdd14f591df21b3f243d27199ead2404b0 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com> (cherry picked from commit 954907ac2995cfc158d5e363829af7c776be5f90)
2016-02-01Enable all rally outputs in verbose modeJuha Kosonen1-19/+28
In verbose mode the complete output of rally tests is shown. Change-Id: I315c89b270312b13b3630b97cc24e5f529952645 Signed-off-by: Juha Kosonen <juha.kosonen@nokia.com> (cherry picked from commit e75f34706a8d72ee440d7f94363d4909a02f5293)
2016-02-01use scenario instead of git info in version field of the test resultsMorgan Richomme1-3/+3
Change-Id: Ie80cc39e64d0fe70981623229560aa145df95c50 Signed-off-by: Morgan Richomme <morgan.richomme@orange.com> (cherry picked from commit 86728ad2ccfbea4a733b664aaafff0fcc22c4b0e)
2016-02-01Merge "Add aodh default user for apex" into stable/brahmaputraMorgan Richomme1-2/+2
2016-02-01Add testcases results to DBlanqinglong1-6/+29
Change-Id: Iada89aa690f6b3f1d041328b641620ceb0279912 (cherry picked from commit 817f19d6c668176d9e62ab4a3523585fcdd92b01)
2016-02-01Export private net OS_TEST_NETWORK for Promise testsjose.lausuch1-0/+10
Change-Id: Ie2e83a049a98f8e63245c3b992ff379fd353a0be Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com> (cherry picked from commit cc8dd9e8092cc68484d8ad3422c97762658271e8)
2016-02-01Add aodh default user for apexjose.lausuch1-2/+2
Noticed here: https://build.opnfv.org/ci/view/functest/job/functest-apex-opnfv-jump-1-daily-master/lastBuild/consoleFull Change-Id: I508f8c2d6e19ba2ee5e633a3ed323693b06a6692 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com> (cherry picked from commit 2eeb7cb050bf1a52358eb526eaad48870efcb46c)
2016-01-30fix the bug of onos test reportlanqinglong1-3/+23
Change-Id: I34a068f991b89af6c65c895c7e9e604eac5dadf6 (cherry picked from commit 38cb5f334a2acc034b9757eba68561d134da79fa)
2016-01-30Copy tempest.conf to results dir to be uploaded to artifactsjose.lausuch1-4/+7
Change-Id: I9cfe566c085dc45410a03650a9cf2a84de004d19 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com> (cherry picked from commit aa02e0de645a6af39baed4abed3667a112b09c42)
2016-01-29Create stdout and stderr files for Tempest resultsjose.lausuch1-7/+18
Change-Id: Ibd45dd628dc64db16af28102276f5523f55fcaf4 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com> (cherry picked from commit c04286e7e407ebfc383f1e69ae1b7c3e015b9971)
2016-01-29bugfix: self.loggerboucherv1-2/+2
Change-Id: I6e9b3a833f590831cddac83e00a6b8809410d2cb Signed-off-by: boucherv <valentin.boucher@orange.com> (cherry picked from commit feecd6ccf9231ffdb82ac6bb2b1dcbb8389e457c)
2016-01-29Merge "Add some error result in result db api" into stable/brahmaputraboucherv3-59/+82