Skip to main content

pytest-fabric

https://travis-ci.org/efagerberg/pytest-fabric.svg?branch=master

Requirements

  • Python 2.7

  • Fabric 1.14.0

TODOs (will make into issues eventually)

  • Only runs one host right now if using fabric_host fixture (Support multiple container)

Usage

fabric_host will set up the fabric environment to be SSHable The object is a docker.models.containers.Container object.

From here, users should be able to exec into the container to check things like the image files and such.

Note: This should work for docker-machine or docker

from fabric.api import execute

from .fabric_tasks import create_readme


def test_fabric_task_executes(fabric_host):
    execute(create_readme)
    ls_results = fabric_host.exec_run('ls /tmp/')
    assert ls_results[1].strip() == 'README.rst'

Note: pytest-capture does not like when we try to actually write to stdout like in fabric so make sure to add -s to your pytest args

Metadata

Release files for pytest-fabric 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pytest-fabric 1.0.0
File Size Uploaded Provenance Actions
pytest-fabric-1.0.0.tar.gz 3.7 kB Without provenance Details for pytest-fabric-1.0.0.tar.gz

Release files / pytest-fabric-1.0.0.tar.gz

Download URL pytest-fabric-1.0.0.tar.gz
Size 3.7 kB
Tags Source
SHA-256 checksum
How to use checksums
13b56c190a7a79f24431a976a7cc8f778cdd0f5d322c12da85bfc819b46c26bc
BLAKE2b-256 checksum
How to use checksums
9af1885e69753cc278cdc3439d88928699388ba284518829667004037e393645
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/2.7

Security for pytest-fabric 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.0 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page