Exemple #1
0
from materialize.mzcompose.services import (
    Kafka,
    Localstack,
    Materialized,
    Redpanda,
    SchemaRegistry,
    Squid,
    Testdrive,
    Zookeeper,
)

SERVICES = [
    Zookeeper(),
    Kafka(),
    SchemaRegistry(),
    Redpanda(),
    Squid(),
    Localstack(),
    Materialized(),
    Testdrive(volumes_extra=["../testdrive:/workdir/testdrive"]),
]


@dataclass
class TestCase:
    name: str
    env: List[str]
    files: List[str]


test_cases = [
Exemple #2
0
from materialize.checks.users import *  # noqa: F401 F403
from materialize.checks.window_functions import *  # noqa: F401 F403
from materialize.mzcompose import Composition, WorkflowArgumentParser
from materialize.mzcompose.services import (
    Computed,
    Debezium,
    Materialized,
    Postgres,
    Redpanda,
)
from materialize.mzcompose.services import Testdrive as TestdriveService

SERVICES = [
    Postgres(name="postgres-backend"),
    Postgres(name="postgres-source"),
    Redpanda(auto_create_topics=True),
    Debezium(),
    Computed(
        name="computed_1"
    ),  # Started by some Scenarios, defined here only for the teardown
    Materialized(
        options=" ".join(
            [
                "--persist-consensus-url=postgresql://postgres:postgres@postgres-backend:5432?options=--search_path=consensus",
                "--storage-stash-url=postgresql://postgres:postgres@postgres-backend:5432?options=--search_path=storage",
                "--adapter-stash-url=postgresql://postgres:postgres@postgres-backend:5432?options=--search_path=adapter",
            ]
        )
    ),
    TestdriveService(default_timeout="300s", no_reset=True, seed=1),
]