Add "duration" parameter to test case definition 59/57759/11
authorRodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
Wed, 23 May 2018 08:16:39 +0000 (09:16 +0100)
committerRodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
Mon, 18 Jun 2018 12:50:27 +0000 (13:50 +0100)
commit1517319fd210d71db72c5e4bfa00fc49ae4fa877
treefa7e0c6563b64ef4413be3c79912741f22712c5c
parent772d13797e7c84cbc0f8b7ac9005c97b8111cfa8
Add "duration" parameter to test case definition

Add "duration" parameter to test case definition, in scenario:options
section. This parameter will be rendered in the traffic profile.

If the parameter is not present in the test case scenario options, the
default time written in the traffic profile options will be 30 seconds
(TrafficProfile.DEFAULT_DURATION = 30). If the traffic profile
injection time is not defined, the default injection time will be 30
seconds.

  testcase:scenario:options:duration (default = 30)
      render --> traffic_profile:duration
          parse --> TrafficProfile.duration (default = 30)

Target traffic profiles (RFC2544):
  - RFC2544Profile
  - IXIARFC2544Profile

JIRA: YARDSTICK-1194

Change-Id: I968922e6bb882d7ee15aa1c4db4037face7a3492
Signed-off-by: Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
27 files changed:
samples/vnf_samples/traffic_profiles/ipv4_throughput-10.yaml
samples/vnf_samples/traffic_profiles/ipv4_throughput-2.yaml
samples/vnf_samples/traffic_profiles/ipv4_throughput-3.yaml
samples/vnf_samples/traffic_profiles/ipv4_throughput-4.yaml
samples/vnf_samples/traffic_profiles/ipv4_throughput-cgnapt-ixia-scale-out.yaml
samples/vnf_samples/traffic_profiles/ipv4_throughput-cgnapt-scale-out.yaml
samples/vnf_samples/traffic_profiles/ipv4_throughput-ixia-correlated-scale-out.yaml
samples/vnf_samples/traffic_profiles/ipv4_throughput-ixia-scale-out.yaml
samples/vnf_samples/traffic_profiles/ipv4_throughput-scale-out.yaml
samples/vnf_samples/traffic_profiles/ipv4_throughput-scale-up.yaml
samples/vnf_samples/traffic_profiles/ipv4_throughput.yaml
samples/vnf_samples/traffic_profiles/ipv4_throughput_cgnapt-10.yaml
samples/vnf_samples/traffic_profiles/ipv4_throughput_cgnapt-2.yaml
samples/vnf_samples/traffic_profiles/ipv4_throughput_cgnapt-4.yaml
samples/vnf_samples/traffic_profiles/ipv4_throughput_cgnapt-scale-out.yaml
samples/vnf_samples/traffic_profiles/ipv4_throughput_cgnapt.yaml
samples/vnf_samples/traffic_profiles/ipv4_throughput_vpe.yaml
samples/vnf_samples/traffic_profiles/ixia_ipv4_latency.yaml
samples/vnf_samples/traffic_profiles/ixia_ipv4_latency_cgnapt.yaml
samples/vnf_samples/traffic_profiles/ixia_ipv4_latency_vpe.yaml
yardstick/benchmark/scenarios/networking/vnf_generic.py
yardstick/network_services/traffic_profile/base.py
yardstick/tests/unit/benchmark/scenarios/networking/test_vnf_generic.py
yardstick/tests/unit/network_services/traffic_profile/test_base.py
yardstick/tests/unit/network_services/traffic_profile/test_fixed.py
yardstick/tests/unit/network_services/traffic_profile/test_http.py
yardstick/tests/unit/network_services/traffic_profile/test_trex_traffic_profile.py