I don't know if this video will be useful to you, but I gave a few presentations on Marvin over the years. Here is one of them:
https://www.youtube.com/watch?v=N_eKBA_TeOs&list=PLqOXKM0Bt13DFnQnwUx8ZtJzoyDV0Uuye&index=41&t=39s On 4/10/19, 9:42 AM, "Paul Angus" <[email protected]> wrote: NetApp Security WARNING: This is an external email. Do not click links or open attachments unless you recognize the sender and know the content is safe. Hi Peter, The documentation is here: https://cwiki.apache.org/confluence/display/CLOUDSTACK/Marvin+-+Testing+with+Python but it's not the easiest thing in the world to follow.... ☹ In summary: - we have created a CloudStack specific plugin for the nosetests framework which is called Marvin. - once you setup a link to a CloudStack repo as you would to install the CloudStack management server, you should be able to yum/apt install cloudstack-marvin cloudstack-integration-tests to get everything that you need (note Marvin is written for python 2.7) - you need to edit the setup.cfg to match your environment - you MAY also need to edit the test_data.py file as well - to run a single test run: nosetests --with-marvin --marvin-config=./setup.cfg --hypervisor=vmware -s -a tags=advanced $file You can pass a directory rather than a file. There is a lot more to it, but this is a start. Paul. [email protected] www.shapeblue.com Amadeus House, Floral Street, London WC2E 9DPUK @shapeblue -----Original Message----- From: [email protected] <[email protected]> Sent: 10 April 2019 16:23 To: [email protected] Subject: Where to start to reuse API integration tests as functional test from CS codebase? Hi all, where to to start if I want to run just exactly that part of the CS test code base to test the API functionality of a separately deployed instance? I've found so far this folder: https://github.com/apache/cloudstack/tree/master/test/integration/component There are though different scripts in Python, and the folder is a Java Maven module? So how to know which dependencies to I need and where to start? Is there also a set of regression tests somewhere reflecting bugs fixed in course of the time? thanks in advance kind regards Peter
