Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Integration Tests #16

Open
Jacobingalls opened this issue Feb 6, 2017 · 0 comments
Open

Add Integration Tests #16

Jacobingalls opened this issue Feb 6, 2017 · 0 comments
Labels

Comments

@Jacobingalls
Copy link
Collaborator

We need a way to make sure than when we run ./run.sh ... that it is starting a web server and listening to requests.

We should perform integration testing on the api generally, db, and on-disk driver.

For example.

  • Create a new volume
POST /VolumeDriver.Create 
{Name: "foo"}

ensuring that it gets a 200 {Err:""} back.

  • Verify that the plugin knows about it
POST /VolumeDriver.List
{}

Ensuring that we get:

{ Volumes: [
    {Name: foo, ...}
]}
  • Verify the db knows about it
echo "SELECT * FROM volumes;" | mysql -uroot -p<password> rdma

ensuring that our volume exits.

We will want to run tests like this for every feature. Think of them like unit tests, but for the actual APIs. For querying the API we can use cURL.

@ghost ghost self-assigned this Feb 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant