Skip to content

HappyTobi/credhub-acceptance-tests

 
 

Repository files navigation

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 checked out in your $GOPATH

go get code.cloudfoundry.org/credhub-cli

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

About

This repo provides acceptance tests for CredHub

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 97.7%
  • Shell 2.3%