Skip to content

cloudnativelabs/packngo

 
 

Repository files navigation

packngo

Packet Go Api Client

Committing

Before committing, it's a good idea to run gofmt -w *.go. (gofmt)

Acceptance Tests

If you want to run tests against the actual Packet API, you must set envvar PACKET_TEST_ACTUAL_API to non-empty string for the go test. The device tests wait for the device creation, so it's best to run a few in parallel.

To run all the tests, you can do

$ PACKNGO_TEST_ACTUAL_API=1 go test -v -parallel 8

It's also useful to run only single acceptance test at a time:

$ PACKNGO_TEST_ACTUAL_API=1 go test -v -run=TestAccDeviceBasic

Packages

No packages published

Languages

  • Go 100.0%