Git Product home page Git Product logo

credhub-acceptance-tests's Introduction

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

credhub-acceptance-tests's People

Contributors

tomkennedy513 avatar mdelillo avatar bitops avatar pjk25 avatar chhhavi avatar gstandley21 avatar joshzarrabi avatar miafryling avatar danjahner avatar pgoodwin avatar tisvictress avatar kardolus avatar rkawala avatar proplex avatar tinygrasshopper avatar ndhanushkodi avatar peterhaochen47 avatar stuart-pollock avatar tanzeeb avatar happytobi avatar kvedurmu avatar goonzoid avatar adobley avatar bruce-ricard avatar hsinn0 avatar ishustava avatar jchesterpivotal avatar jhamon avatar kellygerritz avatar walterscarborough avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.