Skip to content

custom test utils - #3

Merged
openshift-merge-robot merged 3 commits into
openshift:mainfrom
jbpratt:custom-test-utils
Jun 7, 2023
Merged

openshift-merge-robot merged 3 commits into
openshift:mainfrom
jbpratt:custom-test-utils

Conversation

@jbpratt

@jbpratt jbpratt commented Jun 7, 2023

Copy link
Copy Markdown
Contributor
  • gomega/matchers: contain item with prefix matcher
  • gomega/matchers: add simple deployment available matcher
  • gomega/assertions: EventuallyDeployment async assertion

jbpratt added 3 commits June 6, 2023 19:05
implement a basic gomega matcher (based on [1]) to determine if a
kubernetes list contains an item name with the prefix.

[1]: https://onsi.github.io/gomega/#adding-your-own-matchers

Signed-off-by: Brady Pratt <[email protected]>
used to match on deployment's with the status condition of available

Signed-off-by: Brady Pratt <[email protected]>
add an async assertion for polling deployments that can be used with
gomega matchers (including customs matchers)

Signed-off-by: Brady Pratt <[email protected]>
@openshift-ci
openshift-ci Bot requested review from aweiteka and ritmun June 7, 2023 10:38
@openshift-ci openshift-ci Bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 7, 2023
@openshift-ci

openshift-ci Bot commented Jun 7, 2023

Copy link
Copy Markdown
Contributor

@jbpratt: all tests passed!

Full PR test history. Your PR dashboard.

Details

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.

@ryankwilliams

Copy link
Copy Markdown
Member

/lgtm

@openshift-ci openshift-ci Bot added the lgtm Indicates that a PR is ready to be merged. label Jun 7, 2023
@openshift-ci

openshift-ci Bot commented Jun 7, 2023

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jbpratt, ryankwilliams

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:
  • OWNERS [jbpratt,ryankwilliams]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-robot
openshift-merge-robot merged commit f152ba7 into openshift:main Jun 7, 2023
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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants