fix(identity): create the identity when missing #115
Annotations
6 errors and 20 warnings
|
Python / Tests (3.9, postgresql14, opensearch2)
Process completed with exit code 1.
|
|
Python / Tests (3.9, postgresql14, opensearch2):
tests/test_sync_users.py#L288
test_sync_identity_missing
AttributeError: 'NoneType' object has no attribute 'id'
|
|
Python / Tests (3.9, postgresql14, opensearch2):
tests/test_sync_users.py#L0
Black format check
--- /home/runner/work/invenio-cern-sync/invenio-cern-sync/tests/test_sync_users.py 2025-10-29 11:05:31.530861+00:00
+++ /home/runner/work/invenio-cern-sync/invenio-cern-sync/tests/test_sync_users.py 2025-10-29 11:07:01.972604+00:00
@@ -259,10 +259,11 @@
"users-sync",
dict(action="updating-existing-users", msg=expected_log_msg),
log_uuid=mock.ANY,
)
+
@patch("invenio_cern_sync.users.sync.KeycloakService")
@patch("invenio_cern_sync.users.sync.AuthZService")
@patch("invenio_cern_sync.users.sync.log_warning")
def test_sync_identity_missing(
mock_log_warning,
@@ -294,10 +295,11 @@
mock_log_warning.assert_any_call(
"users-sync",
dict(action="updating-existing-users", msg=expected_log_msg),
log_uuid=mock.ANY,
)
+
@patch("invenio_cern_sync.users.sync.KeycloakService")
@patch("invenio_cern_sync.users.sync.AuthZService")
@patch("invenio_cern_sync.users.sync.log_warning")
def test_sync_username_email_change(
|
|
Python / Tests (3.12, postgresql14, opensearch2)
Process completed with exit code 1.
|
|
Python / Tests (3.12, postgresql14, opensearch2):
tests/test_sync_users.py#L288
test_sync_identity_missing
AttributeError: 'NoneType' object has no attribute 'id'
|
|
Python / Tests (3.12, postgresql14, opensearch2):
tests/test_sync_users.py#L0
Black format check
--- /home/runner/work/invenio-cern-sync/invenio-cern-sync/tests/test_sync_users.py 2025-10-29 11:05:30.543319+00:00
+++ /home/runner/work/invenio-cern-sync/invenio-cern-sync/tests/test_sync_users.py 2025-10-29 11:07:02.509041+00:00
@@ -259,10 +259,11 @@
"users-sync",
dict(action="updating-existing-users", msg=expected_log_msg),
log_uuid=mock.ANY,
)
+
@patch("invenio_cern_sync.users.sync.KeycloakService")
@patch("invenio_cern_sync.users.sync.AuthZService")
@patch("invenio_cern_sync.users.sync.log_warning")
def test_sync_identity_missing(
mock_log_warning,
@@ -294,10 +295,11 @@
mock_log_warning.assert_any_call(
"users-sync",
dict(action="updating-existing-users", msg=expected_log_msg),
log_uuid=mock.ANY,
)
+
@patch("invenio_cern_sync.users.sync.KeycloakService")
@patch("invenio_cern_sync.users.sync.AuthZService")
@patch("invenio_cern_sync.users.sync.log_warning")
def test_sync_username_email_change(
|
|
Python / Tests (3.9, postgresql14, opensearch2):
/opt/hostedtoolcache/Python/3.9.23/x64/lib/python3.9/site-packages/flask_caching/__init__.py#L145
Using the initialization functions in flask_caching.backend is deprecated. Use the a full path to backend classes directly.
|
|
Python / Tests (3.9, postgresql14, opensearch2):
/opt/hostedtoolcache/Python/3.9.23/x64/lib/python3.9/site-packages/invenio_rest/ext.py#L29
CSRF validation will be enabled by default in the version 1.3.x
|
|
Python / Tests (3.9, postgresql14, opensearch2):
/opt/hostedtoolcache/Python/3.9.23/x64/lib/python3.9/site-packages/flask_caching/__init__.py#L145
Using the initialization functions in flask_caching.backend is deprecated. Use the a full path to backend classes directly.
|
|
Python / Tests (3.9, postgresql14, opensearch2):
/opt/hostedtoolcache/Python/3.9.23/x64/lib/python3.9/site-packages/flask_caching/__init__.py#L145
Using the initialization functions in flask_caching.backend is deprecated. Use the a full path to backend classes directly.
|
|
Python / Tests (3.9, postgresql14, opensearch2):
/opt/hostedtoolcache/Python/3.9.23/x64/lib/python3.9/site-packages/invenio_rest/ext.py#L29
CSRF validation will be enabled by default in the version 1.3.x
|
|
Python / Tests (3.9, postgresql14, opensearch2):
/opt/hostedtoolcache/Python/3.9.23/x64/lib/python3.9/site-packages/flask_caching/__init__.py#L145
Using the initialization functions in flask_caching.backend is deprecated. Use the a full path to backend classes directly.
|
|
Python / Tests (3.9, postgresql14, opensearch2):
/opt/hostedtoolcache/Python/3.9.23/x64/lib/python3.9/site-packages/flask_caching/__init__.py#L145
Using the initialization functions in flask_caching.backend is deprecated. Use the a full path to backend classes directly.
|
|
Python / Tests (3.9, postgresql14, opensearch2):
/opt/hostedtoolcache/Python/3.9.23/x64/lib/python3.9/site-packages/invenio_rest/ext.py#L29
CSRF validation will be enabled by default in the version 1.3.x
|
|
Python / Tests (3.9, postgresql14, opensearch2):
/opt/hostedtoolcache/Python/3.9.23/x64/lib/python3.9/site-packages/flask_caching/__init__.py#L145
Using the initialization functions in flask_caching.backend is deprecated. Use the a full path to backend classes directly.
|
|
Python / Tests (3.9, postgresql14, opensearch2):
/opt/hostedtoolcache/Python/3.9.23/x64/lib/python3.9/site-packages/flask_caching/__init__.py#L145
Using the initialization functions in flask_caching.backend is deprecated. Use the a full path to backend classes directly.
|
|
Python / Tests (3.12, postgresql14, opensearch2):
/opt/hostedtoolcache/Python/3.12.11/x64/lib/python3.12/site-packages/flask_caching/__init__.py#L145
Using the initialization functions in flask_caching.backend is deprecated. Use the a full path to backend classes directly.
|
|
Python / Tests (3.12, postgresql14, opensearch2):
/opt/hostedtoolcache/Python/3.12.11/x64/lib/python3.12/site-packages/invenio_rest/ext.py#L29
CSRF validation will be enabled by default in the version 1.3.x
|
|
Python / Tests (3.12, postgresql14, opensearch2):
/opt/hostedtoolcache/Python/3.12.11/x64/lib/python3.12/site-packages/flask_caching/__init__.py#L145
Using the initialization functions in flask_caching.backend is deprecated. Use the a full path to backend classes directly.
|
|
Python / Tests (3.12, postgresql14, opensearch2):
/opt/hostedtoolcache/Python/3.12.11/x64/lib/python3.12/site-packages/flask_caching/__init__.py#L145
Using the initialization functions in flask_caching.backend is deprecated. Use the a full path to backend classes directly.
|
|
Python / Tests (3.12, postgresql14, opensearch2):
/opt/hostedtoolcache/Python/3.12.11/x64/lib/python3.12/site-packages/invenio_rest/ext.py#L29
CSRF validation will be enabled by default in the version 1.3.x
|
|
Python / Tests (3.12, postgresql14, opensearch2):
/opt/hostedtoolcache/Python/3.12.11/x64/lib/python3.12/site-packages/flask_caching/__init__.py#L145
Using the initialization functions in flask_caching.backend is deprecated. Use the a full path to backend classes directly.
|
|
Python / Tests (3.12, postgresql14, opensearch2):
/opt/hostedtoolcache/Python/3.12.11/x64/lib/python3.12/site-packages/flask_caching/__init__.py#L145
Using the initialization functions in flask_caching.backend is deprecated. Use the a full path to backend classes directly.
|
|
Python / Tests (3.12, postgresql14, opensearch2):
/opt/hostedtoolcache/Python/3.12.11/x64/lib/python3.12/site-packages/invenio_rest/ext.py#L29
CSRF validation will be enabled by default in the version 1.3.x
|
|
Python / Tests (3.12, postgresql14, opensearch2):
/opt/hostedtoolcache/Python/3.12.11/x64/lib/python3.12/site-packages/flask_caching/__init__.py#L145
Using the initialization functions in flask_caching.backend is deprecated. Use the a full path to backend classes directly.
|
|
Python / Tests (3.12, postgresql14, opensearch2):
/opt/hostedtoolcache/Python/3.12.11/x64/lib/python3.12/site-packages/passlib/utils/__init__.py#L854
'crypt' is deprecated and slated for removal in Python 3.13
|