1
0
mirror of https://github.com/postgrespro/pg_probackup.git synced 2026-04-26 21:22:39 +02:00

1251 Commits

Author SHA1 Message Date
vshepard af1711edc9 tests 2.8.2 2024-09-05 16:41:28 +02:00
vshepard 4239e7bc17 tests 2.8.2 2024-09-04 13:21:53 +02:00
vshepard 09da114fe2 Add s3 tests - fix json parsing in show 2024-05-03 15:37:54 +02:00
vshepard 99eec6e4e2 Add s3 tests 2024-05-03 10:54:40 +02:00
Yura Sokolov de531e62e4 PBCKP-797: fix race condition by waiting
and filling same amount of rows.
2023-11-13 15:26:23 +03:00
Viktoriia Shepard 915d066554 fix tests for Pg16 and EE16 2023-10-27 19:50:03 +02:00
Sergey Fukanchik 9762426ce9 PBCKP-732 ignore PGDATA setting in catchup mode as we use --source-pgdata instead 2023-09-21 11:08:24 +00:00
Yuriy Sokolov c9fc20b898 PBCKP-604: Allow partial incremental restore only with a flag --destroy-all-other-dbs 2023-05-26 19:36:05 +03:00
Victor Spirin 0690f8d10e [PBCKP-602] Added saving full size for non data files. 2023-04-24 18:22:28 +03:00
Yura Sokolov b7551bd2bf PBCKP-91: delete "\r" in windows command output. 2023-04-18 21:25:30 +03:00
Alexey Savchkov a04f00aacc Up version 2023-03-28 17:23:44 +07:00
s.fukanchik c0b8eb7c20 PBCKP-91 fix grammar in probackup's log messages 2023-03-27 21:47:17 +03:00
Daria Lepikhova 9727a98976 PBCKP-422: Fix is_enterprise checking for upstream and pgpro. Add is_pgpro checking 2023-03-10 18:24:46 +03:00
Yura Sokolov 3c111262af compatibility tests: skip if PGPROBACKUPBIN_OLD is not set 2023-03-07 18:23:48 +03:00
Sergey Fukanchik be2b90bd3f PBCKP-553 fix a typo in merge preconditions check 2023-03-06 13:34:53 +03:00
Yura Sokolov 297dd2a7eb test for previous commit 2023-02-10 15:07:25 +03:00
Victor Spirin 49bb374d0c [PBCKP-365] Fixed test help_6 test. Added check_locale function for check that locale is installed. 2023-01-17 14:42:12 +03:00
Yura Sokolov 610216c6f8 ptrack_helpers.py: fix compare_pgdata 2023-01-13 15:31:12 +03:00
Yura Sokolov d3babee2ae [PBCKP-287] simplify and fix cfs chaining
- properly chain only main fork and cfs related forks
- properly chain datafile with its cfm even sort order places other
  segments between
- don't raise error for system tables which has no companion cfm.

+ fix couple of tests
2023-01-12 17:30:54 +03:00
Yura Sokolov fa2902090a [PBCKP-423] and backport cleanup_ptrack for test_archive_push_sanity 2023-01-12 00:04:47 +03:00
Yura Sokolov 22bdbb3915 [PBCKP-423] test_archive_push_sanity: wait logs with tail_file
(and some other test as well).
2023-01-11 23:37:45 +03:00
e.garbuz bbe41a403d Fix tests test_restore_from_fullbackup_to_new_location and test_restore_from_fullbackup_to_new_location_5_jobs 2022-12-15 13:37:15 +03:00
Alexey Savchkov b90273fe14 Increment the expected test version 2022-12-13 22:50:17 +07:00
Sofia Kopikova 076e3fdae9 [PBCKP-394] skip creating partitioned index on < 11 versions on test_checkdb_amcheck_only_sanity 2022-12-12 15:46:17 +03:00
Daniel Shelepanov 822fbbfe50 [PBCKP-326] regex fixed in test_missing_replication_permission_1
Everything between WARNING and FATAL sections is now handled with the [\s\S]*? regex:
* [\s\S] is a group that handles any whitespace and non-whitespace character including new lines which are important in this case.
* "*" quantifier means zero or more characters. There may as well be nothing between these two sections.
* "?" quantifies in this case means greedy search so that we don't match more than we need.
2022-12-08 13:53:51 +03:00
Yura Sokolov 25e63c5a7c raw strings in python regex; ignore generated transation files
Author: Sergey Fukanchik
2022-12-08 07:44:12 +03:00
Yura Sokolov 29a9efb4d4 [PBCKP-325] refix test_issue_231
to make two backups in one second we have to fail them.
Therefore we have to fetch backup_id from log in exception's message.

Retry for 20 seconds to have a chance to start in one second.
If we couldn't, lets skip the test.
2022-12-06 14:17:04 +03:00
Yura Sokolov bef73b8ba6 more usages for table_checksum 2022-12-06 01:59:14 +03:00
Yura Sokolov 6bd71d866d [PBCKP-382] and another one Pg15 pg_backup_stop() 2022-12-06 01:51:22 +03:00
Yuriy Sokolov f032861577 Merge branch 'PBCKP-382-bug_15_compat' into 'REL_2_5'
[PBCKP-382] version 15 compatibility bug

See merge request eepbk/pg_probackup_ee!13
2022-12-06 01:50:00 +03:00
Yura Sokolov 3109634ecb [PBCKP-325] change test_issue_231 to check backup id are different 2022-12-05 15:49:12 +03:00
Daniel Shelepanov c42f68ecca [PBCKP-382] version 15 compatibility bug 2022-12-05 11:21:19 +03:00
Yura Sokolov f2f47f7734 get rid of plpython usage 2022-12-04 05:33:52 +03:00
Yura Sokolov fc50cf0ddf tests: fix
travis uses old image with python3.5
2022-12-04 04:24:55 +03:00
Yura Sokolov 02e3fb0477 tests: table_checksum needs no sorting in fact
since we are compare table content exactly
2022-12-04 04:15:55 +03:00
Yura Sokolov 8d8a92c1d1 tests: more usages for table_checksum
and reduce batch twice for sanity
2022-12-02 16:56:54 +03:00
Yura Sokolov 9bcefb2569 [PBCKP-327] test_ptrack_multiple_segments: try to avoid memory consumption 2022-12-02 15:10:22 +03:00
Yura Sokolov 619816012a fix ArchiveTest.test_pgpro434_4 for Pg15 2022-11-30 21:50:20 +03:00
Yura Sokolov e2dd78a99e Merge branch 'REL_2_5-PBCKP-360' into REL_2_5 2022-11-29 20:17:46 +03:00
Yura Sokolov 0a5fc87dbd [PBCKP-360] fix exception check in test_validate_corrupt_page_header_map
zlib decompression could mark error either as "data error" or
"buffer error". One of check did consider it, other didn't.

Make them same.

And use `assertRaises` for good (requires python 3.2 at least)
2022-11-29 15:13:34 +03:00
Viktoria Shepard 0e1227b29f Merge branch 'REL_2_5-PBCKP-306-test-report' into 'REL_2_5'
PBCKP-306 add '_test' to test files

See merge request eepbk/pg_probackup_ee!2
2022-11-25 12:57:44 +03:00
Viktoria Shepard d049466287 PBCKP-306 add '_test' to test files 2022-11-25 12:57:43 +03:00
Yura Sokolov 440441dc6f ... fix names 2022-11-25 11:26:54 +03:00
Yura Sokolov 1617eb34ec tests: prettify pgdata_content and compare_pgdata 2022-11-25 11:03:52 +03:00
Yura Sokolov 20667e9594 tests: better directory collection in pgdata_content
There is no need to walk pgdata twice.
We could delete parent directories instead of skipping them.
2022-11-25 08:31:00 +03:00
Yura Sokolov 19a7c5b01f tests: do not read whole file at once for digest. Iterate instead. 2022-11-25 07:59:14 +03:00
Yura Sokolov 7eab6e3463 [PBCKP-358] sort directories to not skip 'base/1' because of 'base/12699'
Looks like os.walk may yield dirs unsorted.
This way "check if directory already here as part of larger directory"
man mistakenly skip short 'base/1' as "part of" 'base/12699'
2022-11-25 07:58:08 +03:00
Yura Sokolov b7a183081e [PBCKP-357] fix UnicodeDecodeError
Got in some tests:
```
Traceback (most recent call last):
  File "pg_probackup/tests/replica.py", line 625, in test_replica_stop_lsn_null_offset
    gdb_checkpointer = self.gdb_attach(bgwriter_pid)
  File "pg_probackup/tests/helpers/ptrack_helpers.py", line 1984, in gdb_attach
    return GDBobj([str(pid)], self, attach=True)
  File "pg_probackup/tests/helpers/ptrack_helpers.py", line 2054, in __init__
    line = self.get_line()
  File "pg_probackup/tests/helpers/ptrack_helpers.py", line 2065, in get_line
    line = self.proc.stdout.readline()
  File "/usr/lib/python3.10/codecs.py", line 322, in decode
    (result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd0 in position 189: invalid continuation byte
```
Fixed with `errors='replace'`
2022-11-25 06:40:07 +03:00
Yura Sokolov 73cce507c2 [PBCKP-358] fix CatchupTest.test_unclean_(delta|ptrack)_catchup
and BugTest.test_minrecpoint_on_replica as well

Tests were broken with introduction of "startness" handling in
    9924ab014 [PBCKP-304] extended testgres.PosgresNode to ...
since tests uses os.kill directly.
2022-11-25 04:20:29 +03:00
Yura Sokolov e674202eac test_backup_via_unprivileged_user - test with ptrack correctly 2022-11-24 14:42:12 +03:00