πPynt for Go
Integrate Pynt with Go to enhance API security testing. Automate security scans within your Go test suites to detect and mitigate vulnerabilities effectively.
What is Go?

Pynt's integration with Go
Pyntβs API security testing suite integrates seamlessly with Go, enabling secure, high-performance development and testing of APIs in Go applications.
If your functional tests are written in Go, you can use Pynt command to run API Security tests from these functional tests.
Quick start
First, make sure Pynt's prerequisites are met.
Follow the instructions to install Pynt container here.
Then, continue with the below example.
Example
test_goat.go is a go based tester for goat (our vulnerable application) that we use to test the functionality of goat, here is how to run it:
Get test_goat.go
curl https://raw.githubusercontent.com/pynt-io/pynt/main/goat_functional_tests/goat_test.go -o goat_test.go
Get testify
go get github.com/stretchr/testify
go mod
go mod init goat_test.go
go mod tidy
Check that functional test works
go test
Run Pynt on functional test
pynt command --cmd "go test"
SSL Support
Automatic Self-signed certificates
Pynt can automatically set your go test to use self signed certificate. use the flag --self-signed
pynt command --cmd "<your test command>" --self-signed
Last updated