CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions
testing_classes.connection_tests Class Reference
Inheritance diagram for testing_classes.connection_tests:

Public Member Functions

def setUp
 
def tearDown
 
def test_frontier_connect
 
def test_frontier_query
 
def test_orapro_connect
 

Detailed Description

Definition at line 267 of file testing_classes.py.

Member Function Documentation

def testing_classes.connection_tests.setUp (   self)

Definition at line 269 of file testing_classes.py.

270  def setUp(self):
271  pass
def testing_classes.connection_tests.tearDown (   self)

Definition at line 305 of file testing_classes.py.

306  def tearDown(self):
307  pass
def testing_classes.connection_tests.test_frontier_connect (   self)

Definition at line 288 of file testing_classes.py.

References querying.connect().

289  def test_frontier_connect(self):
290  for alias in ["pro", "arc", "int", "dev"]:
291  connection_data = {"db_alias" : alias, "host" : "frontier", "schema" : "cms_conditions"}
292  connection = querying.connect(connection_data)
293  # can cause failure if the database is down
294  close_session_result = connection.close_session()
295  self.assertEqual(close_session_result, True)
def connect
Definition: querying.py:352
def testing_classes.connection_tests.test_frontier_query (   self)

Definition at line 296 of file testing_classes.py.

References querying.connect().

297  def test_frontier_query(self):
298  connection_data = {"db_alias" : "pro", "host" : "frontier", "schema" : "cms_conditions"}
299  connection = querying.connect(connection_data)
300  # query for a tag
301  tag = connection.tag(name="EBAlignment_measured_v06_offline")
302  # can cause failure if the database is down
303  close_session_result = connection.close_session()
304  self.assertEqual(close_session_result, True)
def connect
Definition: querying.py:352
def testing_classes.connection_tests.test_orapro_connect (   self)

Definition at line 272 of file testing_classes.py.

273  def test_orapro_connect(self):
274  connection_data = {"db_alias" : "orapro", "host" : "oracle", "schema" : "cms_conditions", "secrets" : secrets_file}
275  connection = querying.connect(connection_data)
276  self.assertTrue(connection != None)
277  # can cause failure if the database is down
278  close_session_result = connection.close_session()
279  self.assertEqual(close_session_result, True)
def connect
Definition: querying.py:352