secretless-broker icon indicating copy to clipboard operation
secretless-broker copied to clipboard

POC: Auto generation of troubleshooting guide

Open doodlesbykumbi opened this issue 4 years ago • 1 comments

Creating the proxy service in memory makes it very easy to have a troubleshooting generation as code approach. This commit provides an example using the HTTP connector. A similar approach would work for other connectors. It manages to capture client output and relevant Secretless logs all in one fell swoop.

You'll note that http_proxy_service.go in the files changes is almost identical to a file you'll find in the MSSQL integration tests PR. This is because the logic to start proxy services is more or less the same and really should exist within some module in Secretless to make doing this easier. Especially if we have any intention of using this approach as a test harness.

doodlesbykumbi avatar May 06 '20 17:05 doodlesbykumbi

Code Climate has analyzed commit 35afd41b and detected 63 issues on this pull request.

Here's the issue category breakdown:

Category Count
Duplication 2
Style 61

The test coverage on the diff in this pull request is 100.0% (50% is the threshold).

This pull request will bring the total coverage in the repository to 48.4% (0.0% change).

View more on Code Climate.

codeclimate[bot] avatar May 06 '20 18:05 codeclimate[bot]