Add "duration" parameter to test case definition 61/58861/4
authorRodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
Wed, 23 May 2018 08:16:39 +0000 (09:16 +0100)
committerEmma Foley <emma.l.foley@intel.com>
Mon, 25 Jun 2018 14:07:02 +0000 (15:07 +0100)
commit32bb2541b915d1a94e22116eb7c8fcb3c6523b5f
tree121e0381620a3b3299fe3be1b044f9c314276a64
parent22f4074aed052a9dcb73c8907db74306642ae9b3
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>
(cherry picked from commit 1517319fd210d71db72c5e4bfa00fc49ae4fa877)
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