Skip to content

Commit 0e5677b

Browse files
🔖 5.0.0-rc8 (#1827)
* 🔖 5.0.0-rc8 * 🎨 Minor test cleanup * ⬆️ Bump SonarSource/sonarqube-scan-action from 5.3.0 to 5.3.1 Bumps [SonarSource/sonarqube-scan-action](https://github.com/sonarsource/sonarqube-scan-action) from 5.3.0 to 5.3.1. - [Release notes](https://github.com/sonarsource/sonarqube-scan-action/releases) - [Commits](SonarSource/sonarqube-scan-action@8c71dc0...1a6d90e) --- updated-dependencies: - dependency-name: SonarSource/sonarqube-scan-action dependency-version: 5.3.1 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * ⬆️ Bump golang Bumps the docker-golang group with 1 update in the /scripts/k6 directory: golang. Updates `golang` from `77dd832` to `f18a072` --- updated-dependencies: - dependency-name: golang dependency-version: 1.25-alpine dependency-type: direct:production dependency-group: docker-golang ... Signed-off-by: dependabot[bot] <support@github.com> * 🎨 Fix some code scanning alerts * ⬆️ Upgrade dependencies * ⏪ * ⬆️ Update to latest plugins release * ⬆️ Update agent dockerfile * ⏪ --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 parent a4a8539 commit 0e5677b

File tree

15 files changed

+513
-616
lines changed

15 files changed

+513
-616
lines changed

.github/workflows/sonarcloud.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ jobs:
105105
106106
# Analyze with SonarCloud
107107
- name: Analyze with SonarCloud
108-
uses: SonarSource/sonarqube-scan-action@8c71dc039c2dd71d3821e89a2b58ecc7fee6ced9 # v5.3.0
108+
uses: SonarSource/sonarqube-scan-action@1a6d90ebcb0e6a6b1d87e37ba693fe453195ae25 # v5.3.1
109109
env:
110110
GITHUB_TOKEN: ${{ github.token }} # Needed to get PR information
111111
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} # Generate a token on Sonarcloud.io, add it to the secrets of this repo with the name SONAR_TOKEN (Settings > Secrets > Actions > add new repository secret)

app/tests/routes/wallet/dids/test_create_did.py

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import uuid
21
from unittest import mock
32
from unittest.mock import AsyncMock, patch
43

@@ -10,6 +9,7 @@
109
BadRequestException,
1110
NotFoundException,
1211
)
12+
from uuid_utils import uuid4
1313

1414
from app.models.wallet import DIDCreate
1515
from app.routes.wallet.dids import create_did
@@ -94,26 +94,19 @@ async def test_create_did_success(request_body, create_body):
9494
)
9595

9696
if request_body is None:
97-
# For cheqd DID creation, there are two calls:
98-
# 1. Create the DID
99-
# 2. Set the DID endpoint
100-
mock_did = f"did:cheqd:testnet:{uuid.uuid4()}"
97+
mock_did = f"did:cheqd:testnet:{uuid4()}"
10198
mock_handle_acapy_call.return_value = AsyncMock(
10299
did=mock_did,
103100
verkey="a" * 131, # Expected verkey length
104101
)
105102

106103
await create_did(did_create=request_body, auth="mocked_auth")
107104

108-
# Verify both calls were made
109-
expected_calls = [
110-
mock.call(
111-
logger=mock.ANY,
112-
acapy_call=mock_aries_controller.did.did_cheqd_create_post,
113-
body=create_body,
114-
)
115-
]
116-
mock_handle_acapy_call.assert_has_awaits(expected_calls)
105+
mock_handle_acapy_call.assert_awaited_once_with(
106+
logger=mock.ANY,
107+
acapy_call=mock_aries_controller.did.did_cheqd_create_post,
108+
body=create_body,
109+
)
117110
else:
118111
acapy_call = mock_aries_controller.wallet.create_did
119112
mock_handle_acapy_call.return_value = AsyncMock(

app/tests/services/test_acapy_wallet.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import uuid
2-
31
import pytest
42
from aries_cloudcontroller import (
53
DID,
@@ -8,12 +6,13 @@
86
CreateCheqdDIDResponse,
97
DIDResult,
108
)
9+
from uuid_utils import uuid4
1110

1211
from app.exceptions import CloudApiException
1312
from app.models.wallet import DIDCreate
1413
from app.services import acapy_wallet
1514

16-
did_cheqd = f"did:cheqd:testnet:{uuid.uuid4()}"
15+
did_cheqd = f"did:cheqd:testnet:{uuid4()}"
1716

1817

1918
@pytest.mark.anyio

dockerfiles/agents/poetry.lock

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

dockerfiles/poetry-requirements.txt

Lines changed: 143 additions & 145 deletions
Large diffs are not rendered by default.

docs/openapi/tenant-admin-openapi.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"info": {
44
"title": "CloudAPI Multitenant Admin",
55
"description": "\nWelcome to CloudAPI Multitenant Admin!\n\nFor detailed guidance on using the API, please visit our official documentation:\nhttps://www.didx.co.za/acapy-cloud/index.html\n",
6-
"version": "5.0.0-rc7"
6+
"version": "5.0.0-rc8"
77
},
88
"servers": [
99
{

docs/openapi/tenant-admin-openapi.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ info:
1111
https://www.didx.co.za/acapy-cloud/index.html
1212
1313
'
14-
version: 5.0.0-rc7
14+
version: 5.0.0-rc8
1515
servers:
1616
- url: /tenant-admin
1717
paths:

docs/openapi/tenant-openapi.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"info": {
44
"title": "CloudAPI Tenant",
55
"description": "\nWelcome to CloudAPI Tenant!\n\nFor detailed guidance on using the API, please visit our official documentation:\nhttps://www.didx.co.za/acapy-cloud/index.html\n",
6-
"version": "5.0.0-rc7"
6+
"version": "5.0.0-rc8"
77
},
88
"servers": [
99
{

docs/openapi/tenant-openapi.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ info:
1111
https://www.didx.co.za/acapy-cloud/index.html
1212
1313
'
14-
version: 5.0.0-rc7
14+
version: 5.0.0-rc8
1515
servers:
1616
- url: /tenant
1717
paths:

0 commit comments

Comments
 (0)