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

localstack / localstack / 18505123992

14 Oct 2025 05:30PM UTC coverage: 86.888% (-0.01%) from 86.899%
18505123992

push

github

web-flow
S3: fix `aws-global` validation in CreateBucket (#13250)

10 of 10 new or added lines in 4 files covered. (100.0%)

831 existing lines in 40 files now uncovered.

68028 of 78294 relevant lines covered (86.89%)

0.87 hits per line

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

80.0
/localstack-core/localstack/utils/urls.py
1
from localstack import config
1✔
2
from localstack.config import HostAndPort
1✔
3

4

5
def path_from_url(url: str) -> str:
1✔
UNCOV
6
    return f"/{url.partition('://')[2].partition('/')[2]}" if "://" in url else url
×
7

8

9
def hostname_from_url(url: str) -> str:
1✔
UNCOV
10
    return url.split("://")[-1].split("/")[0].split(":")[0]
×
11

12

13
def localstack_host(custom_port: int | None = None) -> HostAndPort:
1✔
14
    """
15
    Determine the host and port to return to the user based on:
16
    - the user's configuration (e.g environment variable overrides)
17
    - the defaults of the system
18
    """
19
    port = custom_port or config.LOCALSTACK_HOST.port
1✔
20
    host = config.LOCALSTACK_HOST.host
1✔
21
    return HostAndPort(host=host, port=port)
1✔
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

© 2026 Coveralls, Inc