• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

OpenLabsHQ / OpenLabs / 16663819230

01 Aug 2025 01:23AM UTC coverage: 93.894%. First build
16663819230

Pull #149

github

web-flow
Merge 332c8956e into b93cf7d42
Pull Request #149: Secrets verification

146 of 150 new or added lines in 7 files covered. (97.33%)

2891 of 3079 relevant lines covered (93.89%)

0.94 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

76.47
/api/src/app/cloud/base_creds.py
1
from abc import ABC, abstractmethod
1✔
2
from typing import Any, Tuple
1✔
3

4
from src.app.schemas.message_schema import MessageSchema
1✔
5
from src.app.schemas.secret_schema import SecretSchema
1✔
6

7

8
class AbstractBaseCreds(ABC):
1✔
9
    """Abstract class to enforce common credential verification functionality across range cloud providers."""
10

11
    @abstractmethod
1✔
12
    def __init__(self, credentials: dict[str, Any]) -> None:
1✔
13
        """Expected constructor for all credential subclasses."""  # noqa: D401
NEW
14
        pass
×
15

16
    @abstractmethod
1✔
17
    def get_user_creds(self) -> dict[str, str]:
1✔
18
        """Convert user secrets to dictionary for encryption."""
NEW
19
        pass
×
20

21
    @abstractmethod
1✔
22
    def update_secret_schema(
1✔
23
        self, secrets: SecretSchema, encrypted_data: dict[str, str]
24
    ) -> SecretSchema:
25
        """Update user secrets schema with newly encrypted secrets."""
NEW
26
        pass
×
27

28
    @abstractmethod
1✔
29
    def verify_creds(self) -> Tuple[bool, MessageSchema]:
1✔
30
        """Verify that user provided credentials properly authenticate to a provider account."""
NEW
31
        pass
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc