<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'><font style="" face="Courier New,sans-serif" color="#000000">OK, somehow I did not pick up on that, or dropped it along the way of developing the script. Thanks for the clarification, also that Tempest is not required. I should have clarified that I'm using stable/liberty as the base. I will be moving to stable/mitaka soon, as part of the OPNFV Colorado release development.<br><br>One additional question then - are the tests run by "tox -epy27" the same as the tests in the folder <a href="https://github.com/openstack/congress/tree/stable/liberty/contrib/tempest?" target="_blank">https://github.com/openstack/congress/tree/stable/liberty/contrib/tempest?</a> If not, how are those tests supposed to be run for a non-devstack deploy (I see reference to devstack in the readme)?<br><br>I see that the folders have been reorganized for mitaka. My question is per the goal to include as much of the Congress tests as possible in the OPNFV CI/CD process. Not that I expect any to fail, I just want OPNFV to leverage the full test suite. If for liberty that's best left as the tests run by the tox command, then that's OK.</font><br><br>Thanks,<br>Bryan Sullivan<br><br><div><hr id="stopSpelling">Date: Thu, 7 Apr 2016 17:11:36 -0700<br>From: ekcs.openstack@gmail.com<br>To: openstack-dev@lists.openstack.org<br>Subject: Re: [openstack-dev] [Congress] Issues with Tox testing<br><br><div><div>Thanks for the feedback, Bryan. Glad you got things working!</div></div><div><br></div><div>1. The instructions asking to install those packages are missing from kilo (we’ll fix that), but they have been there since liberty. Was it perhaps unclear because the line is too long?</div><div><ul style="box-sizing:border-box;padding-left:2em;color:rgb(51, 51, 51);font-family:'Helvetica Neue', Helvetica, 'Segoe UI', Arial, freesans, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';font-size:16px;background-color:rgb(255, 255, 255);"><li style="box-sizing:border-box;"><p style="box-sizing:border-box;">Additionally:</p><pre style="box-sizing:border-box;overflow:auto;font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace;font-size:14px;line-height:1.45;padding:16px;background-color:rgb(247, 247, 247);border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;word-wrap:normal;">$ sudo apt-get install git gcc python-dev libxml2 libxslt1-dev libzip-dev mysql-server python-mysqldb build-essential libssl-dev libffi-dev</pre></li></ul></div><div>2. Tempest should not be required by the tox tests.</div><div><br></div><div>Thanks!</div><div><br></div><span id="ecxOLK_SRC_BODY_SECTION"><div style="font-family:Calibri;font-size:11pt;text-align:left;color:black;BORDER-BOTTOM:medium none;BORDER-LEFT:medium none;PADDING-BOTTOM:0in;PADDING-LEFT:0in;PADDING-RIGHT:0in;BORDER-TOP:#b5c4df 1pt solid;BORDER-RIGHT:medium none;PADDING-TOP:3pt;"><span style="font-weight:bold;">From: </span> Bryan Sullivan <<a href="mailto:blsaws@hotmail.com">blsaws@hotmail.com</a>><br><span style="font-weight:bold;">Reply-To: </span> "OpenStack Development Mailing List (not for usage questions)" <<a href="mailto:openstack-dev@lists.openstack.org">openstack-dev@lists.openstack.org</a>><br><span style="font-weight:bold;">Date: </span> Thursday, April 7, 2016 at 4:29 PM<br><span style="font-weight:bold;">To: </span> "<a href="mailto:openstack-dev@lists.openstack.org">openstack-dev@lists.openstack.org</a>" <<a href="mailto:openstack-dev@lists.openstack.org">openstack-dev@lists.openstack.org</a>><br><span style="font-weight:bold;">Subject: </span> Re: [openstack-dev] [Congress] Issues with Tox testing<br></div><div><br></div><blockquote id="ecxMAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style="BORDER-LEFT:#b5c4df 5 solid;PADDING:0 0 0 5;MARGIN:0 0 0 5;"><div><style><!--
.ExternalClass .ecxhmmessage P {
padding:0px;
}
.ExternalClass body.ecxhmmessage {
font-size:12pt;
font-family:Calibri;
}
--></style><div class="ecxhmmessage"><div dir="ltr"><font style="" face="Courier New,sans-serif" color="#000000">An update: I found that there were two dependencies needed that were not clear in the guide at <a href="https://github.com/openstack/congress." target="_blank">https://github.com/openstack/congress.</a> I also installed Tempest which was not referenced before. If these additions are correct (they worked for me), they should be added to <a href="https://github.com/openstack/congress/blob/master/README.rst" target="_blank">https://github.com/openstack/congress/blob/master/README.rst</a>.<br><br>$ sudo apt-get install libffi-dev libssl-dev<br>$ cd ~/git<br>$ git clone <a href="https://github.com/openstack/tempest/" target="_blank">https://github.com/openstack/tempest/</a><br>$ cd tempest<br>$ ~/git/congress/bin/pip install -r requirements.txt<br>$ ~/git/congress/bin/pip install .<br><br>(not sure if both pip commands are needed - I'm not an expert on pip install)<br><br>After that, "tox -epy27" ran thru fine:<br><br>------------------------------------------------------------------------------------------------------- -----------<br>congress.tests.policy_engines.test_vmplacement.TestComputeVmAssignment.test_set_policy_with_dashes 27.623<br>congress.tests.policy_engines.test_vmplacement.TestComputeVmAssignment.test_set_policy 27.212<br>congress.tests.policy_engines.test_agnostic_performance.TestRuntimePerformance.test_simulate_latency 1.325<br>congress.tests.dse.test_dse.TestDSE.test_policy_tables 1.229<br>congress.tests.policy_engines.test_agnostic_performance.TestRuntimePerformance.test_select_100matches 1.184<br>congress.tests.test_congress.TestCongress.test_policy_execute 1.127<br>congress.tests.test_congress.TestCongress.test_datasource_api_model_execute 1.067<br>congress.tests.policy_engines.test_agnostic_performance.TestRuntimePerformance.test_update_nonrecursive 0.967<br>congress.tests.dse.test_dse.TestDSE.test_policy_table_publish 0.681<br>congress.tests.datasources.test_neutron_driver.TestDataSourceDriver.test_poll_subscribe 0.671<br>______________________________________________________________ summary _______________________________________________________________<br> py27: commands succeeded<br> congratulations :)<br><br id="ecxFontBreak"></font><br><br>Thanks,<br>Bryan Sullivan<br><br><div><hr id="ecxstopSpelling">From: <a href="mailto:blsaws@hotmail.com">blsaws@hotmail.com</a><br>To: <a href="mailto:openstack-dev@lists.openstack.org">openstack-dev@lists.openstack.org</a><br>Date: Thu, 7 Apr 2016 11:16:48 -0700<br>Subject: [openstack-dev] [Congress] Issues with Tox testing<br><br><style><!--
.ExternalClass .ecxhmmessage P {
padding:0px;
}
.ExternalClass body.ecxhmmessage {
font-size:12pt;
font-family:Calibri;
}
--></style><div dir="ltr"><font style="" face="Courier New,sans-serif" color="#000000">Hi Congress team, <br><br>A question for tox testing expert on the Congress team. I'm trying to run the tox tests as described at <a href="https://github.com/openstack/congress" target="_blank">https://github.com/openstack/congress</a>, specifically the two commands:<br><br></font>$ sudo pip install 'tox<1.7'
$ tox -epy27 <br><br><br><br>Due to conflicts with the OS-owned python config, I run these under my virtualenv created in the congress repo as:<br>$ cd ~/git/congress<br>$ bin/pip install 'tox<1.7'<br>$ bin/tox -epy27<br><br><br>But in any event (whether I try to run the tox within the virtualenv or not), I get errors such as:<br> c/_cffi_backend.c:15:17: fatal error: ffi.h: No such file or directory<br><br><br><br>What's missing in the setup for running these tests? <br><br><br><br>Note that I have all the config needed to run bash/CLI-based test scripts such as <a href="https://git.opnfv.org/cgit/copper/tree/tests/adhoc/dmz01.sh" target="_blank">https://git.opnfv.org/cgit/copper/tree/tests/adhoc/dmz01.sh</a> <br><br><br><br>Thanks,<br>Bryan Sullivan </div><br>__________________________________________________________________________
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: <a href="mailto:OpenStack-dev-request@lists.openstack.org">OpenStack-dev-request@lists.openstack.org</a>?subject:unsubscribe
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a></div> </div></div></div>__________________________________________________________________________
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: <a href="mailto:OpenStack-dev-request@lists.openstack.org">OpenStack-dev-request@lists.openstack.org</a>?subject:unsubscribe
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a>
</blockquote></span>
<br>__________________________________________________________________________
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: OpenStack-dev-request@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</div> </div></body>
</html>