Comments (4)
I'd like to get the Pod logs so I can relate them to the assertion result (pass/fail)...lets say a test fails, the assert will do its job, but the user will then wonder, why did this test fail? the pod logs would give good insight into the failure cause...the pod logs could also show 'suggestions' that would not cause the test to fail per se, but prod the user towards best practices, this can arise when you do a validation test for example.
from kuttl.
Thanks!
Is this a debugging feature (e.g. you just want to print them) or a testing feature where you want to use the output in an assert or later test step? Or both?
from kuttl.
I like that idea. So maybe we could have an option where you provide pod labels that should be streamed.
from kuttl.
This is coming up in other projects as well... In the other use case it looks like:
- get the pod log output
- assert on a regex match
- success if the match hits
- timeout failure if the match never hits
from kuttl.
Related Issues (20)
- Allow `reportName` to be set with a flag
- Automatic cleanup/deletion of cluster-scoped CR HOT 4
- [Feature] Easy way of checking output to stderr or stdout
- [Feature] Support for directory recursion HOT 1
- [Feature] Selectively disable individual tests HOT 5
- [Enhancement] Output test case full path in final report HOT 2
- Docs: add missing documentation for test step HOT 2
- Docs: add missing documentation for test assert HOT 3
- Docs: add missing documentation for test collector HOT 3
- [Feature] Show aggregated list of failures at conclusion of test
- events.k8s.io/v1beta1 removal in Kubernetes 1.25 HOT 6
- [Bug?] kuttl is not validating the TestStep file
- [Bug] Changing log verbosity level has no effect on the `test` command
- Add deletion timeout support
- Support proxy-url within kubeconfig file
- GH Action Release Process
- GH Action Upgrade test K8S Version HOT 1
- GH Actions - Remove circle CI
- GH Action: Do we need the Kind Logs?
- GH Action trigger for release PRs
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kuttl.