-
Notifications
You must be signed in to change notification settings - Fork 249
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 tkn interactive tests #976
Conversation
f05f8d2
to
2ac8919
Compare
3d40759
to
986f9f3
Compare
test/e2e/cli.go
Outdated
|
||
err = cmd.Start() | ||
if err != nil { | ||
t.Fatal(err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It might be nice to make this configurable to allow for errors in the event we want to test for errors with interactive tests. Perhaps a param for the func that allows for error checking or fails the test based on an error?
@@ -15,10 +15,16 @@ | |||
package e2e |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From an organization perspective, I am wondering if it would make sense to keep interactive test helper functions in a separate file? Maybe keep cli.go
as where to define things that will be needed by all testing helper commands? WDYT?
|
||
}) | ||
|
||
t.Run("Validate interactive pipeline logs, with follow mode (-f) ", func(t *testing.T) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can this include actually selecting and starting the logs of the PipelineRun?
49eb9ba
to
567d1b5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: danielhelfand, vdemeester 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 |
Add interactive tests for Resource create, taskrun, pipeline run logs ,pipeline start interactively..
Changes
Submitter Checklist
These are the criteria that every PR should meet, please check them off as you
review them:
make check
make generated
See the contribution guide
for more details.
Release Notes