updated GetNetworkMapData test to verify all calls -- policies, routes, etc

Signed-off-by: Dmitri Dolguikh <dmitri.external@netbird.io>
This commit is contained in:
Dmitri Dolguikh
2026-08-17 11:10:31 +02:00
parent 6fdde1385f
commit 6ee0987cba
6 changed files with 341 additions and 77 deletions
@@ -67,6 +67,11 @@ func (p *PgStore) UsingConnection(c *pgx.Conn) networkmapdb.NetworkMapDBStoreCon
return &PgStoreConn{Conn: c}
}
func (p *PgStore) Exec(ctx context.Context, query string, args ...any) error {
_, err := p.Pool.Exec(ctx, query, args...)
return err
}
func (p *PgStore) BeginTx(ctx context.Context) (networkmapdb.NetworkMapDBStoreConn, error) {
tx, err := p.Pool.BeginTx(ctx, pgx.TxOptions{IsoLevel: pgx.RepeatableRead, AccessMode: pgx.ReadOnly})
if err != nil {