[openstack-dev] [OpenStack][python-quantumclient] running tox in python-quantumclient

2013-06-23 Thread Kuang-Ching Wang
Hi, I am trying to run a unit test for a module I am developing. When I did the following, it showed commands passed, but in fact my test is not being run since even if I put random bogus file names or bugs in the test, it still shows passed. under python-quantumclient/, I did the following.

[openstack-dev] [OpenStack][python-quantumclient] unit test question

2013-06-25 Thread Kuang-Ching Wang
Hi, I am seeing the following error and cannot figure out why it happened and how to solve it. Any advice would be appreciated. Thanks! UnexpectedMethodCallError: Unexpected method call. unexpected:- expected:+ - request.__call__('localurl/v2.0/firewall_policies.xml', 'POST', body='\nhttp://

Re: [openstack-dev] [OpenStack][python-quantumclient] unit test question

2013-06-25 Thread Kuang-Ching Wang
Hi Eugene, thanks for looking into this. I just pushed my patch: https://review.openstack.org/#/c/33187/ Thanks! KC On Jun 25, 2013, at 9:08 PM, Eugene Nikanorov wrote: > Hi, > > Can you post the code if failing test? > > Eugene. > > > > On Wed, Jun 26, 2

Re: [openstack-dev] [OpenStack][python-quantumclient] unit test question

2013-06-26 Thread Kuang-Ching Wang
x27;s one more place in code that relies on rule of making plurals, it adds > letter 's' producing 'policys' instead of 'policies'. The code is in > quantum/v2_0/__init__.py line # 511. > > Thanks, > Ilya > > 2013/6/26 Kuang-Ching Wang > H

Re: [openstack-dev] [OpenStack][python-quantumclient] unit test question

2013-06-27 Thread Kuang-Ching Wang
gets: > {'firewall_policy': {'firewall_rules_list': {'item': 'rule_id1'}, > 'tenant_id': 'my-tenant', 'name': 'my-name', 'admin_state_up': True}} > > Ilya. > > 2013/6/27 Kuang-Ching Wang > Il

[openstack-dev] [horizon] namespace error in unit test

2013-07-29 Thread Kuang-Ching Wang
I got the following error in running unit test. == ERROR: Failure: NoReverseMatch (u'firewalls' is not a registered namespace inside 'horizon:project') -- Trace

Re: [openstack-dev] [horizon] namespace error in unit test

2013-07-29 Thread Kuang-Ching Wang
I solved my own problem - I missed to enable my service in test/settings.py. Thanks, KC On Jul 29, 2013, at 3:45 PM, Kuang-Ching Wang wrote: > I got the following error in running unit test. > > == > ER

[openstack-dev] [Horizon] how to add unmerged dependency to test-requirements

2013-07-31 Thread Kuang-Ching Wang
Hi, I am working on fwaas Horizon support, which requires fwaas CLI to work. Since fwaas CLI has not been merged (though it is functional), is there anyway I can specify the dependency in horizon/test-requirements file, such that Jenkins would be able to run for my horizon patch. Thanks! KC _