Skip to content
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

Merged
merged 1 commit into from Jun 29, 2016
Merged

Shindo to Minitest: nfv #133

merged 1 commit into from Jun 29, 2016

Conversation

gildub
Copy link
Collaborator

@gildub gildub commented May 25, 2016

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

@coveralls
Copy link

coveralls commented May 25, 2016

Coverage Status

Changes Unknown when pulling 0a24e6f on gildub:shindo_to_minitest-nfv into * on fog:master*.

@gildub gildub added ready and removed in progress labels May 27, 2016
@@ -0,0 +1,27 @@
def set_nfv_data
Copy link
Contributor

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.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree. Done

@petrblaho
Copy link
Contributor

Other than inline comments LTGM.

"password" => "password"
}
}
return [@nfv, @vnfd_data, @auth]

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Redundant return detected.

@coveralls
Copy link

coveralls commented May 30, 2016

Coverage Status

Changes Unknown when pulling 3676f42 on gildub:shindo_to_minitest-nfv into * on fog:master*.

@coveralls
Copy link

coveralls commented May 30, 2016

Coverage Status

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
@coveralls
Copy link

coveralls commented Jun 6, 2016

Coverage Status

Changes Unknown when pulling 76f5e03 on gildub:shindo_to_minitest-nfv into * on fog:master*.

@dhague dhague merged commit d50342a into fog:master Jun 29, 2016
@mdarby mdarby removed the ready label Jun 29, 2016
@gildub gildub deleted the shindo_to_minitest-nfv branch September 29, 2016 06:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants