1 ##############################################################################
2 # Copyright (c) 2017 Huawei Technologies Co.,Ltd and others.
4 # All rights reserved. This program and the accompanying materials
5 # are made available under the terms of the Apache License, Version 2.0
6 # which accompanies this distribution, and is available at
7 # http://www.apache.org/licenses/LICENSE-2.0
8 ##############################################################################
11 from yardstick.benchmark.scenarios.lib.get_server_ip import GetServerIp
14 class GetServerIpTestCase(unittest.TestCase):
15 def test_get_server_ip(self):
22 'OS-EXT-IPS:type': 'floating',
31 obj = GetServerIp(scenario_cfg, {})
33 self.assertEqual(result, {'ip': '127.0.0.1'})