deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Lutterkort <lut...@redhat.com>
Subject Re: [PATCH 4/4] API TESTS: adds README file, rake routes
Date Thu, 02 Aug 2012 21:49:12 GMT
On Thu, 2012-08-02 at 18:07 +0300, marios@redhat.com wrote:
> From: marios <marios@redhat.com>
> 
> 
> Signed-off-by: marios <marios@redhat.com>
> ---
>  tests/README                      |  101 +++++++++++++++++++++++++++++++++++++
>  tests/Rakefile                    |   10 +++-
>  tests/deltacloud/base_api_test.rb |    8 ++--
>  3 files changed, 114 insertions(+), 5 deletions(-)
>  create mode 100644 tests/README

ACK; great docs

> diff --git a/tests/README b/tests/README
> new file mode 100644
> index 0000000..e273248
> --- /dev/null
> +++ b/tests/README
> @@ -0,0 +1,101 @@
> +API TESTS README:
> +=================
> +
> +These tests use RestClient [https://github.com/archiloque/rest-client] to make
> +requests to a deltacloud server running somewhere. The requests/tests are meant
> + to exercise all the REST routes defined in the API
> +[http://deltacloud.apache.org/rest-api.html]. At minimum you need to configure
> +the tests with the location of the deltacloud server to be tested, as well as
> +the credentials for the driver you expect to be running at that deltacloud server.
> + Otherwise you'll see a RunTime error like:
> +
> +"No user or password in config.yaml for openstack driver used by
> +http://localhost:3001/api"
> +
> +
> +RUNNING the tests:
> +==================
> +
> +* Need a deltacloud server running somewhere
> +* edit the config.yaml file (more on this below)
> +* rake test:deltacloud to run all tests
> +* rake test:deltacloud:COLLECTION to run a specific collection test, or 'base_api'
> +  for just the API tests.... e.g. rake test:deltacloud:buckets, rake
> +  test:deltacloud:base_api, rake test:deltacloud:images
> +* more verbose output is achieved by passing TEST_OPTS="-v", e.g.
> +  rake test:deltacloud TEST_OPTS="-v"

Add the following:

        * you can use your own config.yaml by passing it via the CONFIG
        variable to the rake task:
                rake test:deltacloud CONFIG=/some/where/config.yaml

David



Mime
View raw message