Repository navigation
Add policy management methods to the ELB driver - #253
fluffybeing wants to merge 3 commits into
Conversation
added test suite for the ex_rename() extention method changed ex_rename() to ex_rename_node() extention method Added the MockHttptestcase from ex_rename_node() extension method changed ex_rename() to ex_rename_node() extention method corrected the MockHttptestcase for ex_rename_node() method Added a fixture for ex_rename_node() method
There was a problem hiding this comment.
This method returns a list so it should have a plural name (policy -> policies).
Please also add a docstring which documents what the method does and what it returns.
There was a problem hiding this comment.
Yeah I was using doc string initially but found that no other methods have and so I removed them. Now I will add them.
|
@rahulrrixe I'm not sure exactly what you mean with "I am not able to debug the elb.py individually". You don't have an AWS account? Or is it something else? |
|
To make this useful, we also need to implement This method actually applies a policy to the load balancer. From the article: |
|
@Kami Thanks I will make the required changes. regarding debugging I have fixed everything and its working fine and now working on writing test suits. |
|
@Kami I have checked all the methods with the aws instance and they all are working fine. |
There was a problem hiding this comment.
Deleting those empty lines breaks lint (pep8 step) - https://travis-ci.org/apache/libcloud/jobs/19573774
|
There are still lint and test failures btw - https://travis-ci.org/apache/libcloud/builds/19573773 |
There was a problem hiding this comment.
I would prefer this item to return a new params list instead of mutate params argument in place.
There was a problem hiding this comment.
Also, please make this a "private" method and move it to the end of the class.
|
@Kami I have made all the changes that you have suggested and also written test suits for the newly added extension methods. I am getting lint failure at some places, will fix them soon. Can you give me your feedback on these changes? |
There was a problem hiding this comment.
balancer_port should probably be port to be consistent with other methods.
There was a problem hiding this comment.
@Kami balancer_port I have given specifically in the method to differentiate it from instance_port
|
It would also be good to add some documentation and examples of how to use that. Adding an example for common scenario like creating a listener and setting a policy for SSL would be good. |
|
@Kami I will add the documentation for the examples and also update different docstring's. |
|
Just want to make sure we are both on the same page. I meant adding documentation and examples to docs/loadbalancer/drivers/elb.rst :) |
@Kami I am not able to debug the elb.py individually. I have followed the testing guidlines from the official documentation.
P.S. From now onward i will create pull request after i have made few changes. I am not used to it, because in fedora community we used to discuss things on fpaste and then create pr.