credhub-acceptance-tests

module
v0.0.0-...-f7b2716 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 20, 2024 License: Apache-2.0

README

Acceptance test suite for CredHub

CredHub manages credentials like passwords, certificates, ssh keys, rsa keys, strings (arbitrary values) and CAs. CredHub provides a CLI and API to get, set, generate and securely store such credentials.

See additional repos for more info:

Get prerequisites

Ensure that you have a local version of the CredHub CLI and ginkgo checked out in your $GOPATH

Install the CredHub CLI

go get code.cloudfoundry.org/credhub-cli

To install ginkgo see ginkgo installation

Run Tests locally

Target your local API by running:

cat <<EOF > test_config.json
{
  "api_url": "https://${YOUR_IP_HERE}:8844",
  "api_username":"${YOUR_USERNAME}",
  "api_password":"${YOUR_PASSWORD}",
  "credential_root":"${YOUR_CREDHUB_CA_PATH}",
  "uaa_ca":"${UAA_CA_PEM_FILE}"
}
EOF

Runs local CredHub testing via:

./scripts/run_tests.sh

To run with a locally built credhub-cli you can replace the build step in the before suite with the path to your CLI.

Run Application Smoke Tests

Target your desired environment:

cat <<EOF > test_config.json
{
  "api_url": "https://${YOUR_IP_HERE}:8844",
  "api_username":"${YOUR_USERNAME}",
  "api_password":"${YOUR_PASSWORD}"
}
EOF

Run smoke test suite via:

./scripts/run_smoke_tests.sh

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL