Open storperf testcase to huawei-pod2
[yardstick.git] / tests / unit / benchmark / scenarios / networking / test_vtc_instantiation_validation.py
1 #!/usr/bin/env python
2
3 ##############################################################################
4 # Copyright (c) 2015 Ericsson AB and others.
5 #
6 # All rights reserved. This program and the accompanying materials
7 # are made available under the terms of the Apache License, Version 2.0
8 # which accompanies this distribution, and is available at
9 # http://www.apache.org/licenses/LICENSE-2.0
10 ##############################################################################
11
12 # Unittest for yardstick.benchmark.scenarios.networking.iperf3.Iperf
13
14 from __future__ import absolute_import
15 import unittest
16
17 from yardstick.benchmark.scenarios.networking import \
18     vtc_instantiation_validation
19
20
21 class VtcInstantiationValidationTestCase(unittest.TestCase):
22
23     def setUp(self):
24         scenario = dict()
25         scenario['options'] = dict()
26         scenario['options']['default_net_name'] = ''
27         scenario['options']['default_subnet_name'] = ''
28         scenario['options']['vlan_net_1_name'] = ''
29         scenario['options']['vlan_subnet_1_name'] = ''
30         scenario['options']['vlan_net_2_name'] = ''
31         scenario['options']['vlan_subnet_2_name'] = ''
32         scenario['options']['vnic_type'] = ''
33         scenario['options']['vtc_flavor'] = ''
34         scenario['options']['packet_size'] = ''
35         scenario['options']['vlan_sender'] = ''
36         scenario['options']['vlan_receiver'] = ''
37
38         self.vt = vtc_instantiation_validation.VtcInstantiationValidation(
39             scenario, '')
40
41     def test_run_for_success(self):
42         result = {}
43         self.vt.run(result)
44
45
46 def main():
47     unittest.main()
48
49 if __name__ == '__main__':
50     main()