benoit
7eea4c94be
Reorganise for the urllib3 > requests change
2023-03-20 12:25:32 +01:00
benoit
2443505ad6
Change logging
...
We now use our own logger.
When debug is set (-vvv), we also display urllib3's debug info.
2023-03-20 12:25:32 +01:00
benoit
7256c1894a
Fix tests for the urllib3 to requests change
2023-03-20 12:25:32 +01:00
benoit
7815f3379c
Reverse the test for node_is_pending
...
Since the desired state is for there to be no restart pending state, it
makes more sense to modify the service logic so that the return code
reflects this. As a result, the test for the service `node_is_pending`
has been reversed.
2023-03-20 12:25:32 +01:00
benoit
9cd80f5af8
Move from urllib3 to requests
2023-03-20 12:25:32 +01:00
benoit
0800fc72e9
Add more info on states and roles for cluster_node_count
2023-03-10 10:16:01 +01:00
benoit
6f45618e08
Update node_is_alive to metion that it's an liveness check.
2023-03-10 10:16:01 +01:00
benoit
7286638121
-e/endpoints spec update
...
* it is now possible to specify a comma separated list of endpoints
* the documentation as been updated to explain that:
+ for node services if several addresses are specified they should
point to different interfaces on the same server.
+ for cluster services several addresses should be used because we
want the cluster status so the more API we try the better our chance
of having a reply.
2023-03-10 10:16:01 +01:00
benoit
48d2656ec7
Update check_patroni's description to mention Patroni's API
2023-03-10 10:16:01 +01:00
benoit
93b196fb77
Fix a format string for cluster_config_has_changed
2023-03-02 17:32:18 +01:00
benoit
275901006b
Add spellcheck + tox in requirements-dev.txt
2023-03-02 17:32:18 +01:00
benoit
38cabb333e
Fix tox: remove python 3.6 tests
2023-03-02 17:32:18 +01:00
benoit
908669f073
Add a --save
option when state files are used
...
The checks `cluster_config_has_changed` and `node_tl_has_changed` use a
state file to store the previous value of the config hash and the
timeline.
Previously the check would fail if something changed, but the new value
would be saved directly. This behavious has changed. The new value
is saved only if `--save` is passed to the check.
The mimics the way [check_pgactivity] manages this kind of checks.
[check_pgactivity]: https://github.com/OPMDG/check_pgactivity
2023-03-02 17:32:18 +01:00
benoit
e7e7ac2e3a
Release 0.1.1
2022-07-15 11:16:19 +02:00
benoit
d5adcd9db3
Add a cp_origin parameter in the Vagrantfile
...
* "test": use the local repository
* "origin": use the latest official release
2022-07-15 11:16:19 +02:00
Benoit
e3d1ac9581
Merge pull request #17 from blogh/release_0.1.0
...
Release 0.1.0
2022-07-13 16:56:07 +02:00
benoit
1119abcbdd
Release 0.1.0
2022-07-13 16:53:16 +02:00
benoit
951555ee30
Add forgotten requirements-dev.txt
2022-07-13 16:53:07 +02:00
Benoit
29ce7eb36f
Merge pull request #16 from blogh/ci-release
...
* add release related scripts in tox.ini
* update setup.py
* add a ci to publish when we release => push a tag "v*"
* update CONTRIBUTING.md
2022-07-13 16:47:50 +02:00
benoit
c18fa67a09
Tox updates, setup.py fixes and CONTRIBUTING.md
2022-07-13 16:04:49 +02:00
benoit
5198f38620
Review fix
2022-07-13 09:03:23 +02:00
benoit
12832945c3
pyproject.toml
2022-07-12 16:07:57 +02:00
benoit
04f7ea78d3
Add publish workflow
2022-07-12 15:55:48 +02:00
benoit
b1398189a0
Release stuff
2022-07-12 15:50:06 +02:00
Benoit
7de233eb69
Add a ci for lint and pytests ( #15 )
2022-07-12 14:31:23 +02:00
Benoit
8fd2d37772
Merge pull request #14 from blogh/black_setup_py
...
Black run on the new version of setup.py
2022-07-11 16:32:51 +02:00
benoit
726c1903d8
Black run on the new version of setup.py
2022-07-11 16:31:53 +02:00
Benoit
43cc4ac118
Merge pull request #13 from blogh/few_fixes_before_ci
...
Few fixes before ci
2022-07-11 16:26:13 +02:00
Étienne BERSAC
9d6ec453ea
Merge pull request #12 from bersace/dev
...
Dev updates
2022-07-11 16:13:49 +02:00
benoit
6c0768099f
Adjust mypy.ini
2022-07-11 15:55:19 +02:00
benoit
64d87d505e
Black run
2022-07-11 15:16:19 +02:00
benoit
c8043cb482
.gitignore
2022-07-11 15:15:50 +02:00
Étienne BERSAC
0f511dc5cf
Hard code python package
...
Avoid embedding other package like tests.
2022-07-11 15:06:11 +02:00
Étienne BERSAC
cd1461c66d
Move wheel as dev dependency
2022-07-11 15:03:17 +02:00
Benoit
0148ca9c50
Merge pull request #11 from blogh/vagrant_docs_tests
...
Vagrant docs tests
2022-07-11 14:45:07 +02:00
Benoit
5a1320b2a0
Merge pull request #9 from blogh/mypy
...
Pin the mypy version
2022-07-11 12:48:05 +02:00
benoit
8519416c11
Rename test to tests
2022-07-11 12:42:59 +02:00
benoit
1e3da856cc
Rename doc to docs
2022-07-11 12:42:55 +02:00
Étienne BERSAC
c53f446497
Merge pull request #7 from bersace/license
...
License
2022-07-11 12:42:31 +02:00
benoit
77f07b105e
Move vagrant to /
2022-07-11 12:38:39 +02:00
Benoit
21c1ff27d6
Merge pull request #8 from bersace/docs
...
Review README, extracting CONTRIBUTING
2022-07-11 12:32:55 +02:00
Étienne BERSAC
3ac8570748
Review README, extracting CONTRIBUTING
2022-07-11 12:12:55 +02:00
Étienne BERSAC
98e03e8b54
Make doc/make_readme.sh independent of PWD
2022-07-11 12:12:54 +02:00
benoit
5448f546cf
Pin the mypy version
2022-07-11 11:57:59 +02:00
Étienne BERSAC
9414b2d50f
Ignore setuptools dist/ dir
2022-07-11 11:36:53 +02:00
Étienne BERSAC
f9240fdd29
Add License file
2022-07-11 11:35:30 +02:00
benoit
ed98098bf5
Update .gitignore (add .venv)
2022-07-11 08:59:03 +02:00
benoit
14c7ae5267
Fix README.md
2022-07-11 08:57:14 +02:00
benoit
9735be6904
fix flake8 complaints
2022-02-07 15:13:13 +01:00
benoit
aa1de928d3
An attempt at correctly ordering imports
2022-02-07 15:11:05 +01:00