src snapshot test

Flags

NameDescriptionDefault Value
-dump-requestsLog GraphQL requests and responses to stdoutfalse
-get-curlPrint the curl command for executing this query and exit (WARNING: includes printing your access token!)false
-insecure-skip-verifySkip validation of TLS certificates against trusted chainsfalse
-sinceduration ago to look for healthcheck data1h0m0s
-summary-pathpath to read snapshot summary fromsrc-snapshot/summary.json
-traceLog the trace ID for requests. See https://sourcegraph.com/docs/admin/observability/tracingfalse
-user-agent-telemetryInclude the operating system and architecture in the User-Agent sent with requests to Sourcegraphtrue

Usage

SHELL
'src snapshot test' uses exported summary data to validate a restored and upgraded instance. USAGE src login # site-admin authentication required src [-v] snapshot test [-summary-path="./src-snapshot-summary.json"] ASSESSING RESULTS The outputs of the test is supposed to be used only as a reference indicator of whether or not the instance is in a healthy state. It generally does not give a definitive result, though if an issue is found that the test deems may be critical, the command will exit with status 1. SNAPSHOT SUMMARY The snapshot summary to assert against ('-summary-path') should be generated by 'src snapshot summary'. TEST DATA Use '-dump-requests' to see what data is requested to perform tests.