diff options
author | Abhijit Sinha <abhijit.sinha@intel.com> | 2018-10-17 09:09:12 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2018-10-17 09:09:12 +0000 |
commit | d63664d5cea2b9f3e609158d983f2033e60e7ec9 (patch) | |
tree | 8a9f1d692bdc311d6be33e20df73097901814429 /yardstick/tests/unit/network_services/traffic_profile/test_http.py | |
parent | 622a85f72bea2679ef4849abb083616bff3da0e7 (diff) | |
parent | dcf8aa87f04ffd14f0cab5b39fa1915627824cad (diff) |
Merge "Added traffic update capability to Ixload TG"
Diffstat (limited to 'yardstick/tests/unit/network_services/traffic_profile/test_http.py')
-rw-r--r-- | yardstick/tests/unit/network_services/traffic_profile/test_http.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/yardstick/tests/unit/network_services/traffic_profile/test_http.py b/yardstick/tests/unit/network_services/traffic_profile/test_http.py index d44fab2b5..874ec37d4 100644 --- a/yardstick/tests/unit/network_services/traffic_profile/test_http.py +++ b/yardstick/tests/unit/network_services/traffic_profile/test_http.py @@ -19,13 +19,21 @@ from yardstick.network_services.traffic_profile import http class TestTrafficProfileGenericHTTP(unittest.TestCase): - TP_CONFIG = {'traffic_profile': {'duration': 10}} + TP_CONFIG = {'traffic_profile': {'duration': 10}, + "uplink_0": {}, "downlink_0": {}} def test___init__(self): tp_generic_http = http.TrafficProfileGenericHTTP( self.TP_CONFIG) self.assertIsNotNone(tp_generic_http) + def test_get_links_param(self): + tp_generic_http = http.TrafficProfileGenericHTTP( + self.TP_CONFIG) + + links = tp_generic_http.get_links_param() + self.assertEqual({"uplink_0": {}, "downlink_0": {}}, links) + def test_execute(self): tp_generic_http = http.TrafficProfileGenericHTTP( self.TP_CONFIG) |