405 Commits

Author SHA1 Message Date
Jenkins
20c3c62c10 Merge "Add a config option to select compute xml api" 2014-08-13 00:17:14 +00:00
Jenkins
0450a604e6 Merge "Add a new credential provider to use a list of creds" 2014-08-12 04:02:50 +00:00
Adam Gandelman
c6eefb4b4a Add console_output compute feature flag
Not all hypervisors support getting serial console logs.  This adds
a new compute feature flag.  It skips tests that stress this call and
avoids logging console logs to debug if it is not supported.

Change-Id: Icc37e9f3497fb7bd72f359197663c71abbf16921
2014-08-11 20:31:45 -07:00
Matthew Treinish
20866a2a0e Add a config option to select compute xml api
This commit adds a config option to select whether the nova v2 api
has xml enabled.

Change-Id: I5db2b782e71d99705c9f071a14ab850afbeddeb8
2014-08-11 22:49:52 -04:00
Adam Gandelman
7186f7a668 Add interface_attach compute feature flag
Dynamic attachment of network interfaces is not currently a supported feature
in the baremetal case.  This adds feature flag to skip related API tests.

Change-Id: Ia09e84d7acfcd7291b3c9b58bc163603d6a0fb34
2014-08-06 16:40:06 -07:00
Jenkins
a8dd0b00ef Merge "Add new shelve compute feature flag" 2014-08-06 10:26:17 +00:00
Matthew Treinish
c791ac46d0 Add a new credential provider to use a list of creds
This commit adds a new credential provider to use credentials provided
from a list of available credentials.

Partially implements bp test-accounts
Change-Id: I69c3105f8b413102ea567ccb92965572ce03d679
2014-08-03 21:38:28 -04:00
Jenkins
465cf2aa13 Merge "Check rebuild server action API attributes" 2014-07-31 01:14:52 +00:00
Simeon Monov
5d7effe9e4 Fix exception when api_extensions is set to empty
test.is_extension_enabled() is not checking if
config_dict[service] list is empty

Added a check if config_dict[service] is empty the
function will return False which means no extensions
are enabled

Change-Id: I2ee64f205c393637b5fc65897f1489292781c0be
Closes-Bug: 1342516
2014-07-24 03:01:50 +03:00
David Shrewsbury
25f666f1d3 Add new shelve compute feature flag
Shelving/unshelving is not supported across all drivers (e.g., Ironic).
This adds a new compute feature flag and skips tests where this function
is performed.

Change-Id: Ib94b479db2b691e73c6121c17cb47ae1c25636a8
2014-07-22 12:17:59 -04:00
Ghanshyam
9c2e50ddc7 Check rebuild server action API attributes
This patch adds the JSON schema for Nova V2 & V3 server action
'rebuild' API response and validate the response with added
JSON schema to block the backward incompatibility change in the future.

The response body of server rebuild V2 API is given below:
{
    "server": {
        "accessIPv4": "1.2.3.4",
        "accessIPv6": "fe80::100",
        "addresses": {
            "private": [
                {
                    "addr": "192.168.0.3",
                    "version": 4
                }
            ]
        },
        "adminPass": "seekr3t",
        "created": "2012-09-12T17:20:36Z",
        "flavor": {
            "id": "1",
            "links": [
                {
                    "href": "http://openstack.example.com/
                            openstack/flavors/1",
                    "rel": "bookmark"
                }
            ]
        },
        "hostId": "1e3da81662360b7e5ea6d8123031f67168b6992f20bb84df69",
        "id": "075e40fe-9f03-4652-ba8e-5f8e2547899a",
        "image": {
            "id": "70a599e0-31e7-49b7-b260-868f441e862b",
            "links": [
                {
                    "href": "http://openstack.example.com/openstack/
                            images/70a599e0-31e7-49b7-b260-868f441e862b",
                    "rel": "bookmark"
                }
            ]
        },
        "links": [
            {
                "href": "http://openstack.example.com/v2/openstack/
                        servers/075e40fe-9f03-4652-ba8e-5f8e2547899a",
                "rel": "self"
            },
            {
                "href": "http://openstack.example.com/openstack/
                        servers/075e40fe-9f03-4652-ba8e-5f8e2547899a",
                "rel": "bookmark"
            }
        ],
        "metadata": {
            "meta var": "meta val"
        },
        "name": "foobar",
        "progress": 0,
        "status": "ACTIVE",
        "tenant_id": "openstack",
        "updated": "2012-09-12T17:20:37Z",
        "user_id": "fake"
    }
}

The response body of server rebuild V3 API is given below:
{
    "server": {
        "addresses": {
            "private": [
                {
                    "addr": "192.168.0.3",
                    "mac_addr": "aa:bb:cc:dd:ee:ff",
                    "type": "fixed",
                    "version": 4
                }
            ]
        },
        "admin_password": "seekr3t",
        "created": "2013-11-14T06:29:00Z",
        "flavor": {
            "id": "1",
            "links": [
                {
                    "href": "http://openstack.example.com/flavors/1",
                    "rel": "bookmark"
                }
            ]
        },
        "host_id": "28d8d56f0e3a77e2089172b68032e017045e20aa5dfc6cb66",
        "id": "a0a80a94-3d81-4a10-822a-daa0cf9e870b",
        "image": {
            "id": "70a599e0-31e7-49b7-b260-868f441e862b",
            "links": [
                {
                    "href": "http://glance.openstack.example.com/
                    images/70a599e0-31e7-49b7-b260-868f441e862b",
                    "rel": "bookmark"
                }
            ]
        },
        "links": [
            {
                "href": "http://openstack.example.com/v3/servers/
                a0a80a94-3d81-4a10-822a-daa0cf9e870b",
                "rel": "self"
            },
            {
                "href": "http://openstack.example.com/servers/
                a0a80a94-3d81-4a10-822a-daa0cf9e870b",
                "rel": "bookmark"
            }
        ],
        "metadata": {
            "meta_var": "meta_val"
        },
        "name": "foobar",
        "progress": 0,
        "status": "ACTIVE",
        "tenant_id": "openstack",
        "updated": "2013-11-14T06:29:02Z",
        "user_id": "fake"
    }
}

Partially implements blueprint nova-api-attribute-test

Change-Id: Ia75f7862bf8eac40f7a9b125fb7e101830da514b
2014-07-22 21:32:05 +09:00
Sean Dague
2bbdf42c85 olso log sync
The oslo log fix to actually print out CRITICAL exceptions
is needed to debug tempest/javelin2 in any real way.

Change-Id: I5a91cff829fec268ebf9c01a5fe84225e4fe72d1
2014-07-11 08:29:53 -04:00
Yuiko Takada
1ee1b32963 Make test_drivers.py use driver name from conf
test_list_drivers and test_show_driver in test_drivers.py use hard_coded
driver name.
This patch make these tests use driver name which is written in config file.

Closes-Bug: #1317717

Change-Id: Idad4c496a42c9253548fdf9020ffb8013fef951f
2014-07-04 09:55:30 +09:00
Jenkins
8882c9147a Merge "Tempest API tests: Add ipv6 attribute tests" 2014-06-28 13:08:50 +00:00
Jenkins
d671d4ad80 Merge "Add Tests for Message & Claim APIs" 2014-06-28 00:37:09 +00:00
Jenkins
9d5aa38cfe Merge "Bump baremetal power/assoc/unprovision timeouts" 2014-06-24 10:32:34 +00:00
Malini Kamalambal
7458b4b505 Add Tests for Message & Claim APIs
This patch adds the positive tests for Message & Claim APIs.

Change-Id: I6128e1990bedcc427733531a0d272449e8b1ce96
Implements: blueprint add-basic-marconi-tests
2014-06-23 14:09:12 -04:00
Adam Gandelman
2e37b4f18f Add new rescue compute feature flag
This adds a new feature flag to toggle whether rescue mode is supported by
the hypervisor and skips rescue tests accordingly.  The feature is enabled by
default.

Change-Id: I4dabe663a177aac853ea0e6f4b58b28da890be71
Closes-bug: #1331870.
2014-06-19 16:53:19 -07:00
Jenkins
8446493234 Merge "Adds test for Floating Ips bulk Nova V2 API" 2014-06-18 02:18:29 +00:00
Matthew Treinish
836e56bf21 Set default to false for nova v3_api config option
This commit switches the default value for the nova v3 api config
option from true to false. This changes the default behavior to not
run the Nova v3 API tests. This is because the v3 is still marked as
experimental and is able to change in a non-backwards compatible way
which will cause issues when running with branchless tempest.
Additionally, the nova team decided not to do a standalone v3 api so
at some point this will disappear and instead become v2.1 of the api
with microversions. When you couple this with the fact that tempest's
gate budget is basically exhausted (tests shouldn't take over an hour
to run in the gate) this should be defaulted off. For more discussion
see:

http://lists.openstack.org/pipermail/openstack-dev/2014-June/037370.html

Change-Id: I13dbc4b433a0f6defbeebce958b2e1cbcf64ba7a
2014-06-17 11:38:57 -04:00
Jenkins
f064d3e37e Merge "Clarify API extension description of Nova API" 2014-06-17 05:35:26 +00:00
Sean M. Collins
dd27a4d174 Tempest API tests: Add ipv6 attribute tests
Implements blueprint ipv6-subnet-attributes

Change-Id: I7f8358f4fc507cc2ea73ebbf8a7ff25f0e8306fe
2014-06-16 16:25:13 -04:00
Jenkins
e829ef5690 Merge "Heat Overlapping ip issue" 2014-06-13 20:56:19 +00:00
Attila Fazekas
640392b928 Heat Overlapping ip issue
The hard coded cidr used by heat neutron scenario,
was overlapping with the host systems cidr.
Because the neutron scenario does not used his own router,
it also caused issue for the cfn init scenario.

* The neutron scenario will use the first configured cidr
* The neutron scenario will use his own router
* The neutron scenario will retry singaling the heat-cfn-api,
  because if neutron is overload and the vm boot is fast and we
  do not wait even for the meta data api service connectivity (enabled
  config drive), the signal could be sent in a wrong time when
  the L3 connectivity is not ready, but the L2 is.
* Let neutron decide the allocation_pools (simplification)
* Using comma_delimited_list for passing not hard coded dns servers
  to the stack

Change-Id: I06bd197b0f6c012a1416016a40f29ddd080b21b9
Partial-Bug: #1297560
2014-06-12 18:28:53 +02:00
Jenkins
1f8688f6b9 Merge "Add compute notifications tests for ceilometer" 2014-06-12 05:31:32 +00:00
Ghanshyam
06a5b4a3a3 Adds test for Floating Ips bulk Nova V2 API
This patch adds the test for following Nova V2 APIs-
- Create Floating Ips bulk
- Delete Floating Ips bulk
- List Floating Ips bulk

This patch also adds the config option for unallocated
Floating IP Range

Change-Id: I6af52bb2ce2caadf8491740097df71d041643e78
2014-06-11 20:14:40 +09:00
Adam Gandelman
e42f092226 Bump baremetal power/assoc/unprovision timeouts
Increases the default timeouts for baremetal nodes to complete
certain state transitions.  This is required so Ironic can gain
support for waiting on external events (eg, neutron port updates)
at various times during a node's lifecycle.

Change-Id: If037ebd903bd64a6bcf3e925f38709a4d74bf353
2014-06-10 15:38:32 -07:00
Ken'ichi Ohmichi
a7e6871604 Clarify API extension description of Nova API
On Nova API, we can see two names for each API extension. The one is
"Name", the other is "Alias". The "Name" is represented with camelcase
and the "Alias" is done with characters and hyphens:

 $ nova list-extensions
 +--------------+-----------------------+------------------+---------+
 | Name         | Summary               | Alias            | Updated |
 +--------------+-----------------------+------------------+---------+
 | AdminActions | Enable admin-only ... | os-admin-actions | ...     |
 | Agents       | Agents support.       | os-agents        | ...     |
 | ConsoleOutput| Console log output... | os-console-output| ...     |
 | Consoles     | Interactive Console.. | os-consoles      | ...     |

In Tempest, we can select API extensions what we test and it should be
based on "Alias", because on Nova side we have been a lot stricter about
format/uniqueness for the alias which is seen as the canonical name.
This patch clarifies it.

Change-Id: I3e753c81182af83e01ad3a1f2eb9782c8abb6f50
2014-06-04 16:49:50 +09:00
Vadim Rovachev
7bcea356a5 Add compute notifications tests for ceilometer
Added ceilometer test for measurements:
instance, instance:<type>, memory, vcpus, disk.root.size,
disk.ephemeral.size

Change-Id: Ic99229d38f17cd81e147d86031aca75c13171057
Partially implements: blueprint add-basic-ceilometer-tests
2014-06-03 13:50:19 +04:00
Jenkins
1e15da2715 Merge "Add Marconi Smoke Tests" 2014-05-29 15:20:00 +00:00
Jenkins
84e7eb73f0 Merge "set all build_intervals to 1s" 2014-05-29 15:18:27 +00:00
Matthew Treinish
afcb6b4f81 Remove default from image_ref options
This commit removes the weird default values for the image_ref option.
The IMAGE_ID defaults were probably a hold away from when they were
set in env from an early version of tempest. This sets no default and
lists them as required opts in the help field.

Change-Id: Iaeff5ff2278b0076306ed2cbfe592c06cfbbe316
2014-05-27 13:50:02 -04:00
Sean Dague
8219085609 set all build_intervals to 1s
10s build interval is really long, and not very sensible. Setting
to 1s should speed things up a lot.

Change-Id: If8332d4be8515ac574cbbf4e00cbe0a75b6ebc5d
2014-05-27 09:25:20 -04:00
Jorge Chai
83ba4ee226 Add Marconi Smoke Tests
Add smoke tests that check the existence of queues.
Add test that checks list queues.
Add test that gets queue statistics.
Add test that sets and gets queue metadata.

Tests for List Queues and Queue Stats use JSON Schema
validation.

Change-Id: I084d1ae0de4a729a913a7084f14c0d3172af29d3
Implements: blueprint add-basic-marconi-tests
2014-05-23 13:58:20 +00:00
Jenkins
3df6ac77f1 Merge "Added Trove (database) version API tests" 2014-05-12 07:17:06 +00:00
Jenkins
b75e9df5c9 Merge "Add V3 Test to get Spice & RDP console of server" 2014-05-09 21:58:53 +00:00
Peter Stachowski
320f9c74ac Added Trove (database) version API tests
Added a new file "test_versions.py" to verify the current
version of the Database API.  Required supporting
functions are added in a new client file "versions_client.py"
under the JSON interface.
Modified api/base.py, etc/tempest.conf.sample, clients.py and
config.py files

Partially implements blueprint: trove-tempest

Change-Id: I3dbe4e40b8b2a1ec3c69573dd40c3c8a643d73d6
2014-05-05 13:34:46 -04:00
Andrea Frittoli
b1b04bbd18 Define V3 Credentials
Extend the Credentials class hierarchy to include keystone v3
Credentials. Extend unit tests accordingly.
Extend credentials configurations parameters to include domain.

Partially implements: bp multi-keystone-api-version-tests

Change-Id: I4c7f21f769a20ab45c0f9672ebaa738b146cf6a0
2014-04-30 13:36:12 +01:00
Ghanshyam
70876d0cea Add V3 Test to get Spice & RDP console of server
This patch adds Nova V3 API Test to get the Spice and RDP
console of a server

Partially implements blueprint nova-v3-api-tests

Change-Id: I9560983c29398f9479e4139ef2f096902c3eae66
2014-04-25 19:25:22 +09:00
Attila Fazekas
423834d26b ssh instance validation add options for Neutron
This is the first part of the patch series which
 implements multiple ssh instance validation strategy.

This patch adds the new config options and have the effected
test classes to prepare the basic neutron resources for usage.

The default is using the fixed ips for connection, but
on the devstack side the configuration options are configured,
for neutron usage.

Change-Id: Ic5fc9bd1f7407d3430fcd33b03a226deed696d57
Implements: blueprint ssh-auth-strategy
2014-04-19 14:53:26 +02:00
Matthew Treinish
a2dfd49a3e Up the default timeout for stack builds
This commit ups the default stack build timeout from 600 to 1200.
The stack frequently can take longer than 600 secs to build so
doubling it should give us a safe margin.

Related-Bug: #1297560

Change-Id: I3b13a225793d42e2fa9f4871b2fe81c745954c56
2014-04-15 11:18:02 -04:00
Jenkins
09d780a0ce Merge "Volume size could be specified to create volume" 2014-04-09 00:08:26 +00:00
Jenkins
dd80c02bcd Merge "Adds Ironic test_baremetal_basic_ops scenario test" 2014-04-09 00:08:22 +00:00
Jerry Cai
9733d0e152 Volume size could be specified to create volume
1. Provide a "volume_size" config at VolumeGroup
2. Make size as optional prameter, modify all volumes_client to
read the size from CONf if size is None.
3. Modify the testcase: test_volume_create_get_update
_delete_from_image to call create_volume with no size
parameter specified.

Change-Id: I2897f6d6bd970f73867f56d9d23a768cafcbfd80
Closes-Bug: #1293885
2014-04-03 09:46:54 +08:00
Sean Dague
c522c09510 add trace_requests option to debug section
this supports the use case that David Kranz has in tracing
specific tests for test development. Because this is expected to
be development only, and not used in a general case, we don't do
all the md5 niceties of the previous code.

Change-Id: Ia9c7a7d10456d0583f8897111b958050c8e95ed7
2014-04-01 13:24:45 -04:00
Jenkins
43190528f0 Merge "orchestration add resource limit API test" 2014-03-31 22:58:12 +00:00
Adam Gandelman
4a48a603f4 Adds Ironic test_baremetal_basic_ops scenario test
Adds an Ironic scenario test that validates a full instance
boot using Ironic.  In addition to verifying the Nova instance
boots and has connectivity, it monitors power and state transitions
on the Ironic side.  It currently validates orchestration of the pxe_ssh
driver but the goal would be to support other drivers, and test them
conditionally based on the driver associated with the configured Ironic
node.

Change-Id: I7a98ab9c771fe17387dfb591df5a40d27194a5c8
2014-03-31 14:45:29 -07:00
Jenkins
59dd4247ad Merge "Typo in config.py" 2014-03-29 00:43:04 +00:00
Steven Hardy
fdc6bd7eca orchestration add resource limit API test
Add test_limits check that heat rejects stacks with more than
the allowed maximum number of resources

Change-Id: I84eaf11b88f36b79221a99b87c5beb98f121c6e4
2014-03-28 14:16:16 +00:00
Tushar Kalra
95a482d310 Typo in config.py
Change-Id: I172f44dc4115b520c7dcac7d632b49780574582d
2014-03-25 14:24:43 -07:00