Separate negative tests for list_floating_ips

Add negative tests for test_list_floating_ips to a specific file.
Since no floating_ips are needed to setup for negative test,
generation of non existent id can be simplified.

bp negative-test-files

Change-Id: I1d3ac0956ea3f69bbd5bde897f0a18fc0e182930
Make Heat's non_empty_stack usable without a server

We don't really need to test with a server to check Heat's
API responses. So just use a trivial resource type (a LaunchConfig)
to create some objects that we can query against. Now we can use
this test to gate.

Change-Id: I71bc065d8a1d2064ca90406543a376ce4d477275
Add testcases for security groups

Adds tests for those GET API functions that accept params

List_security_groups Nova API

Skip security groups list by 'all_tenants' search filter test
if neutron is enabled because neutron do not support 'all_tenants'
search filter.

Change-Id: I5867acd03c3d184911281c673ce804455f269f57
Partial-Bug: #1086590
add both v2 and v3 tests for get specified extension

this add tests for getting specified extension info both against
on nova v2 and v3 api.

Partially implements blueprint nova-v3-api-tests

Change-Id: I9e254069db737d3eb9088475d7272d8aa79b1bd1
Only initialize the glance_http if service is enabled

This commit just adds a check to see if glance is set as enabled in
the config file before initializing the glance http client. Previously
regardless of whether glance was enabled or not glance_http would
auth against keystone.

Closes-Bug: #1214774
Change-Id: I07127c21d55d58fdb294468a0b74ce2bc54d8719
avoid resource leaks in keypairs tests

this does some code refactor, uses addCleanup to
avoid resource leaks. and import the module test
instead of attr.

Change-Id: I188bec7dda2cd0f180252a9844e378bb2f8ff6da
port test_keypairs into nova v3 part1

This changeset only copies the v2 files into the appropriate v3
directories unchanged. This is being tried in order to make
reviewing of the porting easier as gerrit will display only what
is actually changed for v3 rather than entirely new files.

Partially implements blueprint nova-v3-api-tests

Change-Id: I1f49bb12cb193bfa7db069f392f845838d6f8cc4
Remove duplicate negative test of flavor_id

As tempest/api/compute/admin/test_flavors.py, it is possible to
specify uuid as flavor_id. In addition, Nova creates a flavor with
uuid flavor_id if passing None as the API parameter of flavor_id.

Then, test_get_flavor_details_for_invalid_flavor_id is not an
"invalid id" test, the test is a "non existent id" test.
So the test and test_non_existent_flavor_id are duplicated, and
this patch merges them to one test.

Change-Id: I73f79f82f48a49208500c2542e55c026f120e921
Fix failures when l3_agent_scheduler ext is not available

Some plugins do not support the L3 agent scheduler extension.
Therefore, make the tests that rely on it dependent on whether
this is actually available in the plugin under test.

Change-Id: I3154b646677379a34465c6826b71d4ad72c471a2
Closes-bug: #1231152
Move common wait_for_image_status from compute images_client to waiters

The wait_for_image_status method in the compute json/xml images_clients
was copy/paste and needed a better error message when it times out, so
rather than write a better error message and copy it in both places,
move the common code into waiters and make the json/xml clients call
that instead, like we do for wait_for_server_status.

The improved error message should help in debugging that failure when
it's hit.

Related-Bug: #1260982

Change-Id: I5e3e33310a91da71467fa744972f1a0e4c0bdb50
Separate negative tests for test_availability_zone

Move negative tests from test_availability_zone.py to
test_availability_zone_negative.py

This patch also uses 'AZ' short for the 'AvailabilityZone'.
This is because if the class name 'AvailabilityZoneAdminV3
NegativeTestJSON' is used, the tempest test will occur an
error 'Project name should not be greater than 64 characters.'
The Project name is made of class name and the characters
'-tempest-xxxxxxxxxx-tenant'.
'-tempest-xxxxxxxxxx-tenant' is 26 characters, so the class
name should not exceed 38 characters.

Partially implements blueprint negative-test-files
Change-Id: Ic72264e89ac5fd700202b0c75cc63116d8fca172
Adds ping method to remote client

Allowing pinging via ssh host.
Pushing this because many new patches are using this (at least 3 of mine)

Change-Id: I48931e968e76a24658bcda298e98f3a40c8358d1
Add Savanna-related configs for testing

Currently we're only need to expose catalog_type config.

Change-Id: I29bc1d91adc7098cdc162146ccabe6197162faf0
Add Savanna client for node group templates

It adds data_processing service with simple Savanna client that currently
supports only CRUD operations with node group templates.

Change-Id: Ic96ae88fcfe164f4953013a2d4433bc9c9bf6c6d
Add volume extensions tests

This commit adds clients for the cinder extensions api and adds
tests to list the extensions, which parallels the existing tests we
have for the nova equivalent api.

Change-Id: Ie24609ade3a4884b42f75ba6f3d3d969aca37505
add some negative tests for flavor

add some negative tests for flavor API. and seperate negative testcases
into a dedicated file according to
http://docs.openstack.org/developer/tempest/HACKING.html#negative-tests
and this
bp:https://blueprints.launchpad.net/tempest/+spec/negative-test-files

Change-Id: Ib521c717bfacf98cb092068522d8da36fb79e7c0
add some tests for aggregates

Mainly add some negative tests for Aggregates API, and seperate negative
testcases into a dedicated file according to
http://docs.openstack.org/developer/tempest/HACKING.html#negative-tests.

Change-Id: I7506a5c06218c8f66b2a406138ff1360cc340ca7
port related volumes tests into nova v3 part1

This changeset only copies the v2 files into the appropriate v3
directories unchanged. This is being tried in order to make
reviewing of the porting easier as gerrit will display only what
is actually changed for v3 rather than entirely new files.

Partially implements blueprint nova-v3-api-tests

Change-Id: I8799257fa161ebf4c8b4bc437a94c7af746b1112
port related volumes tests into nova v3 part2

there is no cinder proxy in nova v3 api. So we just use cinder
directly. And some tests are duplication with the tests in cinder
testing, just remove them, add merge the remain tests under the
server tests directory.

Partially implements blueprint nova-v3-api-tests

Change-Id: I41f0ac3292b84e2a905e5bbfb6e0fcdddf93b50b
port instance_usage_audit tests into nova v3 part1

This changeset only copies the v2 files into the appropriate v3
directories unchanged. This is being tried in order to make
reviewing of the porting easier as gerrit will display only what
is actually changed for v3 rather than entirely new files.

Partially implements blueprint nova-v3-api-tests

Change-Id: I7d1e6437cca25ab7da4e1d74f617e51f17951ba6