Sandboxed Execution Environment
Project description
Introduction
Sandboxed Execution Environment (SEE) is a framework for building test automation in secured Environments.
The Sandboxes, provided via libvirt, are customizable allowing high degree of flexibility. Different type of Hypervisors (Qemu, VirtualBox, LXC) can be employed to run the Test Environments.
Plugins can be added to a Test Environment which provides an Event mechanism synchronisation for their interaction. Users can enable and configure the plugins through a JSON configuration file.
Audience
SEE is for automating tests against unknown, dangerous or unstable software tracking its activity during the execution.
SEE is well suited for building modular test platforms or managing executable code with a good degree of isolation.
SEE allows to write sandboxed tests both for quick prototyping and for running on production environment.
Installation
SEE is available as Python package on the Python Package Index (PyPI).
It’s user’s responsibility to install and setup the hypervisors intended to be controlled with SEE and the possible dependencies and subsystems used by the selected image providers.
Please refer to the documentation to see how to setup and configure each hypervisor.
Supported hypervisors
SEE is build on top of libvirt’s APIs, therefore all hypervisors supported by libvirt can be controlled through SEE.
SEE comes with a basic support for QEMU, VirtualBox and LXC, to add more hypervisor or customize the basic ones see the code contained in see/context.
Image providers
SEE uses a system of pluggable providers to retrieve disk images from arbitrary sources and make them available to SEE.
SEE bundles providers for LibVirt storage pools and OpenStack Glance as well as a dummy provider implementation, to add more providers see the code contained in see/image_providers.
Principles
SEE is an event-driven, plugin-based sandbox provider for synchronous and asynchronous test flow control.
+----------+ | | +-------| SEE Hook | | | | | +----------+ +---------+-------+ +---------+ | +----------+ | | | | | | | User -------> | SEE Environment |-------| Sandbox |-------+-------| SEE Hook | | | | | | | | +-----------------+ +---------+ | +----------+ | +----------+ | | | +-------| SEE Hook | | | +----------+
A SEE Environment encapsulates all the required resources acting as a handler for the User. The Sandbox is controlled by the Hooks which act as plugins, Hooks communicate and co-ordinate themselves through Events.
Each Hook has direct access to the Sandbox which exposes a simple API for it’s control and libvirt’s APIs for more fine grained control.
Links
Project page.
https://pypi.python.org/pypi/python-see
Project tutorial and documentation.
https://pythonhosted.org/python-see
Libvirt project page.
Presentation on PyCon Finland 2015.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for python_see-1.2.4-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 961876ca0e75c405250887971fd229ab57de94223a1a8c0f11cb00db30be1209 |
|
MD5 | 56985a92e35fc30007d7191e26995990 |
|
BLAKE2b-256 | 69f93f3d16770bd009537fd0fb1e0b24ddeb3f57f8a8e18fe286c39f0bec96f6 |