'Test to validate that invalid parameter combinations for registering connections via session are not tolerated
@since 3.8
@jira_ticket PYTHON-649
@expected_result queries should execute appropriately
@test_category object_mapper'

def test_connection_param_validation(self):

    cluster = Cluster([CASSANDRA_IP])
    session = cluster.connect()
    with self.assertRaises(CQLEngineException):
        conn.register_connection('bad_coonection1', session=session, consistency='not_null')
    with self.assertRaises(CQLEngineException):
        conn.register_connection('bad_coonection2', session=session, lazy_connect='not_null')
    with self.assertRaises(CQLEngineException):
        conn.register_connection('bad_coonection3', session=session, retry_connect='not_null')
    with self.assertRaises(CQLEngineException):
        conn.register_connection('bad_coonection4', session=session, cluster_options='not_null')
    with self.assertRaises(CQLEngineException):
        conn.register_connection('bad_coonection5', hosts='not_null', session=session)
    cluster.shutdown()
    cluster.shutdown()
    cluster.shutdown()
