Core: Removed deprecated tests from server/tests directory

* All tests should be now replaced using minitest
CIMI: Show only supported collections in CEP

* cloudEntryPoint will advertise *only* the supported collection.
  The decision whether the collection is supported or not is made based
  on presence of the required driver method in :with_capability.

* This also fix the problem when starting deltacloud using multiple
  frontends (DCLOUD-302)
CIMI: Replaced 'check_capability' with Sinatra::Base

* The 'check_capability' is obsoleted in Rabbit and the Sinatra
  method 'set' is used instead.

* Added missing driver methods to :with_capability options
CIMI: Added unit tests for DTACLOUD-302
Trivial whitespace cleanup in Python deltacloud client
.gitignore *.pyc files

Signed-off-by: Tomas Sedovic <tomas@sedovic.cz>
Python client: update indentation

Python code should 4 spaces for indentation:

http://www.python.org/dev/peps/pep-0008/#indentation

Signed-off-by: Tomas Sedovic <tomas@sedovic.cz>
Python client: fix instances listing

Signed-off-by: Tomas Sedovic <tomas@sedovic.cz>
Python client: simplify making requests

This removes the code duplication in the GET, POST, DELETE and PUT
methods and adds a generic `do_request` method that where the caller can
specify the HTTP method.

We will need that in order to respect the HTTP methods returned by the
Deltacloud API calls instead of hardcoding them.

Signed-off-by: Tomas Sedovic <tomas@sedovic.cz>
Python client: use correct methods for actions

The code for calling instance actions (stop, destroy, etc.) didn't
honour the methods advertised by the API (e.g. it used POST instead of
DELETE for the `destroy` action).

This fixes the issue and deduplicates the code.

Signed-off-by: Tomas Sedovic <tomas@sedovic.cz>
Python client: update instance after action

Previously, the instance's XML representation wasn't being updated upon
completing an action:

    >>> i = client.instances()
    >>> i.actions()
    ['start', 'destroy', 'run', 'create_image']
    >>> i.start()
    True
    >>> i.actions()
    ['start', 'destroy', 'run', 'create_image']

The last call shows "start" as an available action even though the
instance is already running.

This fix updates the instance's internal representation when an action
is finished successfully.

Signed-off-by: Tomas Sedovic <tomas@sedovic.cz>
Python client: Use JSON instead of XML

The data structures returned by Deltacloud are more easilly manipulated
in the Python dictionary form -- to which JSON maps better than XML.

As a side benefit, this cuts the number of required external
dependencies from 2 to 1.

Signed-off-by: Tomas Sedovic <tomas@sedovic.cz>
Remove 'rake' require from gemspec

* This require cause errors in bundler when Ruby distribution
  does not bundle 'rake'.

Signed-off-by: Michal fojtik <mfojtik@redhat.com>
Fixed Deltacloud API release version

git-svn-id: https://svn.apache.org/repos/asf/deltacloud/trunk@1353880 13f79535-47bb-0310-9956-ffa450edef68
Removed 'reboot' from the list of supported operations in RHEV-M. Added FGCP drivers to matrix

git-svn-id: https://svn.apache.org/repos/asf/deltacloud/trunk@1353954 13f79535-47bb-0310-9956-ffa450edef68
Removed 'reboot' from the list of supported operations in RHEV-M. Added FGCP drivers to matrix (part 2)

git-svn-id: https://svn.apache.org/repos/asf/deltacloud/trunk@1353957 13f79535-47bb-0310-9956-ffa450edef68
Added Datastore reference to VSphere driver details

git-svn-id: https://svn.apache.org/repos/asf/deltacloud/trunk@1353959 13f79535-47bb-0310-9956-ffa450edef68
Added redirects to missing top level pages

git-svn-id: https://svn.apache.org/repos/asf/deltacloud/trunk@1353977 13f79535-47bb-0310-9956-ffa450edef68
Removed list of supported regions in EC2 and say that we support all regions

git-svn-id: https://svn.apache.org/repos/asf/deltacloud/trunk@1353984 13f79535-47bb-0310-9956-ffa450edef68
Added Piwik tracking code

git-svn-id: https://svn.apache.org/repos/asf/deltacloud/trunk@1354495 13f79535-47bb-0310-9956-ffa450edef68