feat: add cli command scaletest dynamic-parameters (#20034)

part of https://github.com/coder/internal/issues/912

Adds CLI command `coder exp scaletest dynamic-parameters`

I've left out the configuration of tracing and timeouts for now. I think I want to do some refactoring of the scaletest CLI to make handling those flags take up less boiler plate.

I will add tracing and timeout flags in a follow up PR.
This commit is contained in:
Spike Curtis
2025-10-07 21:53:59 +04:00
committed by GitHub
parent 0e0f0925e4
commit 65335bc7d4
8 changed files with 700 additions and 7 deletions
+10
View File
@@ -519,6 +519,16 @@ func (e *Error) Error() string {
return builder.String()
}
// NewTestError is a helper function to create a Error, setting the internal fields. It's generally only useful for
// testing.
func NewTestError(statusCode int, method string, u string) *Error {
return &Error{
statusCode: statusCode,
method: method,
url: u,
}
}
type closeFunc func() error
func (c closeFunc) Close() error {