Skip to content
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 support for writing Day2 API tests #599

Merged
merged 2 commits into from
Mar 17, 2021

Conversation

mchernik
Copy link
Contributor

@mchernik mchernik commented Mar 9, 2021

  • Reuse existing TF configuration
  • Always return fresh TF state
  • Clear nodes cache
  • Fetch reuested number of Day2 nodes from environment

@openshift-ci-robot
Copy link

Hi @mchernik. 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 /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

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.

@openshift-ci-robot openshift-ci-robot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Mar 9, 2021
self.cluster_name = kwargs.get('cluster_name', f'{consts.CLUSTER_PREFIX}' + "-" + self.cluster_suffix)
self.network_name = kwargs.get('network_name', consts.TEST_NETWORK) + self.cluster_suffix
self.network_conf = kwargs.get('net_asset')
self.cluster_domain = kwargs.get('base_domain', "redhat.com")
self.ipv6 = kwargs.get('ipv6')
self.params = self._terraform_params(**kwargs)
self.tf_folder = self._create_tf_folder()
tf_folder = kwargs.get('tf_folder')
self.tf_folder = tf_folder if tf_folder else self._create_tf_folder()
Copy link
Contributor

Choose a reason for hiding this comment

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

Any reason not to use the get default value like in cluster_suffix above?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes. The default parameter to get ( _create_tf_folder() method) is evaluated before calling get, so the TF folder is always recreated with this approach.

@omertuc
Copy link
Contributor

omertuc commented Mar 9, 2021

/ok-to-test

@openshift-ci-robot openshift-ci-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Mar 9, 2021
  - Reuse existing TF configuration
  - Always return fresh TF state
  - Clear nodes cache
  - Fetch reuested number of Day2 nodes from environment
@tsorya
Copy link
Contributor

tsorya commented Mar 17, 2021

/approve
/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Mar 17, 2021
@openshift-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mchernik, tsorya

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Mar 17, 2021
@openshift-merge-robot openshift-merge-robot merged commit 4bc6c9b into openshift:master Mar 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants