Skip to content
This repository was archived by the owner on May 6, 2020. It is now read-only.

feat(scheduler): add scheduler tests that do not go through normal api tests#965

Merged
helgi merged 1 commit intomasterfrom
scheduler_tests
Aug 10, 2016
Merged

feat(scheduler): add scheduler tests that do not go through normal api tests#965
helgi merged 1 commit intomasterfrom
scheduler_tests

Conversation

@helgi
Copy link
Copy Markdown
Contributor

@helgi helgi commented Aug 9, 2016

This expands the scheduler test suite and can run outside of the API setup. Brings is simple testing per resource type.

Also fixes a few mock and scheduler discrepencies that were discovered in the testing

@helgi helgi added this to the v2.4 milestone Aug 9, 2016
@helgi helgi self-assigned this Aug 9, 2016
@helgi
Copy link
Copy Markdown
Contributor Author

helgi commented Aug 9, 2016

There are more tests to write here, just PRing this for some visual codecov.io response and to get visibility on the work

@codecov-io
Copy link
Copy Markdown

codecov-io commented Aug 9, 2016

Current coverage is 85.42% (diff: 72.72%)

Merging #965 into master will increase coverage by 3.59%

@@             master       #965   diff @@
==========================================
  Files            28         28          
  Lines          3070       3080    +10   
  Methods           0          0          
  Messages          0          0          
  Branches        516        517     +1   
==========================================
+ Hits           2512       2631   +119   
+ Misses          407        305   -102   
+ Partials        151        144     -7   

Powered by Codecov. Last update 87a92f6...ad899c3

Comment thread rootfs/scheduler/__init__.py Outdated

def _scale_deployment(self, namespace, name, image, entrypoint, command, **kwargs):
"""
A conveniance wrapper around Deployment update that does a little bit of introspection
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.

s/conveniance/convenience

@arschles arschles added the LGTM1 label Aug 9, 2016
@arschles
Copy link
Copy Markdown
Member

arschles commented Aug 9, 2016

Test code looks good, and I'm ok with falling short of the coverage target, since this goes toward that goal

…i tests

This expands the scheduler test suite and can run outside of the API setup. Brings is simple testing per resource type.

Also fixes a few mock and scheduler discrepencies that were discovered in the testing
@helgi helgi force-pushed the scheduler_tests branch from ad899c3 to a54aaff Compare August 9, 2016 23:11
@helgi helgi merged commit cebd736 into master Aug 10, 2016
@helgi helgi deleted the scheduler_tests branch August 10, 2016 00:21
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants