Thanks Arvind!

I'll get with some of the dashboard core folks this morning and get some 
additional eyes on the pull request, and hopefully pull it through quickly.

-joe

On Sep 6, 2011, at 8:27 AM, Arvind Somya wrote:
> Hey Joe
> 
> I dug into this a bit and found that my tests were not really mocking 
> anything and running directly on Quantum. I was loading the local_settings 
> instead of testsettings in my test environment and I had a quantum 
> installation running where the settings specified it.
> 
> I was having trouble mocking out the Quantum integration due to the way the 
> class hierarchy was structured, just changed the interaction method and 
> pushed out new tests.. these should run without quantum.
> 
> https://github.com/4P/openstack-dashboard/pull/104
> 
> Thanks
> Arvind
> 
> On 08/31/2011 07:33 PM, Joseph Heck wrote:
>> 
>> Thanks Arvind, I appreciate it!
>> 
>> I'm updating the README on that project to explain the unusual project setup 
>> for the future...
>> 
>> -joe
>> 
>> On Aug 31, 2011, at 4:07 PM, asomya wrote:
>>> Ah, that explains it why I didn’t see them fail when I wrote those tests. I 
>>> used django’s manage.py to run tests on the django_openstack module and the 
>>> individual views.
>>>  
>>> I’ll check out your fix branch and take a look.
>>> 
>>> Thanks
>>> Arvind
>>> 
>>> On 8/31/11 6:57 PM, "Joseph Heck" <he...@mac.com> wrote:
>>> 
>>>> I have a branch of Dashboard at 
>>>> https://github.com/heckj/openstack-dashboard/tree/quantum_dep_fix  (branch 
>>>> name "quantum dep fix").
>>>> 
>>>> The openstack dashboard project is a bit unusual in that it has two 
>>>> distinct areas inside it, both of which need the dependencies added. You 
>>>> got the deps added the virtual env, which worked correctly - that effects 
>>>> the "openstack-dashboard" components and tests. If you read through 
>>>> "run_tests.sh" you'll see the craziness that is running the whole set of 
>>>> tests. ( I have a pull request in place to expand on that further 
>>>> (hopefully happening soon) that will include the pep8, pylint, and 
>>>> coverage metrics - they don't currently exist. )
>>>> 
>>>> There is another set of tests and setup that are run with buildout (blame 
>>>> Devin Carlen there... I think) - the buildout.cfg under django-openstack 
>>>> is where I added the dependencies as well 
>>>> (https://github.com/heckj/openstack-dashboard/commit/9f11bb0cc0f51da8a9c764e3c4e1d850de79af25).
>>>>  This component is the non-django-project specific code and is where the 
>>>> majority of the unit tests live. Even after adding the dependeny, I'm 
>>>> seeing unit tests failure (running ./run_tests.sh from the top) on a clean 
>>>> system - hence my odd questions. I'd happily welcome some eyes on that 
>>>> branch so we can get the tests passing on the openstack-dashboard project.
>>>> 
>>>> -joe
>>>> 
>>>> On Aug 31, 2011, at 3:40 PM, asomya wrote:
>>>>> Hey Joe
>>>>> 
>>>>> I added the dependency to Quantum to the venv installer pip-required but 
>>>>> for
>>>>> some reason jenkins doesn't seem to install it.
>>>>> 
>>>>> As for the unit tests, these were for the network and port views in the
>>>>> dashboard  and I mocked these. I'll double check if I set the testsettings
>>>>> correctly. 
>>>>> 
>>>>> Thanks
>>>>> Arvind
>>>>> 
>>>>> 
>>>>> On 8/31/11 6:32 PM, "Joseph Heck" <he...@mac.com> wrote:
>>>>> 
>>>>>> Next dumb question -
>>>>>> 
>>>>>> I've added in the dependency to the buildout section of the dashboard, 
>>>>>> but the
>>>>>> unit tests are now failing asking for settings.QUANTUM_URL. Do the tests 
>>>>>> that
>>>>>> were added there require a running instance of Quantum (or at least the 
>>>>>> API)
>>>>>> to complete, or is that mocked out and they're just stumbling over not 
>>>>>> having
>>>>>> defaults in the no-django-project test setup?
>>>>>> 
>>>>>> -joe
>>>>>> 
>>>>>> On Aug 31, 2011, at 3:10 PM, Salvatore Orlando wrote:
>>>>>>> Hi Joe,
>>>>>>> 
>>>>>>> The official and only Quantum repository we have at the moment is 
>>>>>>> lp:quantum.
>>>>>>> 
>>>>>>> Cheers,
>>>>>>> Salvatore
>>>>>>> 
>>>>>>>> -----Original Message-----
>>>>>>>> From: netstack-
>>>>>>>> bounces+salvatore.orlando=eu.citrix....@lists.launchpad.net
>>>>>>>> [mailto:netstack-
>>>>>>>> bounces+salvatore.orlando=eu.citrix....@lists.launchpad.net] On Behalf 
>>>>>>>> Of
>>>>>>>> Joseph Heck
>>>>>>>> Sent: 31 August 2011 23:04
>>>>>>>> To: netstack@lists.launchpad.net
>>>>>>>> Subject: [Netstack] Quantum dependency
>>>>>>>> 
>>>>>>>> Dumb question - but where is quantum formally residing these days? 
>>>>>>>> Aiming
>>>>>>>> to fix a dependency bug that came in when we merged the Quantum stuff
>>>>>>>> into openstack dashboard, but I wasn't sure where to grab it...
>>>>>>>> 
>>>>>>>> lp:quantum the most appropriate place?
>>>>>>>> 
>>>>>>>> -joe
>>>>>>>> 
>>>>>>>> --
>>>>>>>> Mailing list: https://launchpad.net/~netstack
>>>>>>>> Post to     : netstack@lists.launchpad.net
>>>>>>>> Unsubscribe : https://launchpad.net/~netstack
>>>>>>>> More help   : https://help.launchpad.net/ListHelp
>>>>>> 
>>>>> 
>>>> 
>>>> 
>> 
> 
> 

-- 
Mailing list: https://launchpad.net/~netstack
Post to     : netstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~netstack
More help   : https://help.launchpad.net/ListHelp

Reply via email to