Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Jenkins holds artifacts of the marvin builds and you can download the latest here
  2. The artifact (.tar.gz) is available after the build succeeds. Download it.
  3. On the client machine where you will be writing/running tests from setup the following:
    1. Install python 2.7 (http://www.python.org/download/releases/)
    2. Install setuptools. Follow the instructions for your client machine from here
    3. Install pip. http://www.pip-installer.org/en/latest/installing.html
  4. The Marvin artifact you downloaded can now be installed using pip. Any required python packages will be installed automatically
    1. pip install Marvin-.*.tar.gz
  5. To test if the installation was successful get into a python shell
    Code Block
    root@cloud:~/cloudstack-oss/tools/marvin/dist# python
    Python 2.7.1+ (r271:86832, Apr 11 2011, 18:05:24)
    [GCC 4.5.2] on linux2
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import marvin
    >>> 
    
    import should happen without reporting errors.

First Steps

In our first steps we will build a simple API call and fire it against a CloudStack management server that is already deployed, configured and ready to accept API calls. You can pick any management server in your lab that has a few VMs running on it.Create a sample json config file telling us where your management server and database server are. Here's a sample:

...