Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var GcloudCommonFlags = []string{
"--quiet",
}
GcloudCommonFlags is a slice of common flags that should be added as arguments to all executions of the external gcloud command.
Functions ¶
func ExecCommand ¶
ExecCommand executes an exec.Cmd. If the command exits successfully, its stdout will be returned. If there's an error, the command's combined stdout and stderr will be returned in an error. The command will be run in the provided directory.
func LoadTestEndpoints ¶
LoadTestEndpoints loads a default test endpoint request (a GET / request expecting a 200 status code) into an openapi3.Swagger object (see github.com/getkin/kin-openapi).
func ValidateEndpoints ¶
func ValidateEndpoints(serviceURL string, paths *openapi3.Paths, identityToken string) (bool, error)
ValidateEndpoints tests all paths (represented by openapi3.Paths) with all HTTP methods and given response bodies and make sure they respond with the expected status code. Returns a success bool based on whether all the tests passed.
Types ¶
This section is empty.