Skip to main content

Robot Framework library providing OKW environment provisioning with Docker.

Project description

robotframework-okw-env-docker

Docker Compose provider for okw-env.

Deutsche Version: README_de.md

What

Implements the OKW Environment Provider Contract using Docker Compose. Generates docker-compose.yml from YAML component definitions and manages the full container lifecycle (create, start, health check, logs, snapshot, stop, destroy).

Why — Signal vs. NOISE

Docker Compose syntax is NOISE. The tester only writes:

ENV_Start        PostgresDB
ENV_BuildAndRun
ENV_WaitForReady PostgresDB

The framework generates the Compose file, starts the container, and polls the health check. No Docker knowledge required in test code.

Install

pip install robotframework-okw-env-docker

This automatically installs robotframework-okw-env (core) and robotframework-docker (Docker Compose engine).

Component YAML

PostgresDB:
  provider: docker
  image: postgres
  version: "17"
  port: 5432
  env:
    POSTGRES_DB: testdb
    POSTGRES_PASSWORD: testpass
  healthcheck: "pg_isready -U postgres"
  timeout: 30s

Minimal Example

*** Settings ***
Library    okw_env.library.OkwEnvLibrary    components_dir=components    WITH NAME    ENV

*** Test Cases ***
Database Is Reachable
    ENV_Start        PostgresDB
    ENV_BuildAndRun
    ENV_WaitForReady    PostgresDB
    Log    PostgresDB is ready for testing.
    [Teardown]    ENV_Stop

Architecture

okw-env (keywords, YAML loader, registry)
    │
    ▼
okw-env-docker (this library)
    │
    ▼
DockerComposeLibrary (robotframework-docker)
    │
    ▼
Docker Compose CLI → Docker Engine

Documentation

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

robotframework_okw_env_docker-0.1.0.tar.gz (7.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

robotframework_okw_env_docker-0.1.0-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

Details for the file robotframework_okw_env_docker-0.1.0.tar.gz.

File metadata

File hashes

Hashes for robotframework_okw_env_docker-0.1.0.tar.gz
Algorithm Hash digest
SHA256 636b9446b1a4d7c88fcad4740895188d955f7021ad0dda228a235141d81fc627
MD5 c6f6d9e048727e3e02906340aadeb4fb
BLAKE2b-256 aaf2c1320a736d94ac8698a56c3509bb718997a75a99e54ecf1f1dd8ba28698b

See more details on using hashes here.

File details

Details for the file robotframework_okw_env_docker-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for robotframework_okw_env_docker-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 701e79d8192c59df5a31c1c80248a531181e2fde4130c7d3db2a9246bc5b8e66
MD5 77aed29da5d286c519b98c4ce011d319
BLAKE2b-256 373cab83ce7e003e3470977f24b4a6fe00622d40205e5a6fc4d01a08072736ff

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page