Skip to content
This repository has been archived by the owner on Dec 2, 2021. It is now read-only.

Adding utils.py for utility functions for oc #2

Merged
merged 3 commits into from
Jul 29, 2019
Merged

Conversation

himmAllRight
Copy link
Member

Created a utils.py file that contains helper/utility functions for oc. First two functions added allow searching the output of multiple pod logs for items, and returns the aggregate matches.

This is used when trying to verify tests from an application's deployed pods, even if it is scaled up to multiple pods. Concurrently searching the pod logs allows tests to efficiently check log messages, even if the test workload was only processed on 1 of many pods.

@ruda
Copy link
Collaborator

ruda commented Jul 25, 2019

New pre-task: turn oc into a package, then we can have the oc.utils module. I can do that, so I will create a new PR, then rebase and include it.

@ruda ruda mentioned this pull request Jul 26, 2019
@ruda ruda merged commit de57f18 into master Jul 29, 2019
Copy link
Collaborator

@ruda ruda left a comment

Choose a reason for hiding this comment

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

LGTM

@ruda ruda deleted the add-pod-log-functions branch August 12, 2019 16:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants