-
Notifications
You must be signed in to change notification settings - Fork 36
Refactor e2e deletion and unmark adopted Endpoint Test #216
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
Refactor e2e deletion and unmark adopted Endpoint Test #216
Conversation
test/e2e/__init__.py
Outdated
deleted = True | ||
|
||
if k8s.get_resource_exists(reference): | ||
_, deleted = k8s.delete_custom_resource(reference, wait_period*2, wait_length) |
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.
nit: lets double the value of the constant or at the passing method to keep the method generic
lets use cfg.DELETE_WAIT_PERIOD, cfg.DELETE_WAIT_LENGTH
for the ones with 3, 10? similar to job
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.
few misses
test/e2e/tests/test_model_package.py
Outdated
assert deleted | ||
|
||
|
||
assert delete_custom_resource(reference, DELETE_WAIT_PERIOD, DELETE_WAIT_LENGTH) |
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.
incorrect indent
test/e2e/tests/test_model_package.py
Outdated
) | ||
assert deleted | ||
|
||
assert delete_custom_resource(reference, DELETE_WAIT_PERIOD, DELETE_WAIT_LENGTH) |
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.
incorrect indent
assert deleted | ||
|
||
|
||
assert delete_custom_resource(reference, DELETE_WAIT_PERIOD, DELETE_WAIT_LENGTH) |
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.
incorrect indent
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.
/approve
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ryansteakley, surajkota The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
…rs-k8s#216) Issue #, if available: Description of changes: Disabling the adopted endpoint test as canary since this does not provide value for a canary, will keep as e2e test. Refactors ``` if k8s.get_resource_exists(reference): _, deleted = k8s.delete_custom_resource(reference, cfg.JOB_DELETE_WAIT_PERIODS, cfg.JOB_DELETE_WAIT_LENGTH) > assert deleted ``` into a shared method, and adds a retry loop for this assert. By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
) (#219) Issue #, if available: Description of changes: Disabling the adopted endpoint test as canary since this does not provide value for a canary, will keep as e2e test. Refactors ``` if k8s.get_resource_exists(reference): _, deleted = k8s.delete_custom_resource(reference, cfg.JOB_DELETE_WAIT_PERIODS, cfg.JOB_DELETE_WAIT_LENGTH) > assert deleted ``` into a shared method, and adds a retry loop for this assert. By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license. Issue #, if available: Description of changes: By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
…rs-k8s#216) Issue #, if available: Description of changes: Disabling the adopted endpoint test as canary since this does not provide value for a canary, will keep as e2e test. Refactors ``` if k8s.get_resource_exists(reference): _, deleted = k8s.delete_custom_resource(reference, cfg.JOB_DELETE_WAIT_PERIODS, cfg.JOB_DELETE_WAIT_LENGTH) > assert deleted ``` into a shared method, and adds a retry loop for this assert. By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
Issue #, if available:
Description of changes:
Disabling the adopted endpoint test as canary since this does not provide value for a canary, will keep as e2e test. Refactors
into a shared method, and adds a retry loop for this assert.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.