directory
1.12.0-beta6
Repository: https://github.com/ibm-cloud/power-go-client.git
Documentation: pkg.go.dev
# Packages
Package testutils implements tests for the Power-Go-Client:
Files
- integration_utils.go: Defines commonly used test functions
- integration_variables.go: Lists default values for all test variables
- example.env: An example .env which is used when overriding default test variables
- launch.json: An example test configuration
- client/instance/*_test.go: Defines tests for an individual resource type
To run a test:
- Set DisableTesting = False in this file
- Create a .vscode folder in the project
- Copy and rename launch.json and .env into .vscode
- Either
- Use default variables in integration_variables.go
- Define variables in .env
- Double click the test function name to select the text.