Skip to content

Commit 50391e5

Browse files
committed
chore(deps): update dependencies
1 parent 10c7785 commit 50391e5

10 files changed

Lines changed: 357 additions & 321 deletions

File tree

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
run: |
3030
sudo exordos compute hypervisors init
3131
sudo chmod 666 /dev/kvm
32-
- uses: actions/checkout@v6
32+
- uses: actions/checkout@v7
3333
with:
3434
fetch-depth: 0
3535
- name: Build Exordos DB

.github/workflows/docs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818

1919
steps:
2020
- name: Checkout code
21-
uses: actions/checkout@v6
21+
uses: actions/checkout@v7
2222
with:
2323
fetch-depth: 0
2424
- uses: actions/setup-python@v6
@@ -41,7 +41,7 @@ jobs:
4141
runs-on: ubuntu-latest
4242
steps:
4343
- name: Checkout
44-
uses: actions/checkout@v6
44+
uses: actions/checkout@v7
4545
with:
4646
ref: gh-pages
4747
- name: Setup Pages

.github/workflows/markdownlint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ jobs:
1111
lint:
1212
runs-on: ubuntu-24.04
1313
steps:
14-
- uses: actions/checkout@v6
14+
- uses: actions/checkout@v7
1515
with:
1616
fetch-depth: 0
1717
- uses: tj-actions/changed-files@v47
1818
id: changed-files
1919
with:
2020
files: '**/*.md'
2121
separator: ","
22-
- uses: DavidAnson/markdownlint-cli2-action@v23
22+
- uses: DavidAnson/markdownlint-cli2-action@v24
2323
if: steps.changed-files.outputs.any_changed == 'true'
2424
with:
2525
globs: ${{ steps.changed-files.outputs.all_changed_files }}

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
matrix:
1313
python-version: [ "3.12" ]
1414
steps:
15-
- uses: actions/checkout@v6
15+
- uses: actions/checkout@v7
1616
- name: Set up Python ${{ matrix.python-version }}
1717
uses: actions/setup-python@v6
1818
with:

etc/exordos_db/exordos_pg_agent.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ payload_path = /var/lib/exordos/exordos_db/payload.json
88
orch_endpoint = http://dbaas-cp.local.genesis-core.tech:11011
99
status_endpoint = http://dbaas-cp.local.genesis-core.tech:11012
1010
caps_drivers = PGCapabilityDriver
11+
verify_node_on_register = False

exordos_db/services/gservice.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ def __init__(
8383
caps_drivers=caps_drivers,
8484
facts_drivers=facts_drivers,
8585
payload_path=payload_path,
86+
verify_node_on_register=False,
8687
**kwargs,
8788
)
8889

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
import configparser
2+
from pathlib import Path
3+
from unittest import mock
4+
5+
from exordos_db.services import gservice
6+
7+
8+
@mock.patch.object(
9+
gservice.agent_service.UniversalAgentService,
10+
"__init__",
11+
return_value=None,
12+
)
13+
@mock.patch.object(gservice.core_drivers, "RestCoreCapabilityDriver")
14+
@mock.patch.object(gservice.orch_db, "DatabaseOrchClient")
15+
@mock.patch.object(gservice.ua_utils, "system_uuid")
16+
def test_internal_agent_skips_local_node_verification(
17+
system_uuid,
18+
database_orch_client,
19+
rest_core_driver,
20+
universal_agent_init,
21+
):
22+
gservice.UAgent(
23+
core_username="db-user",
24+
core_password="db-password",
25+
core_api_base_url="http://core.example/api/core",
26+
project_id="11111111-1111-1111-1111-111111111111",
27+
)
28+
29+
universal_agent_init.assert_called_once()
30+
assert universal_agent_init.call_args.kwargs["verify_node_on_register"] is False
31+
32+
33+
def test_postgres_agent_skips_local_node_verification():
34+
config = configparser.ConfigParser()
35+
config.read(
36+
Path(__file__).parents[4]
37+
/ "etc"
38+
/ "exordos_db"
39+
/ "exordos_pg_agent.conf"
40+
)
41+
42+
assert config.getboolean("universal_agent", "verify_node_on_register") is False

pyproject.toml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ classifiers = [
2020
]
2121
dependencies = [
2222
"oslo.config>=3.22.2,<10.0.0", # Apache-2.0
23-
"restalchemy>=15.1.1,<16.0.0", # Apache-2.0
24-
"gcl_iam>=1.2.1,<2.0.0", # Apache-2.0
23+
"restalchemy>=15.2.2,<16.0.0", # Apache-2.0
24+
"gcl_iam>=1.3.1,<2.0.0", # Apache-2.0
2525
"gcl_looper>=1.2.3,<2.0.0", # Apache-2.0
26-
"gcl_sdk>=3.0.4,<4.0.0", # Apache-2.0
26+
"gcl_sdk>=3.0.8,<4.0.0", # Apache-2.0
2727
"bjoern>=3.2.2", # BSD License (BSD-3-Clause)
2828
"PyYAML>=6.0.0,<7.0.0", # MIT
2929
]
@@ -32,21 +32,21 @@ homepage = "https://github.com/exordos/exordos_db/"
3232

3333
[build-system]
3434
requires = [
35-
"setuptools>=82.0.1",
36-
"setuptools_scm>=10.0.5"
35+
"setuptools>=83.0.0",
36+
"setuptools_scm>=10.2.0"
3737
]
3838
build-backend = "setuptools.build_meta"
3939

4040
[tool.setuptools_scm]
4141

4242
[project.optional-dependencies]
4343
dev = [
44-
"tox>=4.55.1",
44+
"tox>=4.56.3",
4545
"tox-uv",
4646
"pytest>=7.0.0",
4747
]
4848
test = [
49-
"coverage>=7.14.1",
49+
"coverage>=7.15.0",
5050
"mock>=3.0.5,<6.0.0",
5151
"pytest>=8.0.0,<10.0.0",
5252
"pytest-xdist[psutil]>=3.8.0,<4.0.0", # MIT License (MIT)

uv.lock

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

0 commit comments

Comments
 (0)