Adds new test case 001 for network performance 03/3703/2
authorPer Holmgren <per.q.holmgren@ericsson.com>
Wed, 11 Nov 2015 16:11:53 +0000 (17:11 +0100)
committerJörgen Karlsson <jorgen.w.karlsson@ericsson.com>
Tue, 15 Dec 2015 16:01:11 +0000 (16:01 +0000)
This commit contains almost all of Jira #79. Misses still to collect
all results in one single .json file, now everything is written to
/tmp/yardstick.out. However, this may not be needed at all once the
database for test result collection is in place.

Change-Id: I210a477c3b5a110e97a6220e68d3ddc31ccce93a
JIRA: YARDSTICK-79

tests/opnfv/test_cases/opnfv_yardstick_tc001.yaml [new file with mode: 0644]

diff --git a/tests/opnfv/test_cases/opnfv_yardstick_tc001.yaml b/tests/opnfv/test_cases/opnfv_yardstick_tc001.yaml
new file mode 100644 (file)
index 0000000..9e29ec2
--- /dev/null
@@ -0,0 +1,52 @@
+---
+# Yardstick TC001 config file
+# Measure network throughput using pktgen
+# Different amounts of flows are tested with, from 2 up to 1001000
+# All tests are run twice. First twice with the least amount of
+#ports and further on.
+
+schema: "yardstick:task:0.1"
+
+scenarios:
+{% for num_ports in [1, 10, 50, 100, 500, 1000] %}
+-
+  type: Pktgen
+  options:
+    packetsize: 64
+    number_of_ports: {{num_ports}}
+    duration: 20
+
+  host: demeter.yardstick
+  target: poseidon.yardstick
+
+  runner:
+    type: Iteration
+    iterations: 2
+    interval: 1
+
+  sla:
+    max_ppm: 1000
+    action: monitor
+{% endfor %}
+
+context:
+  name: yardstick
+  image: yardstick-trusty-server
+  flavor: yardstick-flavor
+  user: ec2-user
+
+  placement_groups:
+    pgrp1:
+      policy: "availability"
+
+  servers:
+    demeter:
+      floating_ip: true
+      placement: "pgrp1"
+    poseidon:
+      floating_ip: true
+      placement: "pgrp1"
+
+  networks:
+    test:
+      cidr: '10.0.1.0/24'