jeanparpaillon / pOCCI

OCCI Compliance Tests

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build status Test coverage percentage

OCCI Compliance tests

pOCCI is OCCI standard compliance testing tool. Tests are described here.

Features

Basic features:

  • OCCI testing
  • OCCI messages parsing
  • partial OCCI client library for python

Authentization:

  • basic auth
  • X509
  • keystone

Cloud providers:

  • dummy (rOCCI server)
  • OpenNebula
  • Amazon EC2
  • OpenStack

Installation

From sources:

git clone https://github.com/CESNET/pOCCI/ && cd pOCCI
python setup.py install

From pypi:

pip install pOCCI

Usage

OCCI compliance tests:

Set parameters in ~/.pOCCI.cfg.

Example config file:

[main]
url = 'https://example.com:11443'
authtype = 'basic'
ignoressl = True
user = 'oneadmin'
passwd = 'good-password'
mimetype = 'text/plain'
curlverbose = False
#outputformat = 'plain'
outputformat = 'json'
connectiontimeout = 60
timeout = 120
occi.tests.entity = {'occi.core.title': 'My Machine'}

Launch tests:

pOCCI

See manual page for all options.

OCCI message parser

Example:

echo 'Category: entity;scheme="http://schemas.ogf.org/occi/core#";class="kind"' | pOCCI-parse

curl -u $user:$password -H 'Accept: text/plain' https://occi.example.com:11443/-/ | pOCCI-parse
curl -u $user:$password -H 'Accept: text/plain' https://occi.example.com:11443/compute/ | pOCCI-parse -t entities -o text/occi

About

OCCI Compliance Tests

License:MIT License


Languages

Language:Python 92.2%Language:Makefile 4.6%Language:Groff 3.2%