Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
kayman-mk committed Jan 16, 2025
1 parent d46ccb3 commit af14486
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
from aws_lambda_powertools.utilities.parser import event_parser
from aws_lambda_powertools.utilities.typing import LambdaContext

from rds_proxy_password_rotatation.adapter.aws_lambda_function_model import AwsSecretManagerRotationEvent
from rds_proxy_password_rotatation.adapter.container import Container
from rds_proxy_password_rotatation.password_rotation_application import PasswordRotationApplication
from rds_proxy_password_rotation.adapter.aws_lambda_function_model import AwsSecretManagerRotationEvent
from rds_proxy_password_rotation.adapter.container import Container
from rds_proxy_password_rotation.password_rotation_application import PasswordRotationApplication


container = None
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from pydantic import BaseModel, Field

from rds_proxy_password_rotatation.model import RotationStep
from rds_proxy_password_rotation.model import RotationStep


class AwsRotationStep(Enum):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
from mypy_boto3_secretsmanager.type_defs import DescribeSecretResponseTypeDef
from pydantic import ValidationError

from rds_proxy_password_rotatation.model import DatabaseCredentials, PasswordStage
from rds_proxy_password_rotatation.services import PasswordService
from rds_proxy_password_rotation.model import DatabaseCredentials, PasswordStage
from rds_proxy_password_rotation.services import PasswordService


class AwsSecretsManagerService(PasswordService):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

from aws_lambda_powertools import Logger

from rds_proxy_password_rotatation.model import RotationStep
from rds_proxy_password_rotatation.services import PasswordService
from rds_proxy_password_rotation.model import RotationStep
from rds_proxy_password_rotation.services import PasswordService


class PasswordRotationResult(Enum):
Expand Down
2 changes: 1 addition & 1 deletion src/rds_proxy_password_rotation/services.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from abc import ABC, abstractmethod

from rds_proxy_password_rotatation.model import DatabaseCredentials, PasswordStage
from rds_proxy_password_rotation.model import DatabaseCredentials, PasswordStage


class PasswordService(ABC):
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from unittest import TestCase

from rds_proxy_password_rotatation.adapter.aws_lambda_function_model import AwsRotationStep
from rds_proxy_password_rotatation.model import RotationStep
from rds_proxy_password_rotation.adapter.aws_lambda_function_model import AwsRotationStep
from rds_proxy_password_rotation.model import RotationStep

class TestAwsRotationStep(TestCase):
def test_should_return_rotation_step_when_to_rotation_step_given_create_secret(self):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

from aws_lambda_powertools import Logger

from rds_proxy_password_rotatation.adapter.aws_secrets_manager import AwsSecretsManagerService
from rds_proxy_password_rotatation.model import PasswordStage, DatabaseCredentials
from rds_proxy_password_rotation.adapter.aws_secrets_manager import AwsSecretsManagerService
from rds_proxy_password_rotation.model import PasswordStage, DatabaseCredentials


class TestAwsSecretsManagerService(TestCase):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@

from aws_lambda_powertools import Logger

from rds_proxy_password_rotatation.model import RotationStep
from rds_proxy_password_rotatation.password_rotation_application import PasswordRotationApplication, PasswordRotationResult
from rds_proxy_password_rotatation.services import PasswordService
from rds_proxy_password_rotation.model import RotationStep
from rds_proxy_password_rotation.password_rotation_application import PasswordRotationApplication, PasswordRotationResult
from rds_proxy_password_rotation.services import PasswordService


class TestPasswordRotationApplication(TestCase):
Expand Down

0 comments on commit af14486

Please sign in to comment.