summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSerhiy Pshyk <serhiyx.pshyk@intel.com>2018-11-30 19:25:30 +0000
committerSerhiy Pshyk <serhiyx.pshyk@intel.com>2018-11-30 19:25:30 +0000
commit9cebd3d41ddb9685f2235cf8a7c68fe67a86fba2 (patch)
tree8bcbc89b8a007aff99af1ab497f4cdce4bcc2771
parent8cfab92068853fa79a46c12b44624c6d788e1da8 (diff)
Handle HTTP traffic profile parameters as optional
JIRA: YARDSTICK-1548 Change-Id: I1130b33a1ab441a7a9ebf24beb954c9dab0ebc29 Signed-off-by: Serhiy Pshyk <serhiyx.pshyk@intel.com>
-rw-r--r--yardstick/network_services/traffic_profile/http_ixload.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/yardstick/network_services/traffic_profile/http_ixload.py b/yardstick/network_services/traffic_profile/http_ixload.py
index c64e7511f..b88aadff7 100644
--- a/yardstick/network_services/traffic_profile/http_ixload.py
+++ b/yardstick/network_services/traffic_profile/http_ixload.py
@@ -278,8 +278,12 @@ class IXLOADHttpTest(object):
:param param: (dict) http_client section from traffic profile
:return:
"""
- self.update_page_size(net_traffic, param["page_object"])
- self.update_user_count(net_traffic, param["simulated_users"])
+ page = param.get("page_object")
+ if page:
+ self.update_page_size(net_traffic, page)
+ users = param.get("simulated_users")
+ if users:
+ self.update_user_count(net_traffic, users)
def update_page_size(self, net_traffic, page_object):
"""Update page_object field in http client object in net_traffic