New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Shindo to Minitest: nfv #133
Conversation
Changes Unknown when pulling 0a24e6f on gildub:shindo_to_minitest-nfv into * on fog:master*. |
@@ -0,0 +1,27 @@ | |||
def set_nfv_data |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do not like this method - what it does is that it creates a few instance variables, which is clear side effect and it is hidden from the user of this method.
I suppose that splitting this method into 3 functions with no creation of instance variables but just returning proper values would be more clean solution.
Or just return it from this function so it can be used as @nfv, @vnf_data, @auth = set_nfv_data
which is only a little longer call and gives user of this function control over where are data stored without unseen side effects.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree. Done
Other than inline comments LTGM. |
"password" => "password" | ||
} | ||
} | ||
return [@nfv, @vnfd_data, @auth] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Redundant return
detected.
Changes Unknown when pulling 3676f42 on gildub:shindo_to_minitest-nfv into * on fog:master*. |
Changes Unknown when pulling f0afc94 on gildub:shindo_to_minitest-nfv into * on fog:master*. |
Migrates nfv from Shindo to Minitest Adds test/helpers/nfv_helper.rb to share common nvf data Note: This is not using subfolder 'openstack' anymore
Changes Unknown when pulling 76f5e03 on gildub:shindo_to_minitest-nfv into * on fog:master*. |
Migrates nfv from Shindo to Minitest
Adds test/helpers/nfv_helper.rb to share common nvf data
Note: This is not using subfolder 'openstack' anymore