summaryrefslogtreecommitdiffstats
path: root/scripts/automation/trex_control_plane/unit_tests/control_plane_general_test.py
blob: 32ad52434c620a3a37357578668496e05cfcb88b (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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#!/router/bin/python

__copyright__ = "Copyright 2015"

"""
Name:
     control_plane_general_test.py


Description:

    This script creates the functionality to test the performance of the TRex traffic generator control plane.
    The scenarios assumes a WORKING server is listening and processing the requests.

::

    Topology:

       --------                         --------
      |        |                       |        |
      | Client | <-----JSON-RPC------> | Server |
      |        |                       |        |
       --------                         --------

"""
from nose.plugins import Plugin
# import misc_methods
import sys
import os
# from CPlatformUnderTest import *
# from CPlatform import *
import termstyle
import threading
from common.trex_exceptions import *
from Client.trex_client import CTRexClient
# import Client.outer_packages
# import Client.trex_client

TREX_SERVER = None

class CTRexCP():
    trex_server = None

def setUpModule(module):
    pass

def tearDownModule(module):
    pass


class CControlPlaneGeneral_Test(object):#(unittest.TestCase):
    """This class defines the general testcase of the control plane service"""
    def __init__ (self):
        self.trex_server_name = 'csi-kiwi-02'
        self.trex             = CTRexClient(self.trex_server_name)
        pass

    def setUp(self):
        # initialize server connection for single client
        # self.server = CTRexClient(self.trex_server)
        pass

    ########################################################################
    ####                DO NOT ADD TESTS TO THIS FILE                   ####
    ####    Added tests here will held once for EVERY test sub-class    ####
    ########################################################################

    def tearDown(self):
        pass

    def check_for_trex_crash(self):
        pass