Skip to content
This repository was archived by the owner on Nov 21, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions acapy_cache_redis/v0_1/redis_base_cache.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import aioredis
from redis import asyncio as aioredis
import json
import logging

from aries_cloudagent.cache.base import BaseCache, CacheKeyLock
from aries_cloudagent.core.profile import Profile
from aries_cloudagent.core.error import BaseError
from redis.asyncio import RedisCluster
from redis.exceptions import RedisError, RedisClusterException
from redis.exceptions import RedisError, RedisClusterException, ResponseError
from typing import Any, Sequence, Text, Union
from uuid import uuid4

Expand Down Expand Up @@ -89,7 +89,7 @@ async def check_for_redis_cluster(self):
# it will raise a MOVED error.
fake_test_key = f"test_key_{str(uuid4())}"
await self.redis.set(fake_test_key, b"", ex=1)
except aioredis.exceptions.ResponseError as err:
except ResponseError as err:
if "MOVED" in str(err):
self.redis = self.root_profile.inject_or(RedisCluster)
if not self.redis:
Expand Down
2 changes: 1 addition & 1 deletion int/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ RUN curl -sSL https://install.python-poetry.org | python -
RUN poetry config virtualenvs.create true; poetry config virtualenvs.in-project true

COPY pyproject.toml poetry.lock ./
RUN poetry install --no-dev
RUN poetry install --only main

COPY tests/ tests/

Expand Down
100 changes: 39 additions & 61 deletions int/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions int/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ pytest-asyncio = "^0.16.0"
echo-agent = {git = "https://github.com/Indicio-tech/echo-agent.git", rev = "6c22a88632e5c3fb8f279e6098b7aa6a03b9929e", extras = ["client"]}
acapy-client = {git = "https://github.com/Indicio-tech/acapy-client.git", rev = "0bd47af23308362db749c2671a3e7f8259855897"}
httpx = "^0.15.5"
aioredis = "^2.0.1"
redis = "^4.1.4"
redis = "^4.2.0"

[tool.poetry.dev-dependencies]
black = "^23.7.0"
Expand Down
2 changes: 1 addition & 1 deletion int/tests/host/conftest.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Common fixtures for testing."""

import aioredis
from redis import asyncio as aioredis
import asyncio
import hashlib
import logging
Expand Down
Loading