Skip to content

Add more tests for ec2.py#2164

Merged
tardyp merged 2 commits intobuildbot:masterfrom
aelsabbahy:increase_test_coverage_for_ec2
Apr 29, 2016
Merged

Add more tests for ec2.py#2164
tardyp merged 2 commits intobuildbot:masterfrom
aelsabbahy:increase_test_coverage_for_ec2

Conversation

@aelsabbahy
Copy link
Copy Markdown
Contributor

Increase test coverage in preparation for boto2 -> boto3 upgrade

@mention-bot
Copy link
Copy Markdown

By analyzing the blame information on this pull request, we identified @ryansydnor, @rutsky and @kouk to be potential reviewers

@tardyp
Copy link
Copy Markdown
Member

tardyp commented Apr 25, 2016

cool!

identifier='publickey',
secret_identifier='privatekey',
keypair_name="test_key",
keypair_name="latent_buildbot_slave",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Please use latent_buildbot_worker instead of latent_buildbot_slave.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The test fixture sets up latent_buildbot_slave, I can change the test fixture to use latent_buildbot_worker and update the whole test suite , but I would also have to change the defaults in ec2.py#L76

Want me to change it for both, or is there some backwards compatibility that needs to be maintained? for _slave?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Default can't be changed due to backward compatibility.
Current use of default value is deprecated and warning is emitted, if user doesn't explicitly specify value for keypair_name or security_name.

Please change value that is used in test.

Copy link
Copy Markdown
Contributor Author

@aelsabbahy aelsabbahy Apr 26, 2016

Choose a reason for hiding this comment

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

I changed the value from slave to worker in every test that wasn't checking for deprecation warnings.. there's quite a few that did that.

@ryansydnor
Copy link
Copy Markdown
Contributor

Lgtm! (Other than rutsky's comment)

@codecov-io
Copy link
Copy Markdown

Current coverage is 84.23%

Merging #2164 into master will increase coverage by +0.09%

@@             master      #2164   diff @@
==========================================
  Files           333        333          
  Lines         32001      32001          
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
+ Hits          26920      26955    +35   
+ Misses         5081       5046    -35   
  Partials          0          0          
  1. File ...ildbot/worker/ec2.py (not in diff) was modified. more
    • Misses -35
    • Partials 0
    • Hits +35

Sunburst

Powered by Codecov. Last updated by 5030755

@aelsabbahy
Copy link
Copy Markdown
Contributor Author

Let me know if any other changes are required.

@rutsky
Copy link
Copy Markdown
Member

rutsky commented Apr 28, 2016

LGTM

@aelsabbahy
Copy link
Copy Markdown
Contributor Author

Once this is merged, I'll submit the boto2 -> boto3 upgrade as a new PR.

@tardyp tardyp merged commit cd99685 into buildbot:master Apr 29, 2016
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.

7 participants