summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVolodymyr Mytnyk <volodymyrx.mytnyk@intel.com>2018-12-04 08:27:50 +0000
committerGerrit Code Review <gerrit@opnfv.org>2018-12-04 08:27:50 +0000
commit7f5451a139383a5138b7c0fea6b3fb9a6297f974 (patch)
tree2f1a9af10d4f17e0f0892d14fdf9837a4d2e27ef
parent21380dcecab2d0e7630ed5bc7fcf01465ef77487 (diff)
parent9cebd3d41ddb9685f2235cf8a7c68fe67a86fba2 (diff)
Merge "Handle HTTP traffic profile parameters as optional"
-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