Skip to content

Commit 3f81441

Browse files
authored
feat: [DPE-6904] Spaces support (#857)
* (wip) segregate address for `database` endpoint * list on available addresses * include async repl support * not pods * fix unit label/name conversion * fixes for async * lint fixes * integration test * spread config for integration test * unit test fixes * update jubilant * fix endpoint name * bump jubilant * log need to collected within the context manager * avoid breaking when unit is leaving the cluster * out-of-sync members must be outed from online members * sometimes, a stopped member can be down and still be shown as streaming, but with out-of-sync * increase tests timeouts
1 parent 2753365 commit 3f81441

File tree

16 files changed

+648
-219
lines changed

16 files changed

+648
-219
lines changed

poetry.lock

Lines changed: 39 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 40 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ codespell = "^2.4.1"
5252
optional = true
5353

5454
[tool.poetry.group.unit.dependencies]
55-
coverage = {extras = ["toml"], version = "^7.8.0"}
55+
coverage = { extras = ["toml"], version = "^7.8.0" }
5656
pytest = "^8.3.5"
5757
pytest-asyncio = "*"
5858
parameterized = "^0.9.0"
@@ -66,6 +66,7 @@ pytest = "^8.3.5"
6666
pytest-operator = "^0.42.0"
6767
# renovate caret doesn't work: https://github.com/renovatebot/renovate/issues/26940
6868
juju = "<=3.6.1.1"
69+
jubilant = "^1.0.1"
6970
boto3 = "*"
7071
tenacity = "*"
7172
landscape-api-py3 = "^0.9.0"
@@ -80,9 +81,7 @@ branch = true
8081

8182
[tool.coverage.report]
8283
show_missing = true
83-
exclude_lines = [
84-
"logger\\.debug"
85-
]
84+
exclude_lines = ["logger\\.debug"]
8685

8786
[tool.pytest.ini_options]
8887
minversion = "6.0"
@@ -105,31 +104,51 @@ line-length = 99
105104

106105
[tool.ruff.lint]
107106
explicit-preview-rules = true
108-
select = ["A", "E", "W", "F", "C", "N", "D", "I001", "B", "CPY", "RUF", "S", "SIM", "UP", "TC"]
107+
select = [
108+
"A",
109+
"E",
110+
"W",
111+
"F",
112+
"C",
113+
"N",
114+
"D",
115+
"I001",
116+
"B",
117+
"CPY",
118+
"RUF",
119+
"S",
120+
"SIM",
121+
"UP",
122+
"TC",
123+
]
109124
extend-ignore = [
110-
"D203",
111-
"D204",
112-
"D213",
113-
"D215",
114-
"D400",
115-
"D404",
116-
"D406",
117-
"D407",
118-
"D408",
119-
"D409",
120-
"D413",
125+
"D203",
126+
"D204",
127+
"D213",
128+
"D215",
129+
"D400",
130+
"D404",
131+
"D406",
132+
"D407",
133+
"D408",
134+
"D409",
135+
"D413",
121136
]
122137
# Ignore E501 because using black creates errors with this
123138
# Ignore D107 Missing docstring in __init__
124139
ignore = ["E501", "D107"]
125140

126141
[tool.ruff.lint.per-file-ignores]
127142
"tests/*" = [
128-
"D100", "D101", "D102", "D103", "D104",
129-
# Asserts
130-
"B011",
131-
# Disable security checks for tests
132-
"S",
143+
"D100",
144+
"D101",
145+
"D102",
146+
"D103",
147+
"D104",
148+
# Asserts
149+
"B011",
150+
# Disable security checks for tests
151+
"S",
133152
]
134153

135154
[tool.ruff.lint.flake8-copyright]

0 commit comments

Comments
 (0)