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