Re: [openstack-dev] [horizon] Unknown provider resource-type-registry.service test error

2017-04-11 Thread Beth Elwell
Hi!

Just as a follow up to my email yesterday, tests are now passing. Many thanks 
Rob for helping me out with this on IRC!

If anyone else comes across this error message developing panels in horizon, my 
solution was that I wasn’t making the correct modules available with just 
beforeEach(module(‘horizon.app.core.network_qos')); Weirdly even adding 
beforeEach(module(‘horizon.app.core.openstack-service-api')); didn’t fix the 
errors, yet injecting a broader scope of 
beforeEach(module(‘horizon.app.core')); works in this case.

Thanks again,
Beth
IRC: betherly

> On 10 Apr 2017, at 17:45, Beth Elwell  wrote:
> 
> Hi all,
> 
> Thanks very much in advance for any help you are able to offer.
> 
> I have been working on developing the QoS Policies panel for horizon and have 
> the panel working, however I am struggling with the qos.service.spec.js file. 
> In advance of going into my findings and issues so far, the related patch is 
> located at https://review.openstack.org/#/c/418828/ 
>  
> 
> The error log is as follows: 
> 
> http://paste.openstack.org/show/606058/ 
> 
> 
>  From that error log it looks to me 
> like the resource-type-registry for neutron is not being defined, and the 
> error appears with the link to the network_qos module as per line 19 
> https://review.openstack.org/#/c/418828/28/openstack_dashboard/static/app/core/network_qos/qos.service.spec.js
>  
> 
>  
> 
> However the resource-type-registry is definitely defined and I cannot see why 
> this should be throwing errors.
> 
> It could well be I have just looked at this code for too long and my brain is 
> skipping over something, but any help anyone can give on this would be 
> massively appreciated.
> 
> Many thanks,
> Beth
> IRC: betherly

__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


[openstack-dev] [horizon] Unknown provider resource-type-registry.service test error

2017-04-10 Thread Beth Elwell
Hi all,

Thanks very much in advance for any help you are able to offer.

I have been working on developing the QoS Policies panel for horizon and have 
the panel working, however I am struggling with the qos.service.spec.js file. 
In advance of going into my findings and issues so far, the related patch is 
located at https://review.openstack.org/#/c/418828/ 
 

The error log is as follows: 

http://paste.openstack.org/show/606058/ 


 From that error log it looks to me 
like the resource-type-registry for neutron is not being defined, and the error 
appears with the link to the network_qos module as per line 19 
https://review.openstack.org/#/c/418828/28/openstack_dashboard/static/app/core/network_qos/qos.service.spec.js
 

 

However the resource-type-registry is definitely defined and I cannot see why 
this should be throwing errors.

It could well be I have just looked at this code for too long and my brain is 
skipping over something, but any help anyone can give on this would be 
massively appreciated.

Many thanks,
Beth
IRC: betherly__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev