You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by Ian Duffy <ia...@ianduffy.ie> on 2013/07/11 14:42:44 UTC
Executing a single smoke test without bring up a zone
Hi Prasanna,
I'm trying to execute a single smoke test for testing LDAP auth. But
marvin wants me to deploy a "datacenter" before it will go ahead and
test. I don't need any hosts/zones for testing it.
Is there a way of testing without deploying a configuration?
Thanks,
Ian
Re: Executing a single smoke test without bring up a zone
Posted by Ian Duffy <ia...@ianduffy.ie>.
Brilliant! Thank you.
Got my first integration test working.
The old one that was in there for LDAP testing didn't seem to work...
there was a line of code that went like login = login.loginCmd() I
don't know python but I assume that causes some local/global
conflicts?
On 11 July 2013 15:52, Prasanna Santhanam <ts...@apache.org> wrote:
> On Thu, Jul 11, 2013 at 03:48:17PM +0100, Ian Duffy wrote:
>> Test case(uncompleted) https://gist.github.com/imduffy15/4e3a505cbc2a662acc6e
>>
>> Using the command:
>>
>> nosetests --with-marvin --marvin-config=setup/dev/advanced.cfg
>> test/integration/component/test_ldap.py
>
> nosetests --with-marvin --marvin-config=setup/dev/local.cfg
> test/integration/component/test_ldap.py --load
>
> Don't forget the load (that only loads the config and doesn't fire up
> a zone)
>
>>
>> --marvin-config is in there as it requires a configuration file to run.
>> It being there means advanced.cfg is deployed as a configuration
>> before running the test.
>>
>> Attempting to execute the test without cleaning out the database
>> results an error about the zone already existing from the deployment
>> of the advanced.cfg.
>>
>> If possible I would like to test without deploying a datacenter.
>>
>> Thanks again!
>
> --
> Prasanna.,
>
> ------------------------
> Powered by BigRock.com
>
Re: Executing a single smoke test without bring up a zone
Posted by Prasanna Santhanam <ts...@apache.org>.
On Thu, Jul 11, 2013 at 03:48:17PM +0100, Ian Duffy wrote:
> Test case(uncompleted) https://gist.github.com/imduffy15/4e3a505cbc2a662acc6e
>
> Using the command:
>
> nosetests --with-marvin --marvin-config=setup/dev/advanced.cfg
> test/integration/component/test_ldap.py
nosetests --with-marvin --marvin-config=setup/dev/local.cfg
test/integration/component/test_ldap.py --load
Don't forget the load (that only loads the config and doesn't fire up
a zone)
>
> --marvin-config is in there as it requires a configuration file to run.
> It being there means advanced.cfg is deployed as a configuration
> before running the test.
>
> Attempting to execute the test without cleaning out the database
> results an error about the zone already existing from the deployment
> of the advanced.cfg.
>
> If possible I would like to test without deploying a datacenter.
>
> Thanks again!
--
Prasanna.,
------------------------
Powered by BigRock.com
Re: Executing a single smoke test without bring up a zone
Posted by Ian Duffy <ia...@ianduffy.ie>.
Test case(uncompleted) https://gist.github.com/imduffy15/4e3a505cbc2a662acc6e
Using the command:
nosetests --with-marvin --marvin-config=setup/dev/advanced.cfg
test/integration/component/test_ldap.py
--marvin-config is in there as it requires a configuration file to run.
It being there means advanced.cfg is deployed as a configuration
before running the test.
Attempting to execute the test without cleaning out the database
results an error about the zone already existing from the deployment
of the advanced.cfg.
If possible I would like to test without deploying a datacenter.
Thanks again!
Re: Executing a single smoke test without bring up a zone
Posted by Ian Duffy <ia...@ianduffy.ie>.
Will send it onto you later today, messed up with git and lost my changes.
On 11 July 2013 13:56, Prasanna Santhanam <ts...@apache.org> wrote:
> On Thu, Jul 11, 2013 at 01:42:44PM +0100, Ian Duffy wrote:
>> Hi Prasanna,
>>
>> I'm trying to execute a single smoke test for testing LDAP auth. But
>> marvin wants me to deploy a "datacenter" before it will go ahead and
>> test. I don't need any hosts/zones for testing it.
>>
>> Is there a way of testing without deploying a configuration?
>>
>
> This shouldn't be the case. Can you share a gist of your test case?
>
> --
> Prasanna.,
>
> ------------------------
> Powered by BigRock.com
>
Re: Executing a single smoke test without bring up a zone
Posted by Prasanna Santhanam <ts...@apache.org>.
On Thu, Jul 11, 2013 at 01:42:44PM +0100, Ian Duffy wrote:
> Hi Prasanna,
>
> I'm trying to execute a single smoke test for testing LDAP auth. But
> marvin wants me to deploy a "datacenter" before it will go ahead and
> test. I don't need any hosts/zones for testing it.
>
> Is there a way of testing without deploying a configuration?
>
This shouldn't be the case. Can you share a gist of your test case?
--
Prasanna.,
------------------------
Powered by BigRock.com