-
Notifications
You must be signed in to change notification settings - Fork 527
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
feat: rewrite route with http logger plugin with ginkgo && fix: base.CleanAPISIXErrorLog api #1755
feat: rewrite route with http logger plugin with ginkgo && fix: base.CleanAPISIXErrorLog api #1755
Conversation
Deploy preview for apisix-dashboard ready! Built with commit 57f16ec |
api/test/e2enew/base/base.go
Outdated
cmd = exec.Command("sudo", "echo", " > ", pwd+"/docker/apisix_logs/error.log") | ||
_, err = cmd.CombinedOutput() | ||
cmdStr := "echo | sudo tee " + pwd+"/docker/apisix_logs/error.log" | ||
cmd = exec.Command("bash", "-c", cmdStr) | ||
_, err = cmd.Output() |
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.
Codecov Report
@@ Coverage Diff @@
## master #1755 +/- ##
===========================================
- Coverage 72.13% 52.29% -19.85%
===========================================
Files 132 38 -94
Lines 5721 2660 -3061
Branches 649 0 -649
===========================================
- Hits 4127 1391 -2736
+ Misses 1350 1081 -269
+ Partials 244 188 -56
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
base.CleanAPISIXErrorLog() | ||
}) | ||
|
||
table.DescribeTable("test route with log plugin", |
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.
This description confused me.
Maybe delete the route?
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.
we could use clean test data
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.
Awesome!!
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 expect some descriptions.
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
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
Please answer these questions before submitting a pull request, or your PR will get closed.
Why submit this pull request?
What changes will this PR take into?
Please update this section with detailed description.
Related issues
#1500
Checklist: