Commit Graph

527 Commits

Author SHA1 Message Date
Jenkins
6849d17352 Merge "Fix test cases of listing with provisioning state" 2016-01-15 18:50:18 +00:00
Jenkins
62e24db8f1 Merge "Updated from global requirements" 2016-01-12 15:57:15 +00:00
Kan
5f87416ec1 Fix params order in assertEqual
Fix params oeder to correspond to real signature:
    assertEqual(expected, actual)

Change-Id: Iad65accc86a2d1f7df7284596e1bbceeb091d39e
Closes-Bug: #1277104
2016-01-12 06:00:39 +00:00
OpenStack Proposal Bot
995fa39d85 Updated from global requirements
Change-Id: I7a79bd4803987a70d9f1cf4e4cf23fbb8e7115d9
2016-01-12 05:05:39 +00:00
Jenkins
49891d2087 Merge "Remove openstack-common.conf" 2016-01-07 17:41:00 +00:00
LiuNanke
e471083311 Remove openstack-common.conf
We don't sync from oslo-incubator, so don't need this
file any more.

Change-Id: I9310d8d71edc92583a50bf32902a0fac4a0fbb3b
2016-01-07 15:37:55 +08:00
Lucas Alvares Gomes
5fb807c547 Move ironicclient/common tests to their respective directory
The structure of the tests directories should mimic the code repository,
therefore this patch is moving the ironicclient/common tests to
ironicclient/tests/unit/common.

Change-Id: I1c63a72bc53df59f0618dae59e30c80c66c5e0d9
2016-01-06 17:12:13 +00:00
Jenkins
6233309f6c Merge "Do not log secrets" 2016-01-06 17:09:55 +00:00
Lucas Alvares Gomes
eeb327b590 Do not log secrets
When logging the curl command or the http response we should obfuscate
the secrets.

Change-Id: Iaf8aef795782b5c4608f3a2be6887d0429176250
Partial-Bug: 1530972
2016-01-06 14:20:55 +00:00
Kan
36821fc05e Fix test cases of listing with provisioning state
The test case of listing nodes with provisioning state is incomplete.
Add a missed test case and fix a typo in the existing one.

Change-Id: Ide5249984bcecca001347dd18bbd07a31caf44af
Closes-Bug: #1531410
2016-01-06 07:25:42 +00:00
Jenkins
de1072a323 Merge "Replace assertTrue with explicit assertIsInstance" 2016-01-06 03:48:04 +00:00
Jenkins
e489e3b2fb Merge "Add first reno-based release note" 2016-01-05 14:53:05 +00:00
Jenkins
571ab11040 Merge "Add Sanity tests for testing actions with Driver" 2016-01-05 14:52:50 +00:00
Kan
0495d3d462 Replace assertTrue with explicit assertIsInstance
Replace assertTrue(isinstance()) with assertIsInstance().

Change-Id: Ie2dabe3a8da23eba7ff1026311dd44465a7587ab
Closes-Bug: #1268480
2016-01-05 02:42:52 +00:00
Vladyslav Drok
b79105a935 Add first reno-based release note
Also make use of sphinx-quickstart for reno conf.py as previously
it was copypasted from glance and changed manually.

Change-Id: I0efac1cb5181dbf71ef8e50da969a646f5577e11
2015-12-30 13:56:42 +02:00
Jenkins
ced49ed5e3 Merge "Updated from global requirements" 2015-12-28 13:11:33 +00:00
Jenkins
e83d695c99 Merge "Replace assertEqual(None, *) with assertIsNone in tests" 2015-12-23 13:06:56 +00:00
OpenStack Proposal Bot
c38ff2e395 Updated from global requirements
Change-Id: I38a48f2fb41cd117f2714b7adfcd4573b4782af2
2015-12-23 00:37:01 +00:00
Jenkins
3705a7d002 Merge "Add reno for release notes management" 2015-12-22 23:32:51 +00:00
OpenStack Proposal Bot
b40b96e0e8 Updated from global requirements
Change-Id: I6a206d4db1b8872926ca882b71be78ecbd5deae5
2015-12-21 23:45:04 +00:00
OpenStack Proposal Bot
10cca4ffd5 Updated from global requirements
Change-Id: I8a2ce69545bc4a4cf36933dfd3f9a67049e21e99
2015-12-18 13:53:19 +00:00
Jenkins
f40b616038 Merge "Add --uuid to chassis-create" 2015-12-18 13:16:28 +00:00
Jenkins
bbc9fe1534 Merge "Add --uuid to port-create" 2015-12-18 13:06:58 +00:00
Vladyslav Drok
62468189fc Add reno for release notes management
Change-Id: I8a68584ee154642c654780b9b040d5237fd4cbda
2015-12-18 13:05:28 +02:00
Sergii Turivnyi
324efd9037 Add Sanity tests for testing actions with Driver
Smoke tests for the Ironic CLI commands which checks basic actions
with driver command: driver-list, driver-show, driver-properties.

Change-Id: Ibf81f97c1092817abae08e4d19fb55966e94f299
Closes-Bug: #1527515
2015-12-18 11:46:00 +02:00
Jenkins
4995a1b6ce Merge "Removes MANIFEST.in as it is not needed explicitely by PBR" 2015-12-17 19:02:10 +00:00
Shuquan Huang
a90b16ca84 Replace assertEqual(None, *) with assertIsNone in tests
Replace assertEqual(None, *) with assertIsNone in tests to have
more clear messages in case of failure.

Change-Id: I109bef1afbbdd3a2cf25e9fb7133509516910891
Closes-bug: #1280522
2015-12-17 20:57:37 +08:00
Jenkins
a74236c305 Merge "Tests for testing node-set-power-state command" 2015-12-16 14:49:41 +00:00
sonu.kumar
eae47b93f8 Removes MANIFEST.in as it is not needed explicitely by PBR
This patch removes `MANIFEST.in` file as pbr generates a sensible
manifest from git files and some standard files and it removes
the need for an explicit `MANIFEST.in` file.

Change-Id: I8b89fc5c1ec1eedafb3e5a83e6acc74cfb9719e2
2015-12-16 15:42:25 +05:30
Jenkins
d65f28680e Merge "Switch tox unit test command to use ostestr" 2015-12-16 05:30:50 +00:00
Jenkins
aeaa6eb69b Merge "Drop py33 support" 2015-12-15 15:45:14 +00:00
Jim Rollenhagen
b1dfb53ba1 Switch tox unit test command to use ostestr
Blatantly plagiarized from I1acc2deadc01421baec256352b35a646676445e5

This commit switches the tox command to use ostestr instead of calling
testr through setup.py. The primary advantage here is that it uses the
subunit-trace output filter. ostestr primarily exists as a replacement
for pretty_tox.sh bash scripts which spread like a plague through
OpenStack projects after Nova copied it from Tempest. (although ostestr
also provides some other useful features) Granted ironic wasn't using
that, but this commit makes the switch to enable getting the
subunit-trace output which is generally useful.

Note that this dramatically increases output while running tests.
However, test failures are still at the bottom of the output, so it
shouldn't cause much pain, if any.

Change-Id: Ia373b9b4857824644e99a2c8d27e64018cb84b78
2015-12-15 07:45:07 -08:00
Jenkins
5ff790b5c0 Merge "Scale back on how many warnings we issue" 2015-12-15 15:22:33 +00:00
shu-mutou
a2c7e34f7a Drop py33 support
"Python 3.3 support is being dropped since OpenStack Liberty."
written in following URL.
https://wiki.openstack.org/wiki/Python3

And already the infra team and the oslo team are dropping py33
support from their projects.

Since we rely on oslo for a lot of our work, and depend on infra
for our CI, we should drop py33 support too.

Change-Id: I73a53c2c16b3bc8d7cf2c2e491e3be4c4d007828
Closes-Bug: #1526170
2015-12-15 17:30:47 +09:00
Lin Tan
e8f251c007 Add --uuid to port-create
Support specify port uuid to port-create like node-create

Change-Id: Ifc187238134d4661c47efe8dea11e99c48e71a3e
2015-12-15 15:49:11 +08:00
Lin Tan
dd94f2303a Add --uuid to chassis-create
Support specifiy the uuid of chassis when create chassis like node.

Change-Id: I82a352f3fe877b1f1100022f9b3c304b9ab7cd24
2015-12-15 15:37:59 +08:00
Jenkins
5751b32932 Merge "Deprecated tox -downloadcache option removed" 2015-12-13 16:18:05 +00:00
Jenkins
9a563b06d4 Merge "Refactoring and removing duplicate code of "base.Manager" heirs without changing the API" 2015-12-13 02:00:43 +00:00
Ondřej Nový
4aa1167615 Deprecated tox -downloadcache option removed
Caching is enabled by default from pip version 6.0

More info:
https://testrun.org/tox/latest/config.html#confval-downloadcache=path
https://pip.pypa.io/en/stable/reference/pip_install/#caching

Change-Id: Ie4931483b138191b831757ff09d9a132111af22f
2015-12-11 21:24:48 +01:00
Dmitry Tantsur
8224859c02 Scale back on how many warnings we issue
* Remove "Request returned failure status" warning, it does not carry
  any helpful information for an operator (or anyone).
* Demote retry warnings to debug level. Retrying is essentially a normal
  thing in the real world, and currently we're spamming logs with warnings.
  http://logs.openstack.org/93/255793/3/gate/gate-tempest-dsvm-ironic-agent_ssh/25175ed/logs/screen-n-cpu.txt.gz?level=TRACE

Change-Id: I6c40581b9dc5ab1fe3af4b882ede17a13edacc66
Closes-Bug: #1525002
2015-12-11 12:38:39 +01:00
Sinval Vieira
20cefcf0bd Refactoring and removing duplicate code of "base.Manager" heirs
without changing the API

This commit does refactoring regarding the base.Manager and the
specific managers that inherit from it (Chassis, Node, Port and
Driver).

The specific managers had a lot of duplicate code in methods like:
get, create, delete and update, they were literally equal, what does
not make sense once we already had the base.Manager inheritance to
avoid this type of problem.

This change moves the duplicate code to the parent (base.Manager) and
make the specific managers simpler by making the base.Manager more
useful regarding code reuse for these methods.

Change-Id: Ic77a86196d5bcd956f0a3ae517200824a4d70aa8
Closes-Bug: #1517631
2015-12-09 19:31:20 -03:00
Jenkins
3843ab81cd Merge "Fix exceptions.from_response() parameter" 2015-12-08 20:51:53 +00:00
Jenkins
45310e9a96 Merge "Correct node-port-list help info" 2015-12-08 05:15:04 +00:00
Lin Tan
f89739bed7 Correct node-port-list help info
node-port-list accecpts node_name but help say it only accecpt
node_uuid. Correct it and add related tests.

Change-Id: I37f7d505e249156e6a428c3b8d2648b43fcc3df4
2015-12-08 02:13:50 +00:00
Jenkins
3d354beafe Merge "Fix misprints in docstring" 2015-12-07 12:49:00 +00:00
Yang Hongyang
e6db2c719f Fix exceptions.from_response() parameter
The exceptions.from_response() from the common.apiclient.exceptions
module takes 'method' as it's second param.

Co-Authored-By: Lucas Alvares Gomes <lucasagomes@gmail.com>
Closes-Bug: #1520528
Change-Id: I7d59c2f6dcdf181f561f38f95b460e556e8b6d9e
2015-12-07 11:35:37 +00:00
OpenStack Proposal Bot
9f863f3708 Updated from global requirements
Change-Id: I042f9d828770c8c19fb58a352d127c6fb60d06f3
2015-12-07 09:14:20 +00:00
Sergii Turivnyi
6670dd4f03 Tests for testing node-set-power-state command
Tests for the Ironic CLI node-set-power-state command that checks that
node can be set to 'on', 'off' or 'reboot' power states

Change-Id: Ib396d19280f62c656f5dc0458880c466395cdc2f
Implements: blueprint ironic-client-advanced-functional-tests
2015-12-04 15:37:52 +00:00
xiexs
e3183daa83 Add --wrap option for "ironic driver-properties"
This patch tries to add --wrap option to limit the
length of each line.
Default is disabled.

Change-Id: I3c1b2797cb481e6e826e88da70d87033ed2ba291
2015-12-04 16:25:41 +08:00
Kyrylo Romanenko
aa5e9ad272 Fix misprints in docstring
Change-Id: I05cdddd6a27d25dd00418021f733bc02f0198fa7
Closes-Bug: #1522345
2015-12-03 12:15:58 +02:00