Class TestDTMA, contains functional tests of DTMA module.
More...
Class TestDTMA, contains functional tests of DTMA module.
Definition at line 69 of file ftest_DTMA.py.
◆ __init__()
def ftests.ftest_DTMA.TestDTMA.__init__ |
( |
|
self, |
|
|
|
methodName = 'runTest' |
|
) |
| |
Definition at line 72 of file ftest_DTMA.py.
72 def __init__(self, methodName='runTest'):
73 unittest.TestCase.__init__(self, methodName)
75 self.connectionBuilderMock =
None def __init__(self)
constructor
◆ commonTestCode()
def ftests.ftest_DTMA.TestDTMA.commonTestCode |
( |
|
self, |
|
|
|
args, |
|
|
|
isZerro |
|
) |
| |
Definition at line 88 of file ftest_DTMA.py.
88 def commonTestCode(self, args, isZerro):
91 self.dtma.connectionBuilder = self.connectionBuilderMock
96 except SystemExit
as excp:
97 print(
"\nEXIT CODE >>> " + str(excp.message))
98 exitCode = excp.message
101 self.assertTrue(exitCode == 0,
">>> Error! Exit code != 0")
103 self.assertTrue(exitCode != 0,
">>> Error! Exit code == 0")
◆ setUp()
def ftests.ftest_DTMA.TestDTMA.setUp |
( |
|
self | ) |
|
Definition at line 78 of file ftest_DTMA.py.
80 self.connectionBuilderMock = MagicMock(spec=ConnectionBuilderLight)
81 self.connectionBuilderMock.build.side_effect = connectionBuilderMockBuild
◆ tearDown()
def ftests.ftest_DTMA.TestDTMA.tearDown |
( |
|
self | ) |
|
◆ testFunctionalGET()
def ftests.ftest_DTMA.TestDTMA.testFunctionalGET |
( |
|
self | ) |
|
Definition at line 145 of file ftest_DTMA.py.
145 def testFunctionalGET(self):
146 print(
"testFunctionalGET TEST START >>> \n")
147 self.commonTestCode([
"--cmd",
"GET",
"--fields",
"any",
"--classes",
"cl1,cl2",
"--config",
"./dtma.ini"],
True)
◆ testFunctionalGETBad()
def ftests.ftest_DTMA.TestDTMA.testFunctionalGETBad |
( |
|
self | ) |
|
Definition at line 140 of file ftest_DTMA.py.
140 def testFunctionalGETBad(self):
141 print(
"testFunctionalGETBad TEST START >>> \n")
142 self.commonTestCode([
"--cmd",
"GET",
"--fields",
"",
"--classes",
"cl1,cl2",
"--config",
"./dtma.ini"],
False)
◆ testFunctionalHELP()
def ftests.ftest_DTMA.TestDTMA.testFunctionalHELP |
( |
|
self | ) |
|
Definition at line 106 of file ftest_DTMA.py.
106 def testFunctionalHELP(self):
107 print(
"HELP TEST START >>> \n")
108 self.commonTestCode([
"-h"],
True)
◆ testFunctionalSET()
def ftests.ftest_DTMA.TestDTMA.testFunctionalSET |
( |
|
self | ) |
|
Definition at line 134 of file ftest_DTMA.py.
134 def testFunctionalSET(self):
135 print(
"testFunctionalSET TEST START >>> \n")
136 self.commonTestCode([
"--cmd",
"SET",
"--fields",
"cl1:cl2,cl4:",
"--classes",
"cl1,cl2",
137 "--config",
"./dtma.ini"],
True)
◆ testFunctionalSETBad()
def ftests.ftest_DTMA.TestDTMA.testFunctionalSETBad |
( |
|
self | ) |
|
Definition at line 129 of file ftest_DTMA.py.
129 def testFunctionalSETBad(self):
130 print(
"testFunctionalSETBad TEST START >>> \n")
131 self.commonTestCode([
"--cmd",
"SET",
"--fields",
"cl1,cl2",
"--classes",
"cl1,cl2",
"--config",
"./dtma.ini"],
False)
◆ testFunctionalSTAT()
def ftests.ftest_DTMA.TestDTMA.testFunctionalSTAT |
( |
|
self | ) |
|
Definition at line 121 of file ftest_DTMA.py.
121 def testFunctionalSTAT(self):
122 print(
"testFunctionalSTAT TEST START >>> \n")
125 self.commonTestCode([
"--cmd",
"STAT",
"--classes",
126 "TasksManager,ExecutionEnvironmentManager ",
"--config",
"./dtma.ini"],
True)
◆ testFunctionalSTATBad1()
def ftests.ftest_DTMA.TestDTMA.testFunctionalSTATBad1 |
( |
|
self | ) |
|
Definition at line 116 of file ftest_DTMA.py.
116 def testFunctionalSTATBad1(self):
117 print(
"testFunctionalSTATBad1 TEST START >>> \n")
118 self.commonTestCode([
"--cmd",
"STAT",
"--config",
"./dtma.ini"],
False)
◆ testFunctionalSTATBadConfig()
def ftests.ftest_DTMA.TestDTMA.testFunctionalSTATBadConfig |
( |
|
self | ) |
|
Definition at line 111 of file ftest_DTMA.py.
111 def testFunctionalSTATBadConfig(self):
112 print(
"testFunctionalSTATBadConfig TEST START >>> \n")
113 self.commonTestCode([
"--cmd",
"STAT",
"--config",
"./bad"],
False)
◆ testFunctionalSTOP()
def ftests.ftest_DTMA.TestDTMA.testFunctionalSTOP |
( |
|
self | ) |
|
Definition at line 155 of file ftest_DTMA.py.
155 def testFunctionalSTOP(self):
156 print(
"testFunctionalSTOP TEST START >>> \n")
157 self.commonTestCode([
"--cmd",
"STOP",
"--classes",
"cl1,cl2",
"--config",
"./dtma.ini"],
True)
◆ testFunctionalSTOPBad()
def ftests.ftest_DTMA.TestDTMA.testFunctionalSTOPBad |
( |
|
self | ) |
|
Definition at line 150 of file ftest_DTMA.py.
150 def testFunctionalSTOPBad(self):
151 print(
"testFunctionalSTOPBad TEST START >>> \n")
152 self.commonTestCode([
"--cmd",
"STOP",
"--classes",
"",
"--config",
"./dtma.ini"],
False)
◆ connectionBuilderMock
ftests.ftest_DTMA.TestDTMA.connectionBuilderMock |
◆ dtma
ftests.ftest_DTMA.TestDTMA.dtma |
◆ dtmc
ftests.ftest_DTMA.TestDTMA.dtmc |
The documentation for this class was generated from the following file: