first prototype

This commit is contained in:
2021-09-29 16:10:29 +02:00
parent 653be355d7
commit 400cbdbd92
8 changed files with 583 additions and 0 deletions

41
fake.py Normal file
View File

@ -0,0 +1,41 @@
data = {
"TEST0_psen_db": {
"x": None,
"aaa": "aaa",
"bbbbbb": 2,
"c": "cccccc"
},
"TEST1_psen_db1": {
"x": None,
"bbbbbb": 2,
"c": "cccccc"
},
"TEST2TEST2_psen_db": {
"x": None,
"y": [1,2,3],
"aaa": "aaa",
"c": "cccccc"
},
"ignored": {}
}
server_info = {
"active_instances": list(data.keys())
}
class PipelineClient:
def __init__(*args, **kwargs):
pass
def get_server_info(self):
return server_info
def get_instance_config(self, name):
return data[name]