22 Commits

Author SHA1 Message Date
Jenkins
09627c8436 Merge "Add functional API tests for volume connector and volume target" 2017-08-19 11:31:37 +00:00
Nguyen Hung Phuong
74a126ab0e Add functional API tests for volume connector and volume target
Extend baremetal json client with volume connector and volume target.
Add basic positive tests for volume connector and volume target:

    test_create_volume_connector_error
    test_delete_volume_connector
    test_delete_volume_connector_error
    test_show_volume_connector
    test_list_volume_connectors
    test_list_with_limit
    test_update_volume_connector_replace
    test_update_volume_connector_replace_error
    test_update_volume_connector_remove_item
    test_update_volume_connector_remove_collection
    test_update_volume_connector_add

    test_create_volume_target_error
    test_delete_volume_target
    test_delete_volume_target_error
    test_show_volume_target
    test_list_volume_targets
    test_list_with_limit
    test_update_volume_target_replace
    test_update_volume_target_replace_error
    test_update_volume_target_remove_item
    test_update_volume_target_remove_collection
    test_update_volume_target_add

Change-Id: I642a02cff2afe7f89b6800d69e14d05e04e6a59c
Partial-bug: #1559691
2017-08-15 18:42:10 -04:00
Jenkins
c02fa7193f Merge "Add tempest plugin API tests for driver" 2017-08-11 12:41:26 +00:00
Mark Goddard
975040b3e1 Add tempest tests for physical networks
This change adds tests to the ironic tempest plugin to cover the
API changes made for the physical network awareness feature in
I7023a1d6618608c867c31396fa677d3016ca493e.

Change-Id: I8b30764d797f2f8b45c2ae46ce559e74e0281a49
Partial-Bug: #1666009
2017-07-21 14:31:49 +01:00
Kyrylo Romanenko
061dfb0d97 Add functional api tests for node resource class
Add following tests:
  Create new node with specified longest name of resource class.
  Update existing node with specified resource class.
  Show resource class field of specified node.
  List nodes of specified resource class only.
  Get detailed nodes list of specified resource class only.
  Try to create a node with too long resource class name.
  Try to update a node with too long resource class name.
  Try to create a node with resource class using older api version.
  Try to update a node with resource class using older api version.
  Try to list nodes with resource class using older api version.

Closes-Bug: #1668605
Change-Id: If412a2aeab2ab457f04067cf296cac80b4378482
2017-05-03 17:31:24 +03:00
Kyrylo Romanenko
af1759da01 Add functional API tests for portgroups
Extend baremetal json client with portgroups.
Add basic positive tests for portgroups baremetal api resources:
  test_create_portgroup_with_address,
  test_create_portgroup_no_address,
  test_delete_portgroup,
  test_show_portgroup,
  test_list_portgroups.

Closes-Bug: #1666858
Change-Id: Ifb17a43fa61d0ffb22b7af25174206cf798ca0ee
2017-03-22 12:37:05 +00:00
Vasyl Saienko
e48375538c Add Ironic standalone tests
This patch adds the following standalone tests:

  * agent_ipmitool + wholedisk image + bios
  * agent_ipmitool + partitioned image + bios
  * pxe_ipmitool + wholedisk image + bios
  * pxe_ipmitool + partitioned image + bios

Partial-Bug: #1660606

Change-Id: Ic04b0f134e20d9937a610a14d7c4128f45738eeb
2017-03-15 16:54:45 +02:00
SofiiaAndriichenko
598f783825 This adds a tempest test for creating a chassis with a specific UUID.
Change-Id: I51fbcd0613c16618d5e4a52ae1d798321a21bced
2017-03-13 13:33:23 +00:00
SofiiaAndriichenko
689f2a0fef Add tempest plugin API tests for driver
Test for the following actions were added:

* getting driver's properties
* getting driver's RAID logical disk properties

Change-Id: I395bc4f512a731ab4bfe8ac6a2d850816696400f
2017-03-01 10:57:28 +00:00
Solio Sarabia
009a9ac48c Trivial: Change hardcoded values in tempest plugin
Replace hardcoded http status codes in ironic_tempest_plugin

Change-Id: Ib13d01e297e949f83b32977fc60291b6516d9b41
2017-02-23 16:22:04 -06:00
Sam Betts
4789d3b41a Add Virtual Network Interface REST APIs
This patch adds the REST APIs for the virtual network interface API in
order to abstract the task of assigning logical network interfaces to
physical network interfaces.

Since Newton Ironic provides an interface for pluggable network
implementations. Different network implementations may want to handle
how logical to physical network interface assignment happens. To do this
the new API calls into new functions on the network implementation
loaded for the specified node.

This is part 3 of 3, and adds the node vif subcontroller to expose the
/nodes/<ident>/vifs REST API endpoint. API version is bumped to 1.28.

Co-Authored-By: Vasyl Saienko (vsaienko@mirantis.com)
Change-Id: I70f1166a15a26f392734e21d6bc30a03da4e5486
Partial-Bug: #1582188
2017-01-11 15:08:26 +02:00
Kyrylo Romanenko
d8aaf13772 Fix docstrings in tempest plugin baremetal json client
Fix parameter descriptions in docstrings for
set_node_provision_state and set_node_raid_config methods.

Change-Id: I457b234e8d5b77da6e0be46fa62c135d2e9bb840
2016-10-04 12:33:32 +00:00
Jenkins
a60094b65c Merge "Fix docstrings in Tempest Plugin REST client for Ironic API" 2016-09-19 17:25:21 +00:00
Kyrylo Romanenko
1f21e5cb72 [trivial] Fix typo in docstring
Change-Id: Ie142198b868d91f386319bdc253f7be34dedc55b
2016-09-16 15:07:40 +03:00
Kyrylo Romanenko
1a4eb86307 Fix docstrings in Tempest Plugin REST client for Ironic API
Fix misprints in docstrings.

Change-Id: I68a6f98a626acccb404fb3088e7533e8340473da
2016-09-14 15:11:20 +03:00
Luong Anh Tuan
57f28e44b9 Replace six iteration methods with standard ones
1.As mentioned in [1], we should avoid using six.iterXXX
to achieve iterators. We can use dict.XXX instead, as it will
return iterators in PY3 as well.

2.In py2, the performance about list should be negligible,
see the link [2].

[1] https://wiki.openstack.org/wiki/Python3
[2] http://lists.openstack.org/pipermail/openstack-dev/2015-June/066391.html

Change-Id: I801290be0a2afa929a657821c419f935a908c5b4
2016-09-12 10:46:12 +00:00
Vasyl Saienko
fae3493ed1 Fix signature for request method
New param was introduced to request method by [0]
It leads to broken jobs, because ironic redefines this method.
Replace arguments by *args, **kwargs to do not depend on signature.

Reference:
[0] 4408c4a5fe

Change-Id: I09ada4fc12b58aaa9df4bb248a866999c681d822
Closes-Bug: #1586299
2016-05-27 11:58:25 +03:00
Yuiko Takada
2f6d37129b Add support for API microversions in Tempest tests
This adds support for testing Ironic API microversions, specified
as an additional 'X-OpenStack-Ironic-API-Version' header. This change
also adds tests for Ironic API /v1/nodes/(node_ident)/states/*
endpoint for microversions that were changing state machine.

Co-Authored-By: Vladyslav Drok <vdrok@mirantis.com>
Change-Id: Ibf0c73aa6795aaa52e945fd6baa821de20a599e7
2016-05-25 13:30:11 +03:00
ghanshyam
e8dda1db0e Fix usage of rest_client expected_success() in tests
rest_client expected_success() method expect read_code
must be int and states the same in doc string .

Tempest is converting that to error instead of false pass.
Details: I3f4c58bdbb172805514831103927d3464d65d7f3

Change-Id: Ic4b0af5701df99621e3abb693644c4824c92dc4c
2016-04-21 19:37:55 +09:00
Lenny Verkhovsky
b3ab84fd09 Replace depricated tempest-lib with tempest.lib
Change-Id: Ia674f69f5e5b2a94f3aac5ed497a39e6b71816c0
2016-03-08 17:44:50 +02:00
Yuiko Takada
57e3ba1af8 Migrate Tempest tests into Ironic tree
By using Tempest External Plugin, Tempest tests no longer
need to live in Tempest tree.
This patch set migrates Tempest tests from Tempest tree to Ironic.

Change-Id: Ic52806987dae9f9df561ebd662f12c3445d0e2af
2016-01-19 18:59:14 +09:00
Yuiko Takada
691de301ce Use Tempest plugin interface
Make use of the Tempest plugin interface.

This patch set creates some directories and files for
Tempest plugin interface which are generated by
tempest-plugin-cookiecutter(See [1] and [2]),
which uses ironic_tempest_plugin as new top folder for all Tempest tests,
and also makes possible to import config values from Tempest and use them.

Copying Ironic tests in Tempest to Ironic tree and removing
existing Ironic tests in Tempest will be done after merging this
patch set.

[1]: https://github.com/openstack/tempest-plugin-cookiecutter
[2]: http://docs.openstack.org/developer/tempest/plugin.html

Change-Id: I6a26b1d1fcf088d5218b92e13911c48708af4ec8
2016-01-18 19:37:42 +00:00