pgsql: Add PostgresNode::command_fails_like()

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Add PostgresNode::command_fails_like()
Date: 2021-09-01 01:29:03
Message-ID: E1mLF3n-0007Dv-MJ@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Add PostgresNode::command_fails_like()

This is useful to test for a command failure with some default
connection parameters associated to a node, in combination with checks
on error patterns expected. This routine will be used by an upcoming
future patch, but could be also plugged into some of the existing
tests.

Extracted from a larger patch by the same author.

Author: Ronan Dunklau
Discussion: https://postgr.es/m/5742739.ga3mSNWIix@aivenronan

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/de1d4fef71cb00370aa5f794fe05355c1d063aea

Modified Files
--------------
src/test/perl/PostgresNode.pm | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Paquier 2021-09-01 02:49:13 pgsql: Refactor one conversion of SQLSTATE to string in elog.c
Previous Message Peter Geoghegan 2021-08-31 23:56:17 pgsql: Remove obsolete nbtree relation extension comment.