MCPcopy Index your code
hub / github.com/pgadmin-org/pgadmin4 / get_config_data

Function get_config_data

web/regression/python_test_utils/test_utils.py:114–135  ·  view source on GitHub ↗

This function reads the server data from config_data

()

Source from the content-addressed store, hash-verified

112
113
114def get_config_data():
115 """This function reads the server data from config_data"""
116 server_data = []
117 for srv in test_setup.config_data['server_credentials']:
118 if 'enabled' not in srv or srv['enabled']:
119 data = {
120 "name": srv['name'],
121 "comment": srv['comment'],
122 "host": srv['host'],
123 "port": srv['db_port'],
124 "db": srv['maintenance_db'],
125 "username": srv['db_username'],
126 "db_password": srv['db_password'],
127 "role": "",
128 "sslmode": srv['sslmode'],
129 "tablespace_path": srv.get('tablespace_path', None),
130 "default_binary_paths": srv.get('default_binary_paths', None)
131 }
132 if 'db_type' in srv:
133 data['db_type'] = srv['db_type']
134 server_data.append(data)
135 return server_data
136
137
138def write_node_info(key, node_info=None):

Callers

nothing calls this directly

Calls 2

appendMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected