Ver Fonte

Bump version for release.

Dan Helfman há 5 anos atrás
pai
commit
e4eff0e3dc
3 ficheiros alterados com 5 adições e 3 exclusões
  1. 3 1
      NEWS
  2. 1 1
      setup.py
  3. 1 1
      tests/unit/hooks/test_postgresql.py

+ 3 - 1
NEWS

@@ -1,5 +1,7 @@
-1.5.2.dev0
+1.5.2
  * #301: Fix MySQL restore error on "all" database dump by excluding system tables.
  * #301: Fix MySQL restore error on "all" database dump by excluding system tables.
+ * Fix PostgreSQL restore error on "all" database dump by using "psql" for the restore instead of
+   "pg_restore".
 
 
 1.5.1
 1.5.1
  * #289: Tired of looking up the latest successful archive name in order to pass it to borgmatic
  * #289: Tired of looking up the latest successful archive name in order to pass it to borgmatic

+ 1 - 1
setup.py

@@ -1,6 +1,6 @@
 from setuptools import find_packages, setup
 from setuptools import find_packages, setup
 
 
-VERSION = '1.5.2.dev0'
+VERSION = '1.5.2'
 
 
 
 
 setup(
 setup(

+ 1 - 1
tests/unit/hooks/test_postgresql.py

@@ -310,7 +310,7 @@ def test_restore_database_dumps_runs_pg_restore_with_username_and_password():
     module.restore_database_dumps(databases, 'test.yaml', {}, dry_run=False)
     module.restore_database_dumps(databases, 'test.yaml', {}, dry_run=False)
 
 
 
 
-def test_restore_all_database_dump():
+def test_restore_database_dumps_runs_psql_for_all_database_dump():
     databases = [{'name': 'all'}]
     databases = [{'name': 'all'}]
     flexmock(module).should_receive('make_dump_path').and_return('')
     flexmock(module).should_receive('make_dump_path').and_return('')
     flexmock(module.dump).should_receive('make_database_dump_filename').and_return(
     flexmock(module.dump).should_receive('make_database_dump_filename').and_return(