Documentation ¶
Index ¶
- Constants
- func CompareResponseAndGoldenOutput(goldenFilePath string, responseBytes []byte)
- func MakeFileScanRequest(iacFilePath, URL string, bodyAttributes map[string]string, ...) []byte
- func MakeHTTPRequest(method, URL string) (*http.Response, error)
- func MakeRemoteScanRequest(URL string, bodyAttributes map[string]interface{}, expectedStatusCode int) []byte
- func ValidateExitCodeAndOutput(session *gexec.Session, exitCode int, relFilePath string, isStdOut bool)
Constants ¶
View Source
const ( // ServerCommandTimeout is the default time for server command ServerCommandTimeout int = 10 // ServerCommand is terrascan's server command ServerCommand string = "server" )
Variables ¶
This section is empty.
Functions ¶
func CompareResponseAndGoldenOutput ¶
CompareResponseAndGoldenOutput compares the json response and golden json output
func MakeFileScanRequest ¶
func MakeFileScanRequest(iacFilePath, URL string, bodyAttributes map[string]string, expectedStatusCode int) []byte
MakeFileScanRequest calls the file scan handler of api server
func MakeHTTPRequest ¶
MakeHTTPRequest calls health handler of the api server
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.