summaryrefslogtreecommitdiff
path: root/t
AgeCommit message (Collapse)Author
2016-09-28Remove some tabsGreg Sabino Mullane
2016-09-26t/02_txn_time.t: Allow some time slackChristoph Berg
2016-09-22t/02_disk_space.t: Further relax device name checkChristoph Berg
In the wild (Debian sbuild) a CP output of "FS sid-pgdg-amd64-sbuild mounted on /" was observed. Stop requiring the device name to start with / or -, and go with .* instead.
2016-06-08txn_idle: Document that --includeuser can be used to work around superuser ↵Christoph Berg
checks Close #81.
2016-06-08connection: Make all errors including timeout from psql CRITICALChristoph Berg
UNKNOWN is not so much useful in the context of basic connection checks. (The result remains UNKNOWN in case version() returns something fishy.) Close #100.
2016-06-07t/02_replicate_row.t: wait for the forks, and sleep a bit longerChristoph Berg
Hopefully this will make the test more reliable.
2016-06-07t/02_replicate_row.t: Allow for some variation in the replication timeChristoph Berg
2016-06-07same_schema: constraint unit test include table name + reinstate sequence ↵glyn
last_value check. Fixes for changes made to same_schema in commit f8145cd902b2c1e01bc211bbfc04737c5fee79f9 * Amend constraint unit tests in t/02_same_schema.t to take into account we now return the table name * Reinstate checking of a sequences last_val, and instead allow users of asynchronous replication to override with '--assume-async' option
2016-06-06Replace $dbh->tables() with selectall_arrayref()Christoph Berg
$dbh->tables() seems to be throwing errors in travis. Replace by a standard catalog query. t/02_commitratio.t ......... DBD::Pg::db tables failed: no statement executing at t/CP_Testing.pm line 825. Looks like your test exited with 255 before it could output anything.
2016-06-05Minimize number of errors in the server log during testingChristoph Berg
2016-06-05Speed up testing by disabling fsyncChristoph Berg
2016-06-05Fix t/02_relation_size.t for 8.4 by skipping indexes_sizeChristoph Berg
2016-06-03Skip replication slot tests before 9.4Christoph Berg
(Refers to #109)
2016-06-03Add check_replication_slots check to check the delay on any replication slots.glyn
"Delay" is measured as size of transaction logs retained for the slot e.g: check_postgres_replication_slots -db=TEST -H=192.168.0.106 -warning=32M -critical=64M
2016-05-31Keep using pg_relation_size on 8.4 and earlierChristoph Berg
pg_indexes_size doesn't exist either on 8.4, but that action is new, so let's not care for now. Also fix t/05_docs.t for the newly added actions.
2016-05-31Change table_size to use pg_table_size()Christoph Berg
Change table_size to use pg_table_size(), i.e. to include the TOAST table size in the numbers reported. Add new actions indexes_size and total_relation_size, using the respective pg_indexes_size() and pg_total_relation_size() functions. All size checks will now also check materialized views where applicable. Close: #32, #83
2015-08-29t/02_disk_space.t: relax filesystem checkChristoph Berg
In https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=790231, Daniel Schepler reports pbuilder (a throwaway-minimal-chroot build wrapper for Debian packages) to setup the filesystem name to be shown as "-". Allow this in the testsuite.
2015-07-17Add test for --action=wal_files --lsfuncChristoph Berg
2015-06-30No tabs pleaseGreg Sabino Mullane
2015-06-23Fix txn_time regression test for 9.0/9.1Christoph Berg
Newer versions will show the last or current query here, older versions will just show "<IDLE> in transaction" if there is currently no query running.
2015-06-23Fix t/02_sequence.t for PG 9.0/1Christoph Berg
2015-03-23Add tests for "serial" and "smallserial" columnsChristoph Berg
The code was already there, but not covered by tests
2015-03-23Query all sequences per DB in parallel for action=sequenceChristoph Berg
action=sequence used to open a new session for every sequence checked, which could be very slow. Fix by creating a single SQL statement using UNION ALL to query all sequences at once.
2014-11-01Tweak test, as the output no longer ends where it used toGreg Sabino Mullane
2014-07-14Tweak testing outputGreg Sabino Mullane
2014-07-03Merge branch 'master' of https://github.com/terrorobe/check_postgresGreg Sabino Mullane
Conflicts: check_postgres.pl
2014-06-12Quick stub to show port when testing. Always 5432 for now (with a custom ↵Greg Sabino Mullane
socket dir)
2013-09-23Spelling fixesGreg Sabino Mullane
2013-09-23Perl::Critic insipred fixesGreg Sabino Mullane
2013-09-23Minor translation fixesGreg Sabino Mullane
2013-09-22Fix regex for cp_version testing.Greg Sabino Mullane
2013-09-22Adding a jstkind to the dummy pgagent schema, so the recent changes that ↵Greg Sabino Mullane
reference it can work.
2013-09-19t/02_relation_size.t: Sleep 0.5s for the MRTG testChristoph Berg
Sleeping 1s created a race condition because we also check after 1s, so it was only luck whether the result of that check is "1" or "2"
2013-09-19t/02_slony_status.t: Fix to work with 9.3Christoph Berg
The error was "schema does not exist" until 9.2, and is now "table does not exist", so just look for "does not exist".
2013-09-19Setting SKIP_NETWORK_TESTS will skip the new_version testsChristoph Berg
Build daemons for Debian packages might not have network access, so provide a way to disable the tests depeding on networking
2013-09-19t/02_last_vacuum.t: Reorder commit calls to make test more stableChristoph Berg
2013-09-18Skipping disk_space tests if df doesn't workChristoph Berg
df might fail in chroot environments, e.g. on build daemons where check-postgres packages are built
2013-09-18Sort lock types so the output ordering is predicatableChristoph Berg
2013-07-02t/02_settings_checksum.t: Accept hex digitsChristoph Berg
Previously, this check only worked by chance if the returned checksum started with a plain digit.
2013-06-25Cannot test for bad sequences in that manner: we already exclude temp schemas!Greg Sabino Mullane
2013-06-25No tabs please.Greg Sabino Mullane
2013-03-13Minor tweaks to get ready for 2.20.0Greg Sabino Mullane
2013-03-13Don't barf when schema does not exist.Greg Sabino Mullane
2013-02-11Force tests to use port 5432 in case PGPORT is conflicting.Greg Sabino Mullane
2013-02-11Better debug output: check for dbdir and datadir separately.Greg Sabino Mullane
2012-09-11Postgres 9.2 compatibilityJosh Williams
check_txn_idle and check_backends (and the backends test) have been updated to use the new pg_stat_activity. And check_disk_space now uses pg_tablespace_location().
2012-05-23Force to port 5432 for funky systems.Greg Sabino Mullane
2012-05-23Bail out early if the test server is completely unreachableGreg Sabino Mullane
2012-05-21Spelling fixes.Greg Sabino Mullane
2012-05-21Minor cleanups.Greg Sabino Mullane