pglift-cli 2.4.0__tar.gz → 2.5.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pglift_cli-2.4.0 → pglift_cli-2.5.0}/PKG-INFO +1 -1
- {pglift_cli-2.4.0 → pglift_cli-2.5.0}/src/pglift_cli/pgconf.py +1 -1
- {pglift_cli-2.4.0 → pglift_cli-2.5.0}/tests/expect/test-transactions.t +12 -3
- {pglift_cli-2.4.0 → pglift_cli-2.5.0}/.gitignore +0 -0
- {pglift_cli-2.4.0 → pglift_cli-2.5.0}/README.md +0 -0
- {pglift_cli-2.4.0 → pglift_cli-2.5.0}/hatch.toml +0 -0
- {pglift_cli-2.4.0 → pglift_cli-2.5.0}/pyproject.toml +0 -0
- {pglift_cli-2.4.0 → pglift_cli-2.5.0}/pytest.ini +0 -0
- {pglift_cli-2.4.0 → pglift_cli-2.5.0}/src/pglift_cli/__init__.py +0 -0
- {pglift_cli-2.4.0 → pglift_cli-2.5.0}/src/pglift_cli/__main__.py +0 -0
- {pglift_cli-2.4.0 → pglift_cli-2.5.0}/src/pglift_cli/_settings.py +0 -0
- {pglift_cli-2.4.0 → pglift_cli-2.5.0}/src/pglift_cli/_site.py +0 -0
- {pglift_cli-2.4.0 → pglift_cli-2.5.0}/src/pglift_cli/base.py +0 -0
- {pglift_cli-2.4.0 → pglift_cli-2.5.0}/src/pglift_cli/console.py +0 -0
- {pglift_cli-2.4.0 → pglift_cli-2.5.0}/src/pglift_cli/database.py +0 -0
- {pglift_cli-2.4.0 → pglift_cli-2.5.0}/src/pglift_cli/hookspecs.py +0 -0
- {pglift_cli-2.4.0 → pglift_cli-2.5.0}/src/pglift_cli/instance.py +0 -0
- {pglift_cli-2.4.0 → pglift_cli-2.5.0}/src/pglift_cli/main.py +0 -0
- {pglift_cli-2.4.0 → pglift_cli-2.5.0}/src/pglift_cli/model.py +0 -0
- {pglift_cli-2.4.0 → pglift_cli-2.5.0}/src/pglift_cli/patroni.py +0 -0
- {pglift_cli-2.4.0 → pglift_cli-2.5.0}/src/pglift_cli/pgbackrest/__init__.py +0 -0
- {pglift_cli-2.4.0 → pglift_cli-2.5.0}/src/pglift_cli/pgbackrest/repo_path.py +0 -0
- {pglift_cli-2.4.0 → pglift_cli-2.5.0}/src/pglift_cli/pghba.py +0 -0
- {pglift_cli-2.4.0 → pglift_cli-2.5.0}/src/pglift_cli/pm.py +0 -0
- {pglift_cli-2.4.0 → pglift_cli-2.5.0}/src/pglift_cli/postgres.py +0 -0
- {pglift_cli-2.4.0 → pglift_cli-2.5.0}/src/pglift_cli/prometheus.py +0 -0
- {pglift_cli-2.4.0 → pglift_cli-2.5.0}/src/pglift_cli/py.typed +0 -0
- {pglift_cli-2.4.0 → pglift_cli-2.5.0}/src/pglift_cli/role.py +0 -0
- {pglift_cli-2.4.0 → pglift_cli-2.5.0}/src/pglift_cli/util.py +0 -0
- {pglift_cli-2.4.0 → pglift_cli-2.5.0}/tests/expect/.gitignore +0 -0
- {pglift_cli-2.4.0 → pglift_cli-2.5.0}/tests/expect/test-base.t +0 -0
- {pglift_cli-2.4.0 → pglift_cli-2.5.0}/tests/expect/test-cli-walkthrough.t +0 -0
- {pglift_cli-2.4.0 → pglift_cli-2.5.0}/tests/expect/test-demote.t +0 -0
- {pglift_cli-2.4.0 → pglift_cli-2.5.0}/tests/expect/test-help.t +0 -0
- {pglift_cli-2.4.0 → pglift_cli-2.5.0}/tests/expect/test-port-validation.t +0 -0
- {pglift_cli-2.4.0 → pglift_cli-2.5.0}/tests/expect/test-prometheus.t +0 -0
- {pglift_cli-2.4.0 → pglift_cli-2.5.0}/tests/expect/test-standby-pgbackrest.t +0 -0
- {pglift_cli-2.4.0 → pglift_cli-2.5.0}/tests/expect/test-upgrade.t +0 -0
- {pglift_cli-2.4.0 → pglift_cli-2.5.0}/tests/unit/__init__.py +0 -0
- {pglift_cli-2.4.0 → pglift_cli-2.5.0}/tests/unit/conftest.py +0 -0
- {pglift_cli-2.4.0 → pglift_cli-2.5.0}/tests/unit/test__site.py +0 -0
- {pglift_cli-2.4.0 → pglift_cli-2.5.0}/tests/unit/test_audit.py +0 -0
- {pglift_cli-2.4.0 → pglift_cli-2.5.0}/tests/unit/test_cli.py +0 -0
- {pglift_cli-2.4.0 → pglift_cli-2.5.0}/tests/unit/test_main.py +0 -0
- {pglift_cli-2.4.0 → pglift_cli-2.5.0}/tests/unit/test_model.py +0 -0
- {pglift_cli-2.4.0 → pglift_cli-2.5.0}/tests/unit/test_pm.py +0 -0
- {pglift_cli-2.4.0 → pglift_cli-2.5.0}/tests/unit/test_util.py +0 -0
|
@@ -154,7 +154,7 @@ async def edit(obj: Obj, instance: Instance) -> None:
|
|
|
154
154
|
pg_instance = instance.postgresql
|
|
155
155
|
with obj.lock, audit():
|
|
156
156
|
with manager.from_instance(pg_instance):
|
|
157
|
-
actual_config = instances.postgresql_editable_conf(pg_instance)
|
|
157
|
+
actual_config = await instances.postgresql_editable_conf(pg_instance)
|
|
158
158
|
edited = click.edit(text=actual_config)
|
|
159
159
|
if edited is None:
|
|
160
160
|
click.echo("no change", err=True)
|
|
@@ -54,16 +54,25 @@ Try to create an instance with a non-existing encoding, triggering a failure in
|
|
|
54
54
|
[1]
|
|
55
55
|
|
|
56
56
|
Try to create a database with a non-existing tablespace
|
|
57
|
-
(XXX the final error message is wrong, probably a bug here)
|
|
58
57
|
|
|
59
58
|
$ pglift -Linfo database create db --tablespace=nosuchtbspc
|
|
60
59
|
INFO starting PostgreSQL 1\d\/main (re)
|
|
61
60
|
INFO creating 'db' database in 1\d\/main (re)
|
|
62
61
|
WARNING tablespace "nosuchtbspc" does not exist
|
|
63
62
|
WARNING reverting: creating 'db' database in 1\d\/main (re)
|
|
64
|
-
INFO dropping 'db' database
|
|
65
63
|
INFO stopping PostgreSQL 1\d\/main (re)
|
|
66
|
-
Error:
|
|
64
|
+
Error: tablespace "nosuchtbspc" does not exist
|
|
65
|
+
[1]
|
|
66
|
+
|
|
67
|
+
Try to create a database with a non-existing owner
|
|
68
|
+
|
|
69
|
+
$ pglift -Linfo database create db --owner=nosuchowner
|
|
70
|
+
INFO starting PostgreSQL 1\d\/main (re)
|
|
71
|
+
INFO creating 'db' database in 1\d\/main (re)
|
|
72
|
+
WARNING role "nosuchowner" does not exist
|
|
73
|
+
WARNING reverting: creating 'db' database in 1\d\/main (re)
|
|
74
|
+
INFO stopping PostgreSQL 1\d\/main (re)
|
|
75
|
+
Error: role "nosuchowner" does not exist
|
|
67
76
|
[1]
|
|
68
77
|
|
|
69
78
|
(cleanup)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|