Make tenant_network_mask_bits default setting consistent

tenant_network_mask_bits in the sample config is 29, but
in the config.py it is 28.

According to the bug report the 28 is the desired value.

Fixing bug 1105199

Change-Id: I45e73dc436bd6aea109c1be934bc7de2d950ef2b
Add boto tests for idempotent RunInstances calls

The EC2 API supports providing a unique client token to
the RunInstances call to ensure idempotency. In other words,
multiple RunInstances call with the same client token will
not start up multiple instances.

This adds a test for this condition, including ensuring that
a new instance is spawned when a client token is re-used
after the original instance linked to it has been terminated.

Fixes bug #1202404

Change-Id: Ia11eb9ac082a623a1ad03b89fb6dbf7cad9f9c99
add image tests

1. create image from stopped server
2. delete image in saving status

Change-Id: I75a9f7e9f4cba4a41029b3ec766674a0acf6f061
Add scenario test of instance/volume snapshot

This test is for snapshotting an instance/volume
and attaching the volume created from snapshot
to the instance booted from snapshot.
The following is the scenario outline:
1. Boot an instance "instance1"
2. Create a volume "volume1"
3. Attach volume1 to instance1
4. Create a filesystem on volume1
5. Mount volume1
6. Create a file which timestamp is written in volume1
7. Unmount volume1
8. Detach volume1 from instance1
9. Get a snapshot "snapshot_from_volume" of volume1
10. Get a snapshot "snapshot_from_instance" of instance1
11. Boot an instance "instance2" from snapshot_from_instance
12. Create a volume "volume2"  from snapshot_from_volume
13. Attach volume2 to instance2
14. Check the existence of a file which created at 6. in volume2

Change-Id: If8eef9c8c4415b8658ac1b13dc2e114dc22378b4
Fixes: bug #1203637
Ignore the default quota values

The default Quota values are just values from config file,
and they are usually different at ever cloud provider.

In the API compatibility perspective the values are not
important, but the keys presence is important.

The other option would be, adding the expected response to the
tempest config.

The test_get_updated_quotas test case also got a dedicated tenant.

Fixing bug 1130461
Change-Id: I50204dc7955d68491ad63f239c42fb47591a0be7
Move isolated credential code to BaseTestCase

This commit takes the isolated credential code from BaseComputeTest
and moves it up to it's super class: BaseTestCase. This allows the
isolated credential code to be reused by all the test classes. All
existing(only compute and volume) isolated credential methods in
the base classes are then update to use the common methods.

Change-Id: Ifae7bb74a4aa8f853fbd87ad80a63a9dcfc3b9d1
Add tenant isolation for glance api tests

This commit adds isolated tenant support to the glance api tests. The
glance base test class is modified to call _get_isolated_creds() from
BaseTestCase if the isolated tenant config flag is set.

Change-Id: Ia22bd66006c010dcc4b57a6a6346b281086003d9
add service tests

1. list service by some params combination
2. enable/disable service

Change-Id: If7aeffbb866da276a4d295fc1db03f38b462cd00
Use nose skip exception conditionally

testtools and nose disagree on the exception raised for skipping
tests with python < 2.7 (see inline comments for exact details).

This monkey-patches testtools to recognise the nose skip exception.
However, due to nose being deprecated we hide this behind an
environment variable to make it an opt-in fix.

While we're there, modify tempest.test.api.utils @skip_unless_attr
decorator to raise from tempest's BaseTestCase rather than
testtools.TestCase directly.

Change-Id: I13a8f374e879799870bc9193a1ddbdc8d6abb73c
Fixing man page generation

The man page generation failed with sphinx v1.1.3
and docutils 0.10 and 0.11.

Adding docutils==0.9.1 to the test-requirements.txt
in order to solve this issue.

The docutils==0.9.1 is on the common OpenStack dependency list.

Several doc creation warning and error also fixed by this change.

Change-Id: Icb412876f5a989e6b8aa4886f2a246127a76521a
Basic starter scenario for testing the dashboard

Add tests to check that the homepage is working, and that it's
possible to log in and see the overview page.

Fixes bug 1204408

Change-Id: Ifd62e833c85b78c39052f1365a4e1e00680713ef
Merge "Move isolated credential code to BaseTestCase"
Increase ping timeout on scenario testing

Some gating may fail because ping timeout is short (20s).
In this commit,  we will increase up to 60s.

- Added ping_timeout for compute config with default 60s
- Replaced hardcorded ssh timeout value with ssh_timeout

Fixes bug 1194026

Change-Id: If4e64aff17fc9aea1b6de03c684dff145ef5e6f2
Negative test for rescuing a non-existent server

Added a negative test for rescuing a server
which does not exist.

Change-Id: I618f8f59ad455c48b76fed4c0f836e4e9e49c736
Merge "Make tenant_network_mask_bits default setting consistent"
Merge "Increase ping timeout on scenario testing"
Merge "Negative test for rescuing a non-existent server"
Merge "Use nose skip exception conditionally"
Added a server-pause test

Implementd a negative test for pausing
a already paused server.

Implements blueprint: add-negative-test-for-server
Change-Id: Ic4bc35258e56f0758640d92d3338c9aa584f0a9a
Merge "add image tests"