3061 Commits

Author SHA1 Message Date
OpenStack Proposal Bot
45d3e67b98 Updated from global requirements
Change-Id: I610346bca6a1a8ff9e0ab20fec664d3aff58c44c
2016-09-01 18:50:33 +00:00
Jenkins
59404393d3 Merge "Rearrange integration tests" 2016-09-01 13:17:05 +00:00
Dean Troyer
ca15cd434b Rearrange integration tests
Move the integration tests into their final home...

* Create tests/integ to hold the integration tests
* Split tests/test_shell_integ.py into tests/integ/base.py and
  tests/integ/cli/test_shell.py
* Rename TestXXXXInteg classes to TestIntegXXXX
* Adds tests/integ/cli/test_project.py for some simple project argument tests

Change-Id: I2cdd340d1d446d61784eae35dd5aa09d40d5899d
2016-08-31 14:59:36 -05:00
OpenStack Proposal Bot
a24d6ba605 Updated from global requirements
Change-Id: I87af564cffaf44669e1efe4ca45c75a6307f1286
2016-08-31 09:14:50 +00:00
OpenStack Proposal Bot
8241f08ee1 Updated from global requirements
Change-Id: I2eedd06457425f48353e416b4d5145ce1967d57c
3.2.0
2016-08-30 14:53:39 +00:00
Dean Troyer
84c83fc3ae Provide fallback prompt function for current osc-lib
Leaving the pw_func uninitialize in osc-lib turned out to be a
bad idea as the test to prompt in setup_auth() doesn't check
for a callback of None.

Also, release note

Change-Id: I8f875fa8a942d02a040238359ee22c603a4e5956
2016-08-29 19:22:06 -05:00
Jenkins
c5f8f761de Merge "Fix auth prompt brokenness" 2016-08-29 21:09:58 +00:00
Dean Troyer
bec206fa0a Fix auth prompt brokenness
We start by fixing this in the already-present OSC_Config class so OSC
can move forward.  This change needs to get ported down into
os-client-config in the near future, maybe even soon enough to make the
client library freeze this week.

* Add the pw-func argument to the OSC_Config (or OpenStackConfig) __init__()
* When looping through the auth options from the KSA plugin look for any
  that have a prompt defined and do not have a value already, so ask for one.

Closes-bug: #1617384
Change-Id: Ic86d56b8a6844516292fb74513712b486fec4442
2016-08-29 11:58:49 -05:00
Jenkins
0ee74b4b27 Merge "Updated from global requirements" 2016-08-29 15:30:50 +00:00
Jenkins
c4610557a9 Merge "[docs] fix incorrect rst markups" 2016-08-29 13:17:56 +00:00
Jenkins
8fce974d2d Merge "Clean imports in code" 2016-08-29 13:13:32 +00:00
Jenkins
b42740816d Merge "Fix six typos" 2016-08-29 12:49:43 +00:00
OpenStack Proposal Bot
5b14741fcc Updated from global requirements
Change-Id: I90afe332e959ba8bbfb1f04cc84454d30a4cf4a8
2016-08-29 10:57:56 +00:00
Andreas Jaeger
9962403d3c Cleanup after install
Tox tests are run on developer machines and on long lived slaves. We
should not leave lots of directories like
/tmp/python-openstackclient-tox_install-sdnltRu lying around.

Instead delete the temporary directory after our run.

Remove also an obsolete comment.

Change-Id: I939eae82dba3287fd4e4086128ebf4609a0e0770
2016-08-28 08:48:23 +02:00
Jenkins
a08b62523f Merge "Restore default auth-type for token/endpoint" 3.1.0 2016-08-25 21:07:03 +00:00
Atsushi SAKAI
c97e8187fe Fix six typos
disassoiate => disassociate
nmaes       => names
mutiually   => mutually
aviod       => avoid
CLustering  => Clustering
availble    => available

Change-Id: I84545bf46acfccc9dde3e85020700edb5a8375a6
2016-08-25 19:54:24 +09:00
OpenStack Proposal Bot
2774145e44 Updated from global requirements
Change-Id: I87cd3d1aaf2d7e8706b4e89ef679c03de69cf611
2016-08-25 09:31:05 +00:00
Cao Xuan Hoang
f854b7d6ea Clean imports in code
In some part in the code we import objects.
In the Openstack style guidelines they recommend to import only modules.

http://docs.openstack.org/developer/hacking/#imports

Change-Id: I2eb35dc53f0fdb61c31022bb70293d1df8aaf482
2016-08-25 13:50:38 +07:00
OpenStack Proposal Bot
afda6f846f Updated from global requirements
Change-Id: I14eec90a7bfe8301b8698dd4337f3748c3732b78
2016-08-25 01:11:34 +00:00
Dean Troyer
188709c668 Restore default auth-type for token/endpoint
The split to osc-lib shell lost the detection of --os-token and
--os-url to set --os-auth-type token_endpoint

Closes-bug: 1615988
Change-Id: I248f776a3a7b276195c162818f41ba20760ee545
2016-08-24 16:57:56 -05:00
OpenStack Proposal Bot
3f86cc0d80 Updated from global requirements
Change-Id: I53797c068d919027c7cfadcb245ab06eb9affc9e
2016-08-24 13:35:57 +00:00
KATO Tomoyuki
50a5c2a163 [docs] fix incorrect rst markups
The incorrect md-style markups break Sphinx builds,
which do not properly generate web page.

http://docs.openstack.org/developer/python-openstackclient/plugin-commands.html

Change-Id: I36ae2cf922836cff42653283c0a683359bd91344
2016-08-24 16:38:21 +09:00
Jenkins
351bfb7915 Merge "Fix post and periodic jobs" 2016-08-23 06:27:32 +00:00
Dean Troyer
684412ca4c Work around a version clash issue with os-client-config
Need to add the fixed_arguments arg to _validate_auth() so
os-client-config 1.19.1 and 1.20.0 can call our version properly.

Change-Id: I328e47ba2f8115e6b18bf1482fd4aa35056907a4
3.0.1
2016-08-22 08:29:35 -05:00
Andreas Jaeger
ea5a8dd80b Fix post and periodic jobs
The usage of zuul-cloner in tox_install breaks post and periodic jobs.
Update the script, it does not need to handle unconstrainted installs
anymore (see tox.ini). There's no need to set ZUUL_BRANCH explicitely
- it's set via the environment and branch is passed in as well.

Note that this script is needed for the edit-constraints call, add a
comment.

Change-Id: I0077c986a17d6bb92791474e03d1e77776e9382f
Closes-Bug: #1615430
2016-08-22 12:19:39 +02:00
Jenkins
cb31fda264 Merge "Updated from global requirements" 3.0.0 2016-08-21 03:33:12 +00:00
Jenkins
90b89acf60 Merge "Integ test cleanup" 2016-08-21 02:37:11 +00:00
OpenStack Proposal Bot
2f0d419e7c Updated from global requirements
Change-Id: Ia8340e97b90f7497244f57c7ab7e46d7a461b896
2016-08-21 00:10:10 +00:00
Jenkins
8f63da4621 Merge "Fix errors in volume set/unset image properties unit tests" 2016-08-19 02:48:08 +00:00
Jenkins
7489fa36aa Merge "Add support for domain specific roles" 2016-08-18 23:30:54 +00:00
Dean Troyer
06721ea889 Integ test cleanup
Change-Id: Ie58a7bec569421097e92a7ddf3cb164fc3f07413
2016-08-18 17:45:29 -05:00
Jenkins
8cef12ce08 Merge "Add shell integration test" 2016-08-18 22:31:08 +00:00
Jenkins
dbfc203c7b Merge "Fix up last-minute imports to use osc-lib" 2016-08-18 22:12:35 +00:00
Jenkins
a28e281a91 Merge "update requirements and test requirements" 2016-08-18 22:10:37 +00:00
Jenkins
20cd4eca59 Merge "document locale and language support tips" 2016-08-18 22:10:31 +00:00
Dean Troyer
cc3d46a47b Fix up last-minute imports to use osc-lib
Change-Id: I1ed2983cf574ebd565eeac4f8199fbc3a2e29c8e
2016-08-18 18:22:42 +00:00
Steve Martinelli
b8d6ceef86 document locale and language support tips
We have full support for various locales and languages, but often
there are hiccups when setting up a terminal to use OSC in this
manner. Document a few common questions so we don't have to
individually support each bug report.

Change-Id: I0f7c7efce3a2c00cc82ed8c67310e027b5e45a45
2016-08-18 18:08:21 +00:00
Jenkins
34f5515a32 Merge "Gate-unbreaking combo review" 2016-08-18 17:52:37 +00:00
Dean Troyer
44f6b76929 Add shell integration test
These run next to unit tests, but unlike unit tests, they test the
dependent libraries also.  This is to detect incompatible breakage
in those dependencies.  The tests provide CLI-level input and
verify the API calls being made via requests using requests_mock
so the entire stack is tested.

It is possible we want to run these separate from the unit tests.
They do not belong in the functional tests as they do not require
a functional cloud for testing.

Depends-on: I426548376fc7d3cdb36501310dafd8c44d22ae30
Change-Id: I356956fcc4ff35191a6ad6a085b75cf370434b09
2016-08-18 11:15:18 -05:00
Dean Troyer
2a1a174086 Gate-unbreaking combo review
Fix argument precedence hack
  Working around issues in os-client-config <= 1.18.0

  This is ugly because the issues in o-c-c 1.19.1 run even deeper
  than in 1.18.0, so we're going to use 1.19.0 get_one_cloud() that
  is known to work for OSC and fix o-c-c with an axe.

Remove return values for set commands
  'identity provider set' and 'service provider set' were still
  returning their show-like data, this is a fail for set commands
  now, don't know how this ever passed before...

Constraints are ready to be used for tox.ini
  Per email[1] from Andreas, we don't need to hack at install_command
  any longer.

  [1] http://openstack.markmail.org/thread/a4l7tokbotwqvuoh

Co-authorioed-by: Steve Martinelli <s.martinelli@gmail.com>
Depends-On: I49313dc7d4f44ec897de7a375f25b7ed864226f1
Change-Id: I426548376fc7d3cdb36501310dafd8c44d22ae30
2016-08-18 07:21:15 -05:00
Steve Martinelli
51cbe414e3 update requirements and test requirements
with the move to osc-lib we don't have to list some requirements.
removed oslo.config since it was not being used, and moved a few
to test-requirements since they are still used in examples and
unit tests.

Closes-Bug: 1593784

Change-Id: I39b610e6a49a4a346dddcedd231d9a7a81cab261
2016-08-11 00:45:56 -07:00
Jenkins
fc7a69e410 Merge "Add '--dhcp' and '--no-dhcp' options to os subnet list cmd" 2016-08-11 07:27:35 +00:00
Jenkins
c9cf6c4eb2 Merge "Rename backup commands in volume v1 and v2" 2016-08-11 04:36:52 +00:00
Jenkins
5b724fc88b Merge "Implement "network agent set" command" 2016-08-11 04:07:03 +00:00
Huanxuan Ao
95f0e3dc36 Fix errors in volume set/unset image properties unit tests
These errors may caused by copy-paste, we should specify
a fake return value for get() method but not create() method.
Create() mothod will not called in set/unset command. After
specifing the return value of get(), we can use the fake volume
in the assert.

Change-Id: I1e0df4c28ece373168788c396e9082d565e36cc7
2016-08-11 11:43:03 +08:00
Huanxuan Ao
39c5eb9e3f Rename backup commands in volume v1 and v2
Backup commands are used only in volume service now,
but "backup" is too generic, users may not know the
commands are used for volume from the commands name.
By seeing the command name, users can only see the
"backup" but do not know which object the backup
commands work for. It may confuse users. I think
rename "backup" to "volume backup" can depict resource
relation and will be helpful for users to know the
commands clearly.

So add new commands ``volume backup create/delete/
list/show/restore`` to replace the old commands
``backup create/delete/list/show/restore``. And also
deprecate old commands.

Change-Id: I4f844d9bc48573eb4d17288ce6b8a90cea00d16a
Implements: bp backup-snapshot-renamed-for-volume-resource
Co-Authored-By: Sheel Rana <ranasheel2000@gmail.com>
2016-08-11 09:32:10 +08:00
Henry Nash
5eb7e626b1 Add support for domain specific roles
A role entity can now be specified as domain specific.

Closes-bug: #1606105
Change-Id: I564cf3da1d61f5bfcf85be591480d2f5c8d694a0
2016-08-10 20:32:55 +00:00
Richard Theis
b3248fb0bd Fix OSC identity v3 functional tests
The OSC identity v3 functional tests are failing due to [1] which
added 'password_expires_at' to the user object. This patch set
fixes the tests by updating user object fields list to include
'password_expires_at'.

[1] https://review.openstack.org/#/c/333360/

Change-Id: Id4b060115d4270899ca0af2dc7b67ee723388e31
2016-08-10 08:51:25 -05:00
Huanxuan Ao
722be75f9c Implement "network agent set" command
Add "network agent set" command in network v2 to set network
agent properties.
Also add the unit test, doc, functional test and release note.

Change-Id: Iebaee4c60f8c6b43f538c1b82a38b93178b9ce53
Implements: bp implement-network-agents
Co-Authored-By: Michael Gugino <michael.gugino@walmart.com>
2016-08-10 15:39:44 +08:00
Cao Xuan Hoang
831546fb9e Add '--dhcp' and '--no-dhcp' options to os subnet list cmd
This patch adds '--dhcp' and '--no-dhcp' options to filter
subnets resulted by os subnet list command.

Change-Id: Ib574cc54594845bc5c5afc38bf44e3b224d33b17
Partial-Bug: #1610883
2016-08-10 08:27:03 +07:00