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: compute #137

Merged
merged 1 commit into from Jun 29, 2016
Merged

Shindo to Minitest: compute #137

merged 1 commit into from Jun 29, 2016

Conversation

gildub
Copy link
Collaborator

@gildub gildub commented May 26, 2016

Migrates compute models and requests

Tests marked has skip(pending) using Minitest::Test::UNIT_TESTS_CLEAN

  • 1 x requests/compute/security_group_tests.rb
  • 1 x requests/compute/server_tests.rb

Besides later 2 to be addressed the random tests failures have not occurred so far!

Note: This is not using subfolder 'openstack' anymore


it "#get_volume_detail" do
@compute.get_volume_details(@volume_id)
.body.must_match_schema('volume' => @volume_format)

Choose a reason for hiding this comment

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

Place the . on the previous line, together with the method call receiver.
Align .body with .get_volume_details on line 38.

@coveralls
Copy link

coveralls commented May 26, 2016

Coverage Status

Changes Unknown when pulling 241e8e6 on gildub:shindo_to_minitest-compute into * on fog:master*.

'config_drive' => String,
}

@reservation_format = { 'reservation_id' => String }

Choose a reason for hiding this comment

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

Space inside { detected.
Space inside } detected.

@coveralls
Copy link

coveralls commented May 26, 2016

Coverage Status

Changes Unknown when pulling e66edc7 on gildub:shindo_to_minitest-compute into * on fog:master*.

@coveralls
Copy link

coveralls commented May 26, 2016

Coverage Status

Changes Unknown when pulling 326ebe3 on gildub:shindo_to_minitest-compute into * on fog:master*.

it "#resize_server(#{@server_id}, #{get_flavor_ref_resize})" do
compute.resize_server(@server_id, get_flavor_ref_resize).status.must_equal 202
unless Fog.mocking?
compute.servers.get(@server_id).wait_for { self.state == 'VERIFY_RESIZE' }

Choose a reason for hiding this comment

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

Redundant self detected.

group.name.must_equal 'my_group'
group.service.must_equal server.service
ensure
unless Fog.mocking? then

Choose a reason for hiding this comment

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

Do not use then for multi-line unless.

@coveralls
Copy link

coveralls commented May 30, 2016

Coverage Status

Changes Unknown when pulling 483e3db on gildub:shindo_to_minitest-compute into * on fog:master*.

@coveralls
Copy link

coveralls commented May 30, 2016

Coverage Status

Changes Unknown when pulling 781af6b on gildub:shindo_to_minitest-compute into * on fog:master*.

@@ -33,4 +33,5 @@ Gem::Specification.new do |spec|
spec.add_development_dependency 'minitest'
spec.add_development_dependency 'vcr'
spec.add_development_dependency 'webmock', '~> 1.24.6'
spec.add_development_dependency 'pry-byebug'
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this be here?

Copy link
Collaborator Author

@gildub gildub Jun 6, 2016

Choose a reason for hiding this comment

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

Done. Although I'm thinking of adding it for good! :)

@petrblaho
Copy link
Contributor

I am little concerned about big chunks of code in it blocks in test/models/compute/server_tests.rb.

But I understand that this PR is about migrating tests so I am ok with that. We can clean it later.

Thanks for this work. 👍

@coveralls
Copy link

coveralls commented Jun 6, 2016

Coverage Status

Changes Unknown when pulling 0d1735c on gildub:shindo_to_minitest-compute into * on fog:master*.

Migrates compute models and requests

Tests marked has`skip`(pending) using Minitest::Test::UNIT_TESTS_CLEAN
- 1 x requests/compute/security_group_tests.rb
- 1 x requests/compute/server_tests.rb

Besides those two to be addressed the random tests failures have not
occurred so far!

Note: This is not using subfolder 'openstack' anymore
:name => 'test server',
:flavor_ref => flavor,
:image_ref => image
)

Choose a reason for hiding this comment

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

Indent ) the same as the start of the line where ( is.

@coveralls
Copy link

coveralls commented Jun 6, 2016

Coverage Status

Changes Unknown when pulling 48acd62 on gildub:shindo_to_minitest-compute into * on fog:master*.

@gildub
Copy link
Collaborator Author

gildub commented Jun 6, 2016

@petrblaho , I have addressed all issues, thanks for helping.

@dhague dhague merged commit 2c4148b into fog:master Jun 29, 2016
@gildub gildub deleted the shindo_to_minitest-compute 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