Hi, all, the following Dockerfile:
https://github.com/pmury/cloudstack/blob/marvin-101/test/integration/Dockerfile.python27 and setup.cfg both adopted, either 1:1 copied from the installation instructions, produces the following error: https://cwiki.apache.org/confluence/display/CLOUDSTACK/Marvin+-+Testing+with+Python#Marvin-TestingwithPython-Installation.1 Usage: nosetests [options] nosetests: error: Error reading config file 'setup.cfg': File contains no section headers. file: 'setup.cfg', line: 1 '{\n' The command '/bin/sh -c nosetests --with-marvin --marvin-config=./setup.cfg --hypervisor=vmware -s -a tags=advanced /opt/cs/test/integration/component/' returned a non-zero code: 2 How can JSON miss section headers? Maybe this should be .ini format? kind regards Peter ________________________________________ Von: Muryshkin, Peter Gesendet: Donnerstag, 11. April 2019 14:45 An: dev@cloudstack.apache.org Betreff: AW: Where to start to reuse API integration tests as functional test from CS codebase? Hi, Paul, thanks and sorry for mixing up threads! This simple Docker environment to run Marvin seems to work: https://github.com/pmury/cloudstack/blob/marvin-101/test/integration/Dockerfile.python27 kind regards Peter ________________________________________ Von: Paul Angus [paul.an...@shapeblue.com] Gesendet: Mittwoch, 10. April 2019 17:41 An: dev@cloudstack.apache.org Betreff: RE: Where to start to reuse API integration tests as functional test from CS codebase? 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. paul.an...@shapeblue.com www.shapeblue.com Amadeus House, Floral Street, London WC2E 9DPUK @shapeblue -----Original Message----- From: peter.murysh...@zv.fraunhofer.de <peter.murysh...@zv.fraunhofer.de> Sent: 10 April 2019 16:23 To: dev@cloudstack.apache.org 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