-
Notifications
You must be signed in to change notification settings - Fork 103
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
Add cluster as callback to fixture cluster #2340
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: bkopilov The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Hi @bkopilov. Thanks for your PR. I'm waiting for a openshift member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Current cluster fixture when called create and register the cluster, We can not modify / update params dynamically when creating cluster In some cases we may want to get cluster object and before it registerd send params/verify as openshit_version , pull keys and more. example for use case: a test try to send to "register" cluster missing params or ask for custom ocp version based on dynamic configuration. The idea here allow to user decide on cluster fixture if its a registered cluster object or callback_cluster. In case its a callback cluster we call callback_cluster() and the object created and registered. The callback_cluster is object that has reference to param from cluster fixtube and will allow to change configuration . Example for testcase: class TestProxy(BaseTest): callback_cluster = True def test_benny(self): supported_versions = cluster.api_client.versions.v2_list_supported_openshift_versions() cluster1 = cluster() cluster1.prepare_for_installation() with this support we will be able to gain the cleanup that cluster fixture has.
e054a63
to
39098cc
Compare
@lalon4 , @adriengentil , @danmanor This patch to address custom ocp tests ... let me know what do you think. |
@bkopilov is this still needed? |
/uncc @rccrdpccl |
/ok-to-test |
@bkopilov: all tests passed! Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
Issues go stale after 90d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle stale |
/close. |
/close |
Not needed |
@bkopilov: Closed this PR. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
Current cluster fixture when called create and register the cluster, We can not modify / update params dynamically when creating cluster
In some cases we may want to get cluster object and before it registerd send params/verify as openshit_version , pull keys and more. example for use case: a test try to send to "register" cluster missing params or ask for custom ocp version based on dynamic configuration.
The idea here allow to user decide on cluster fixture if its a registered cluster object or callback_cluster.
In case its a callback cluster we call callback_cluster() and the object created and registered. The callback_cluster is object that has reference to param from cluster fixtube and will allow to change configuration .
Example for testcase:
class TestProxy(BaseTest):
with this support we will be able to gain the cleanup that cluster fixture has.