-
Notifications
You must be signed in to change notification settings - Fork 145
Stateful set fixes #37
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
Conversation
fabianvf
commented
Apr 10, 2017
- Rename get_exception to get_exception_class, to match corresponding change in other helpers
- Remove apiVersion from request body, fixes stateful set api mismatch errors.
detiber
left a comment
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.
apiVerson is an optional field, and since we are mapping the version of the resource to the version of the API we are calling into three shouldn't be an issue with not specifying it here.
|
I'll add some tests for stateful sets and replicasets tomorrow as well |
Fixes stateful set api mismatch errors.
09a5971 to
7fb3e3d
Compare
| version_mismatch = pytest.mark.skipif( | ||
| float(pytest.config.getoption('--openshift-version')) < 1.5, | ||
| reason='This API is not supported in openshift versions < 1.5' | ||
| ) |
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.
Instead of defining version_mismatch here, it might be better to move this to test/functional/conftest.py and rename it to version_gte_1_5. Then it would be available for other tests as well.
b1b1fbd to
370f9e4
Compare
370f9e4 to
9beb266
Compare
|
@detiber ready for review |
test/functional/conftest.py
Outdated
|
|
||
|
|
||
|
|
||
| def version_mismatch(lowest_version=None, highest_version=None, skip_latest=False): |
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'm probably missing something, but I'm not seeing if this is used anywhere.
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.
Whoops, totally thought I'd removed that. Copy paste error, my bad.
* No longer pass API version in request body * add tests for replica and stateful sets * add test for horizontal pod autoscaler * add skip condition on version mismatch