Skip to content

Commit

Permalink
Release v1.1.1 Upgrades
Browse files Browse the repository at this point in the history
Signed-off-by: jamshale <jamiehalebc@gmail.com>
  • Loading branch information
jamshale committed Dec 5, 2024
1 parent 545af3e commit a167ae6
Show file tree
Hide file tree
Showing 39 changed files with 3,019 additions and 2,666 deletions.
21 changes: 21 additions & 0 deletions RELEASES.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,25 @@
# Plugin Release Status
## ACA-Py Release 1.1.1

| Plugin Name | Supported ACA-Py Release |
| --- | --- |
|basicmessage_storage | 1.1.1|
|connection_update | 1.1.1|
|firebase_push_notifications | 1.1.1|
|kafka_events | 0.12.2|
|multitenant_provider | 1.1.1|
|oid4vc | 1.1.1|
|redis_events | 1.1.1|
|rpc | 1.1.1|

### Plugins Upgraded For ACA-Py Release 1.1.1
- basicmessage_storage
- connection_update
- firebase_push_notifications
- multitenant_provider
- oid4vc
- redis_events
- rpc
## ACA-Py Release 1.1.0

| Plugin Name | Supported ACA-Py Release |
Expand Down
8 changes: 4 additions & 4 deletions basicmessage_storage/basicmessage_storage/v1_0/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
from acapy_agent.core.profile import ProfileSession
from acapy_agent.messaging.models.base_record import BaseRecord, BaseRecordSchema
from acapy_agent.messaging.valid import (
INDY_ISO8601_DATETIME_EXAMPLE,
INDY_ISO8601_DATETIME_VALIDATE,
ISO8601_DATETIME_EXAMPLE,
ISO8601_DATETIME_VALIDATE,
)
from acapy_agent.storage.base import BaseStorage
from marshmallow import fields
Expand Down Expand Up @@ -103,8 +103,8 @@ class Meta:
message_id = fields.Str(required=False)
sent_time = fields.Str(
required=False,
validate=INDY_ISO8601_DATETIME_VALIDATE,
example=INDY_ISO8601_DATETIME_EXAMPLE,
validate=ISO8601_DATETIME_VALIDATE,
example=ISO8601_DATETIME_EXAMPLE,
)
locale = fields.Str(required=False)
content = fields.Str(required=False)
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from unittest.mock import MagicMock, Mock, patch

from acapy_agent.core.event_bus import Event
from acapy_agent.core.in_memory import InMemoryProfile
from acapy_agent.utils.testing import create_test_profile
from pydantic import BaseModel

import basicmessage_storage.v1_0 as test_module
Expand All @@ -19,7 +19,7 @@ class TestInit(IsolatedAsyncioTestCase):
async def asyncSetUp(self) -> None:
self.session_inject = {}
self.context = MagicMock()
self.profile = InMemoryProfile.test_profile()
self.profile = await create_test_profile()

async def test_setup_injects_and_finishes_by_subscribing_to_event_bus(self):
self.context.inject = Mock()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from unittest import IsolatedAsyncioTestCase
from unittest.mock import patch

from acapy_agent.core.in_memory import InMemoryProfile
from acapy_agent.utils.testing import create_test_profile

from ..models import BasicMessageRecord

Expand All @@ -10,7 +10,7 @@

class TestBasicMessageRecord(IsolatedAsyncioTestCase):
async def asyncSetUp(self) -> None:
self.session = InMemoryProfile.test_session()
self.profile = await create_test_profile()

async def test_init_creates_record_with_default_parameters(self):
rec = BasicMessageRecord(record_id=_id)
Expand Down Expand Up @@ -40,7 +40,7 @@ async def test_retrieve_by_message_id_calls_retrieve_by_tag_filter_with_correct_
_message_id = "messageid"
mock_retrieve.return_value = BasicMessageRecord(record_id=_id)

rec = await BasicMessageRecord.retrieve_by_message_id(self.session, _message_id)
rec = await BasicMessageRecord.retrieve_by_message_id(self.profile.session, _message_id)
args = mock_retrieve.call_args.args
expected_args = {"message_id": _message_id}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from unittest.mock import AsyncMock, MagicMock, Mock, patch

from acapy_agent.admin.request_context import AdminRequestContext
from acapy_agent.core.in_memory.profile import InMemoryProfile
from acapy_agent.utils.testing import create_test_profile
from acapy_agent.protocols.basicmessage.v1_0 import routes as base_module

from basicmessage_storage.v1_0.models import BasicMessageRecord
Expand All @@ -16,7 +16,7 @@
class TestRoutes(IsolatedAsyncioTestCase):
async def asyncSetUp(self) -> None:
self.session_inject = {}
self.profile = InMemoryProfile.test_profile(
self.profile = await create_test_profile(
settings={
"admin.admin_api_key": "admin_api_key",
"admin.admin_insecure_mode": False,
Expand Down
637 changes: 337 additions & 300 deletions basicmessage_storage/poetry.lock

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions basicmessage_storage/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ authors = ["Jason Sherman <tools@usingtechnolo.gy>"]
[tool.poetry.dependencies]
python = "^3.12"

# Define ACA-Py as an optional/extra dependancy so it can be
# Define ACA-Py as an optional/extra dependency so it can be
# explicitly installed with the plugin if desired.
acapy-agent = { version = "~1.1.0", optional = true }
acapy-agent = { version = "~1.1.1", optional = true }

mergedeep = "^1.3.4"

[tool.poetry.extras]
Expand Down
4 changes: 2 additions & 2 deletions connection_update/connection_update/v1_0/tests/test_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from unittest.mock import MagicMock, Mock

from acapy_agent.core.event_bus import EventBus
from acapy_agent.core.in_memory import InMemoryProfile
from acapy_agent.utils.testing import create_test_profile
from acapy_agent.core.plugin_registry import PluginRegistry
from acapy_agent.core.protocol_registry import ProtocolRegistry

Expand All @@ -13,7 +13,7 @@ class TestInit(IsolatedAsyncioTestCase):
async def asyncSetUp(self) -> None:
self.session_inject = {}
self.context = MagicMock()
self.profile = InMemoryProfile.test_profile()
self.profile = await create_test_profile()

async def test_setup_injects_protocol_registry(self):
self.context.inject = Mock()
Expand Down
4 changes: 2 additions & 2 deletions connection_update/connection_update/v1_0/tests/test_routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@

from acapy_agent.admin.request_context import AdminRequestContext
from acapy_agent.connections.models.conn_record import ConnRecord
from acapy_agent.core.in_memory.profile import InMemoryProfile
from acapy_agent.utils.testing import create_test_profile

from .. import routes as test_module


class TestRoutes(IsolatedAsyncioTestCase):
async def asyncSetUp(self) -> None:
self.session_inject = {}
self.profile = InMemoryProfile.test_profile(
self.profile = await create_test_profile(
settings={
"admin.admin_api_key": "admin_api_key",
"admin.admin_insecure_mode": False,
Expand Down
Loading

0 comments on commit a167ae6

Please sign in to comment.