Add test case description and task file for TC055 87/17287/3
authorJingLu5 <lvjing5@huawei.com>
Thu, 21 Jul 2016 01:47:58 +0000 (09:47 +0800)
committerJingLu5 <lvjing5@huawei.com>
Mon, 25 Jul 2016 03:24:09 +0000 (11:24 +0800)
Change-Id: I3247315e179b3d273f5cb281900390bef59cc5bd
Signed-off-by: JingLu5 <lvjing5@huawei.com>
docs/userguide/opnfv_yardstick_tc055.rst [new file with mode: 0644]
tests/opnfv/test_cases/opnfv_yardstick_tc055.yaml [new file with mode: 0644]

diff --git a/docs/userguide/opnfv_yardstick_tc055.rst b/docs/userguide/opnfv_yardstick_tc055.rst
new file mode 100644 (file)
index 0000000..c861ca9
--- /dev/null
@@ -0,0 +1,67 @@
+.. This work is licensed under a Creative Commons Attribution 4.0 International
+.. License.
+.. http://creativecommons.org/licenses/by/4.0
+.. (c) OPNFV, Huawei Technologies Co.,Ltd and others.
+
+*************************************
+Yardstick Test Case Description TC055
+*************************************
+
+.. _/proc/cpuinfo: http://www.linfo.org/proc_cpuinfo.html
+
++-----------------------------------------------------------------------------+
+|Compute Capacity                                                             |
+|                                                                             |
++--------------+--------------------------------------------------------------+
+|test case id  | OPNFV_YARDSTICK_TC055_Compute Capacity                       |
+|              |                                                              |
++--------------+--------------------------------------------------------------+
+|metric        | Number of cpus, number of cores, number of threads, available|
+|              | memory size and total cache size.                            |
+|              |                                                              |
++--------------+--------------------------------------------------------------+
+|test purpose  | To evaluate the IaaS compute capacity with regards to        |
+|              | hardware specification, including number of cpus, number of  |
+|              | cores, number of threads, available memory size and total    |
+|              | cache size.                                                  |
+|              | Test results, graphs and similar shall be stored for         |
+|              | comparison reasons and product evolution understanding       |
+|              | between different OPNFV versions and/or configurations.      |
+|              |                                                              |
++--------------+--------------------------------------------------------------+
+|configuration | file: opnfv_yardstick_tc055.yaml                             |
+|              |                                                              |
+|              | There is are no additional configurations to be set for this |
+|              | TC.                                                          |
+|              |                                                              |
++--------------+--------------------------------------------------------------+
+|test tool     | /proc/cpuinfo                                                |
+|              |                                                              |
+|              | this TC uses /proc/cpuinfo as source to produce compute      |
+|              | capacity output.                                             |
+|              |                                                              |
++--------------+--------------------------------------------------------------+
+|references    | /proc/cpuinfo_                                               |
+|              |                                                              |
+|              | ETSI-NFV-TST001                                              |
+|              |                                                              |
++--------------+--------------------------------------------------------------+
+|applicability | None.                                                        |
+|              |                                                              |
++--------------+--------------------------------------------------------------+
+|pre-test      | No POD specific requirements have been identified.           |
+|conditions    |                                                              |
+|              |                                                              |
++--------------+--------------------------------------------------------------+
+|test sequence | description and expected result                              |
+|              |                                                              |
++--------------+--------------------------------------------------------------+
+|step 1        | The hosts are installed, TC is invoked and logs are produced |
+|              | and stored.                                                  |
+|              |                                                              |
+|              | Result: Logs are stored.                                     |
+|              |                                                              |
++--------------+--------------------------------------------------------------+
+|test verdict  | None. Hardware specification are fetched and stored.         |
+|              |                                                              |
++--------------+--------------------------------------------------------------+
diff --git a/tests/opnfv/test_cases/opnfv_yardstick_tc055.yaml b/tests/opnfv/test_cases/opnfv_yardstick_tc055.yaml
new file mode 100644 (file)
index 0000000..b43e566
--- /dev/null
@@ -0,0 +1,23 @@
+---
+# Yardstick TC055 config file
+# Collect hardware specification from /proc/cpuinfo
+
+schema: "yardstick:task:0.1"
+{% set host = host or "node5.yardstick-TC055" %}
+{% set pod_info = pod_info or "etc/yardstick/nodes/compass_sclab_virtual/pod.yaml" %}
+scenarios:
+-
+  type: ComputeCapacity
+  options:
+
+  nodes:
+    host: {{host}}
+
+  runner:
+    type: Iteration
+    iterations: 1
+
+context:
+  type: Node
+  name: yardstick-TC055
+  file: {{pod_info}}