Commit a5801ff
committed
backupresolver: adjust test message expectations
This adjusts tests to check for the appropriate errors that are returned
by the new ResolveTargets implementation.
- The old code delegated to DescriptorsMatchingTargets, which was returning
an incorrectly specific error message when a database did not exist.
- To handle wildcard expansion, The previous implementation was calling
ResolveObjectPrefix, which mutates the object name in place to add the
`public` schema to the pattern if it was unspecified. This was not
correct, as the db.* pattern causes all tables in the database to be
backed up, not just the ones in the public schema.
Release note: None1 parent d74dbe8 commit a5801ff
File tree
4 files changed
+8
-15
lines changed- pkg/backup
- backupresolver
- testdata/backup-restore
4 files changed
+8
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
782 | 782 | | |
783 | 783 | | |
784 | 784 | | |
785 | | - | |
786 | | - | |
787 | | - | |
788 | | - | |
789 | 785 | | |
790 | 786 | | |
791 | 787 | | |
| |||
798 | 794 | | |
799 | 795 | | |
800 | 796 | | |
801 | | - | |
802 | | - | |
803 | | - | |
804 | 797 | | |
805 | 798 | | |
806 | 799 | | |
807 | | - | |
| 800 | + | |
808 | 801 | | |
809 | 802 | | |
810 | 803 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
333 | 333 | | |
334 | 334 | | |
335 | 335 | | |
336 | | - | |
| 336 | + | |
337 | 337 | | |
338 | 338 | | |
339 | 339 | | |
| |||
343 | 343 | | |
344 | 344 | | |
345 | 345 | | |
346 | | - | |
| 346 | + | |
347 | 347 | | |
348 | 348 | | |
349 | 349 | | |
350 | 350 | | |
351 | | - | |
| 351 | + | |
352 | 352 | | |
353 | 353 | | |
354 | 354 | | |
| |||
592 | 592 | | |
593 | 593 | | |
594 | 594 | | |
595 | | - | |
| 595 | + | |
596 | 596 | | |
597 | 597 | | |
598 | 598 | | |
599 | 599 | | |
600 | 600 | | |
601 | 601 | | |
602 | | - | |
| 602 | + | |
603 | 603 | | |
604 | 604 | | |
605 | 605 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
0 commit comments