1
2
3
4
5
6
7
8
9
10
11
12
13
14
15 | @when('postgresql.connected') def configure_db(psql): psql.set_database('pg_stat_database') @when('postgresql.available') def configure_postgresql_integration(psql): configure_integration('postgresql', { 'host': psql.master.host, 'port': psql.master.port, 'username': psql.master.user, 'password': psql.master.password, }) status_set('active', 'ready') |