HCE Project Python language Distributed Tasks Manager Application, Distributed Crawler Application and client API bindings.  2.0.0-chaika
Hierarchical Cluster Engine Python language binding
ftests.ftest_DTMC.TestDTMC Class Reference
Inheritance diagram for ftests.ftest_DTMC.TestDTMC:
Collaboration diagram for ftests.ftest_DTMC.TestDTMC:

Public Member Functions

def setUp (self)
 
def tearDown (self)
 
def commonTestCode (self, args)
 
def testFunctionalHELP (self)
 
def testFunctionalNEW (self)
 
def testFunctionalCHCECK (self)
 
def testFunctionalTERMINATE (self)
 
def testFunctionalGET (self)
 
def testFunctionalSTATUS (self)
 
def testFunctionalSTATUSBad (self)
 
def testFunctionalCLEANUP (self)
 
def testFunctionalCLEANUPBad (self)
 

Public Attributes

 dtmc
 
 connectionBuilderMock
 

Detailed Description

Definition at line 70 of file ftest_DTMC.py.

Member Function Documentation

◆ commonTestCode()

def ftests.ftest_DTMC.TestDTMC.commonTestCode (   self,
  args 
)

Definition at line 83 of file ftest_DTMC.py.

83  def commonTestCode(self, args):
84  self.dtmc = DTMC()
85  self.dtmc.connectionBuilder = self.connectionBuilderMock
86  DTMC.argv = args
87  self.dtmc.setup()
88  try:
89  self.dtmc.run()
90  except SystemExit as excp:
91  print("\nEXIT CODE >>> " + str(excp.message))
92  self.dtmc.close()
93 
94 
Here is the caller graph for this function:

◆ setUp()

def ftests.ftest_DTMC.TestDTMC.setUp (   self)

Definition at line 73 of file ftest_DTMC.py.

73  def setUp(self):
74  self.dtmc = None
75  self.connectionBuilderMock = MagicMock(spec=ConnectionBuilderLight)
76  self.connectionBuilderMock.build.side_effect = connectionBuilderMockBuild
77 
78 

◆ tearDown()

def ftests.ftest_DTMC.TestDTMC.tearDown (   self)

Definition at line 79 of file ftest_DTMC.py.

79  def tearDown(self):
80  pass
81 
82 

◆ testFunctionalCHCECK()

def ftests.ftest_DTMC.TestDTMC.testFunctionalCHCECK (   self)

Definition at line 106 of file ftest_DTMC.py.

106  def testFunctionalCHCECK(self):
107  print("CHECK TEST START >>> \n")
108 # self.commonTestCode(["-t", "CHECK", "-f", "./check_test.json", "--config", "./dtmc.ini"])
109  self.commonTestCode(["-t", "CHECK", "-f", "./jsons/dtmc_check_1_request.json", "--config", "./dtmc.ini"])
110 
111 
Here is the call graph for this function:

◆ testFunctionalCLEANUP()

def ftests.ftest_DTMC.TestDTMC.testFunctionalCLEANUP (   self)

Definition at line 135 of file ftest_DTMC.py.

135  def testFunctionalCLEANUP(self):
136  print("CLEANUP TEST START >>> \n")
137  self.commonTestCode(["-t", "CLEANUP", "-f", "./jsons/dtmc_cleanup_ok.json", "--config", "./dtmc.ini"])
138 
139 
Here is the call graph for this function:

◆ testFunctionalCLEANUPBad()

def ftests.ftest_DTMC.TestDTMC.testFunctionalCLEANUPBad (   self)

Definition at line 140 of file ftest_DTMC.py.

140  def testFunctionalCLEANUPBad(self):
141  print("CLEANUPBad TEST START >>> \n")
142  self.commonTestCode(["-t", "CLEANUP", "-f", "./jsons/dtmc_cleanup_bad.json", "--config", "./dtmc.ini"])
143 
144 
Here is the call graph for this function:

◆ testFunctionalGET()

def ftests.ftest_DTMC.TestDTMC.testFunctionalGET (   self)

Definition at line 119 of file ftest_DTMC.py.

119  def testFunctionalGET(self):
120  print("GET TEST START >>> \n")
121 # self.commonTestCode(["-t", "GET", "-f", "./get_test.json", "--config", "./dtmc.ini"])
122  self.commonTestCode(["-t", "GET", "-f", "./jsons/dtmc_fetch_task_1_request.json", "--config", "./dtmc.ini"])
123 
124 
Here is the call graph for this function:

◆ testFunctionalHELP()

def ftests.ftest_DTMC.TestDTMC.testFunctionalHELP (   self)

Definition at line 95 of file ftest_DTMC.py.

95  def testFunctionalHELP(self):
96  print("HELP TEST START >>> \n")
97  self.commonTestCode(["-h"])
98 
99 
Here is the call graph for this function:

◆ testFunctionalNEW()

def ftests.ftest_DTMC.TestDTMC.testFunctionalNEW (   self)

Definition at line 100 of file ftest_DTMC.py.

100  def testFunctionalNEW(self):
101  print("NEW TEST START >>> \n")
102 # self.commonTestCode(["-t", "NEW", "-f", "./new_test.json", "--config", "./dtmc.ini"])
103  self.commonTestCode(["-t", "NEW", "-f", "./jsons/dtmc_new_task_1_request.json", "--config", "./dtmc.ini"])
104 
105 
Here is the call graph for this function:

◆ testFunctionalSTATUS()

def ftests.ftest_DTMC.TestDTMC.testFunctionalSTATUS (   self)

Definition at line 125 of file ftest_DTMC.py.

125  def testFunctionalSTATUS(self):
126  print("STATUS TEST START >>> \n")
127  self.commonTestCode(["-t", "STATUS", "-f", "./jsons/dtmc_status_ok.json", "--config", "./dtmc.ini"])
128 
129 
Here is the call graph for this function:

◆ testFunctionalSTATUSBad()

def ftests.ftest_DTMC.TestDTMC.testFunctionalSTATUSBad (   self)

Definition at line 130 of file ftest_DTMC.py.

130  def testFunctionalSTATUSBad(self):
131  print("STATUSBad TEST START >>> \n")
132  self.commonTestCode(["-t", "STATUS", "-f", "./jsons/dtmc_status_bad.json", "--config", "./dtmc.ini"])
133 
134 
Here is the call graph for this function:

◆ testFunctionalTERMINATE()

def ftests.ftest_DTMC.TestDTMC.testFunctionalTERMINATE (   self)

Definition at line 112 of file ftest_DTMC.py.

112  def testFunctionalTERMINATE(self):
113  print("TERMINATE TEST START >>> \n")
114 # self.commonTestCode(["-t", "TERMINATE", "-f", "./del_test.json", "--config", "./dtmc.ini"])
115  self.commonTestCode(["-t", "TERMINATE", "-f", "./jsons/dtmc_delete_task_1_request.json",
116  "--config", "./dtmc.ini"])
117 
118 
Here is the call graph for this function:

Member Data Documentation

◆ connectionBuilderMock

ftests.ftest_DTMC.TestDTMC.connectionBuilderMock

Definition at line 75 of file ftest_DTMC.py.

◆ dtmc

ftests.ftest_DTMC.TestDTMC.dtmc

Definition at line 74 of file ftest_DTMC.py.


The documentation for this class was generated from the following file: