Skip to content

Unit tests

The GCP plugin needs unit tests so we can confirm plugin behavior in isolation. These tests should succeed deterministically, not involve calls to external services, etc.

  • add gitlab-ci.yaml to run tests
  • add interfaces / mocks for external services
  • unit tests for provider.go
  • unit tests for connector_ssh.go
  • unit tests for connector_winrm.go
  • unit tests for /cmd/fleeting-plugin-googlecompute/main.go
Edited by Arran Walker
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information