text: """
  Copyright (c) 2022 Huawei Technologies Co.,Ltd.
  
  openGauss is licensed under Mulan PSL v2.
  You can use this software according to the terms and conditions of the Mulan PSL v2.
  You may obtain a copy of Mulan PSL v2 at:
  
            http://license.coscl.org.cn/MulanPSL2
  
  THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
  EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
  MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
  See the Mulan PSL v2 for more details.
  """
  """
  Case Type   : 系统信息函数-会话信息函数
  Case Name   : 函数select pg_listening_channels()，查看会话正在侦听的信道名称
  Description : 函数select pg_listening_channels()，查看会话正在侦听的信道名称
  Expect      : 函数执行成功，结果显示正常
  History     : 
  """
  
  import unittest
  from yat.test import Node
  from testcase.utils.CommonSH import CommonSH
  from testcase.utils.Logger import Logger
  
  LOG = Logger()
  
  
  class Functions(unittest.TestCase):
      def setUp(self):
          LOG.info('-Opengauss_Function_Innerfunc_System_Info_Case0012开始-')
          self.dbuser_node = Node('dbuser')
          self.commonsh = CommonSH('dbuser')
  
      def test_func_sys_info(self):
          LOG.info(f'-步骤1.函数select pg_listening_channels()，查看会话正在侦听的信道名称')
          sql_cmd = self.commonsh.execut_db_sql(
              f'select pg_listening_channels();')
          LOG.info(sql_cmd)
          self.assertIn('0 rows', sql_cmd)
  
      def tearDown(self):
          LOG.info('-------无需清理环境-------')
          LOG.info('-Opengauss_Function_Innerfunc_System_Info_Case0012结束-')
  