aboutsummaryrefslogtreecommitdiffstats
path: root/baro_tests
AgeCommit message (Collapse)AuthorFilesLines
2018-09-26Merge "Fix that required tests are skipped"Aaron Smith1-4/+4
2018-09-25Fix that required tests are skippedToshiaki Takahashi1-4/+4
Because the service running flags of Gnocchi and Aodh are overwritten in the loop of the compute node, once the flag become false, the tests on all subsequent nodes are skipped. This change makes to use new flags for each compute node. Change-Id: Idc807419151b34b29f0117c9a7708a16a20d70dd Signed-off-by: Toshiaki Takahashi <takahashi.tsc@ncos.nec.co.jp>
2018-09-07functest: Add test code of DMA localagentToshiaki Takahashi4-2/+499
Change-Id: If1195b7b3d9000e3ec75bc3c4c108b0e9a1bc9e3 Signed-off-by: Toshiaki Takahashi <takahashi.tsc@ncos.nec.co.jp>
2018-07-27Fix test failure conditionToshiaki Takahashi1-1/+1
* Because the type of the variable res[3] is bool, we should not compare it with a string. * The expression "or 'None'" is always the same result, because 'None' is a constant value. It should be included in the comparison. Change-Id: I25defad98d612d21027218438ca2a28744292cf5 Signed-off-by: Toshiaki Takahashi <takahashi.tsc@ncos.nec.co.jp>
2018-03-23[functest] Update kernel version check for mcelogEmma Foley1-1/+2
Change-Id: I926d0d03781a98e3509d7f9c4f4eaffc1320919b Signed-off-by: Emma Foley <emma.l.foley@intel.com>
2018-03-22[functest] Skip RDT tests if on a virtual nodeEmma Foley2-4/+17
* Skip RDT tests if the node is virtual. * Push fake positive results to try avoid failure TODO: Get the test passing. Currently, the individual tests show a pass, however, the overall test shows a failure. Change-Id: Iedfb125a15ed1b9d41a3d48148a4ac363a89b90b Signed-off-by: Emma Foley <emma.l.foley@intel.com>
2018-03-20[functest] Update tests for AodhEmma Foley1-6/+15
* Update the check for timestamp to use state_timestamp instead state_timestamp indicates the last change in state of the alarm, timestamp is the last update to the alarm settings. This is not what we're looking for with aodh tests, so check the state update instead. * Trigger an alarm state change before checking whether the alram was updated. Notification in collectd aren't necessarily updated at a regular interval, so we have to do some action and check whether the alarm is updated. JIRA: BAROMETER-91 Change-Id: I26d9bb1ec7e50e07053e69068d241e4c4cbc30dc Signed-off-by: Emma Foley <emma.l.foley@intel.com>
2018-03-15Update functest to fix failing testsEmma Foley3-9/+28
* MCE log plugin was failing becaue it wasn't enables * Updated a check for kernel version to match Fraser compute nodes on Apex * RDT was failing when virtual compute nodes were used * Add check to detect whether compute node is a VM * Skip RDT when running in a VM * Gnocchi metrics were failing * increase the wait time between checking metrics * CSV checks were failing on Hugepages * functest was assuming that tests were running on a system with at least two NUMA nodes * Only check for metrics on node0 of the system * Report was showing FAIL even if a test was not executed * Update the report output to show SKIP instead JIRA: BAROMETER-91 Change-Id: I4f70fc84fce80054a7aca2116357b0233f355f70 Signed-off-by: Emma Foley <emma.l.foley@intel.com>
2018-03-10Fixing the if/else logic in baro_tests/ mcelog_install()Sharada Shiddibhavi1-26/+28
Follow on to the change #52775 Fixed the if/else logic while installing the mcelog. And added log messages to show on which node, mcelog is installed. Change-Id: If5f61b1a780abd243516699e352a55baf0db96f7 Signed-off-by: Sharada Shiddibhavi <sharada.shiddibhavi@intel.com>
2018-03-02Switch from openstack.creds to the new env_fileCédric Ollivier1-13/+8
This file was renamed to avoid linking Kubernetes testcases to OpenStack credentials. This patch is mandatory for gating. Change-Id: I6b4e7e83d6dfc8cf1d60bf016ef258a273156ffe Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-03-02Switch to XtestingCédric Ollivier1-2/+2
It inherits from xtesting.core.feature [1]. [1] http://xtesting.readthedocs.io/en/latest/apidoc/xtesting.core.feature.html Change-Id: Ib547aa60d9b8bf61ab5433496d7149a43355d08c Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-02-27Fix syntax error in baro_test/collectd.py:mcelog_installEmma Foley1-3/+3
The version of CentOS that's used no longer matches the version that is explicitly checked in collectd.py:mcelog_install. As a result the code on L637-L642[1] is now being called. This code was syntactically incorrect, however, was previously not being called, witht eh update to the version, it is now being executed and causing failures in deployment [2]. [1] https://github.com/opnfv/barometer/blob/c10400426df872be3236677dcb749c755f4a559c/baro_tests/collectd.py#L637-L642 [2] https://build.opnfv.org/ci/job/functest-apex-baremetal-daily-master/809/consoleText Change-Id: I35274d4ede17510c3ae03c756eda7bc9f78b4e17 Signed-off-by: Emma Foley <emma.l.foley@intel.com>
2017-10-10Adding improvements to the log messagesSharada Shiddibhavi2-11/+18
This patch contains improvements to the log messages in Barometer test suite. Change-Id: I6f0ba5260e2ecdbc90c27a93e4901636e4f66b42 Signed-off-by: Sharada Shiddibhavi <sharada.shiddibhavi@intel.com>
2017-10-09Removing SNMP testcases from Barometer testsuiteSharada Shiddibhavi2-6/+17
The SNMP testcases has been removed from the Barometer testsuite. Change-Id: Ie51df5bdc20a83f8e08aa3ccc2126cf43b0fc1d9 Signed-off-by: Sharada Shiddibhavi <sharada.shiddibhavi@intel.com>
2017-10-05Removing collectd restart process before Gnocchi testSharada Shiddibhavi1-26/+32
In this patch we remove the step of restarting collectd before Gnocchi test and adding it only before CSV testing. This also has fix to functest result status at the end of test execution. Change-Id: I2113ce8c5234535ab6f8d8c524038ead39e6df38 Signed-off-by: Sharada Shiddibhavi <sharada.shiddibhavi@intel.com>
2017-09-29Changing directory in CSV testcases for BarometerSharada Shiddibhavi1-4/+10
This patch contains modifications to the path for CSV directories Change-Id: Ia74a6aba47fc51d0d8783df34eebcfc94e3f011d Signed-off-by: Sharada Shiddibhavi <sharada.shiddibhavi@intel.com>
2017-09-23Adding improvements to Barometer testcasesSharada Shiddibhavi2-10/+31
This patch conatins changes to path of files mce-inject_ea and csv.conf Change-Id: Ifbe4eb6f875753b58f5ee4ecc12baa014e15b03a Signed-off-by: Sharada Shiddibhavi <sharada.shiddibhavi@intel.com>
2017-09-21Modyfying method to get env variables in BarometerSharada Shiddibhavi2-8/+9
This patch adds changes to get the environment variables into the baroneter tests Change-Id: I93f18d64d6db25885987b702b36f6d2403bcb24d Signed-off-by: Sharada Shiddibhavi <sharada.shiddibhavi@intel.com>
2017-09-20Adding improvements to SNMP testcasesSharada Shiddibhavi2-14/+22
This patch contains improvements to testcases for Hugepages, Intel_RDT and mcelog verification using SNMP Change-Id: I3451e0acd9c791e6145bb15e7ba8f3525bc0f0e8 Signed-off-by: Sharada Shiddibhavi <sharada.shiddibhavi@intel.com>
2017-09-15Adding SNMP testcases to Functest-Barometer projectSharada Shiddibhavi2-68/+94
This patch contains tetscases for another write plugin SNMP Change-Id: I281d21540cb95f1e74bfdaa6b5a355dc6f48c9b4 Signed-off-by: Sharada Shiddibhavi <sharada.shiddibhavi@intel.com> Change-Id: I281d21540cb95f1e74bfdaa6b5a355dc6f48c9b4 Signed-off-by: Sharada Shiddibhavi <sharada.shiddibhavi@intel.com>
2017-09-13Modified CSV verification, added Gnocchi and AODH testcasesSharada Shiddibhavi2-363/+321
This patch contains changes in CSV directory path and added testcases for Gnocchi and AODH plugins Change-Id: Icff77546be0b747279522c18e7b3aaa32df2f7c4 Signed-off-by: Sharada Shiddibhavi <sharada.shiddibhavi@intel.com>
2017-09-05Adding different method to access compute and controllersSharada Shiddibhavi2-5/+9
This patch is similar to previous patch in adding a different method to log into the controller and compute nodes. Change-Id: I75332fbb794605477a7c751b59016ffb1a8cf3f2 Signed-off-by: Sharada Shiddibhavi <sharada.shiddibhavi@intel.com>
2017-08-31Adding different method to access compute and controllersSharada Shiddibhavi4-348/+181
This patch contains a different method to log into nodes and adding csv.conf file to test with CSV method Change-Id: I9e1e839c0e897e8780119d16eca6136808302259 Signed-off-by: Sharada Shiddibhavi <sharada.shiddibhavi@intel.com>
2017-08-29Leverage on pbr (Python Build Reasonableness)Cédric Ollivier1-0/+0
It also removes the exec right on mce-inject_ea and installs it in $PATH. requirements.txt is also created to install the abstract dependencies. Change-Id: I176df99d2f40e1910079f5efa3f28a8c170a922d Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-08-25Added testcases for Gnocchi, AODH, SNMP and Intel_RDTSharada Shiddibhavi3-51/+321
Added testcases for newly added plugins - Gnocchi, AODH, SNMP and Intel RDT for Functest-Barometer project Change-Id: Ice7db5a49852d95e9c3054a0670dbd193f40f26c Signed-off-by: Sharada Shiddibhavi <sharada.shiddibhavi@intel.com>
2017-08-23Added Functest testcases for Barometer projectSharada Shiddibhavi4-346/+670
Added different method to get user credentials of the installer nodes instead of reading from installer_params.yaml Change-Id: I97419c942e1cd9f943a62c36dbce424872a10cb1 Signed-off-by: Sharada Shiddibhavi <sharada.shiddibhavi@intel.com>
2017-06-19Remove all references to /home/opnfv/repos/functestCédric Ollivier1-2/+3
It completes the previous patch in Functest [1]. [1] https://gerrit.opnfv.org/gerrit/#/c/36163/ Change-Id: Idb334fe2cd394837f34690eb5d6426840424c150 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-06-13Move test caller from Functest to Barometer repojose.lausuch1-0/+24
The decision by Functest team is that 3rd party test cases should host the test in their respective repositories. Change-Id: Ibfd6dbc417fa797b96792a902797e610dab5b167 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2017-03-13Introducing an external tool for the Barometer mcelog testCalin Gherghe1-7/+76
This patch adds the use of mce-inject utility during the mcelog testing. It also includes a few (unrelated) flake8 corrections. Change-Id: Idd3a7005aad1d1d1f7ae2d3107fbd02c959798c8 Signed-off-by: Calin Gherghe <calin.gherghe@intel.com>
2017-03-10Fix for Functest 'BarometerCollectd ERROR - Private key file not found'Calin Gherghe2-3/+25
This patch addresses the blocking Functest issue regarding the ssh keys. It eliminates the need of using the baro_utils/get_ssh_keys.sh script. Change-Id: I4499e48257ddab955ae6694c2ece0bff5e877cad Signed-off-by: Calin Gherghe <calin.gherghe@intel.com>
2017-02-17Initial Barometer Functest ScriptsCalin Gherghe3-9/+1207
This patch adds scripts to be used with Functest for the barometer project. This will be expanded with future patchsets. Change-Id: I627f5e9c2b0d693f34bdc4f205989b0913f338db Signed-off-by: Calin Gherghe <calin.gherghe@intel.com>
2017-02-16Create baro_tests modulejose.lausuch2-0/+15
This module will be installed in functest so that we can do things like from baro_tests import collectd result = collectd.main() This way, we can avoid running bash commands in python to call other python scripts. Change-Id: Id3801a30648668ac2f1885cd298b920586584a18 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>