<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/openstack/python-swiftclient.git, branch stable/juno</title>
<subtitle>opendev.org: openstack/python-swiftclient.git
</subtitle>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/openstack/python-swiftclient.git/'/>
<entry>
<title>Merge "Update from global requirements" into stable/juno</title>
<updated>2015-08-27T14:56:27+00:00</updated>
<author>
<name>Jenkins</name>
<email>jenkins@review.openstack.org</email>
</author>
<published>2015-08-27T14:56:27+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/openstack/python-swiftclient.git/commit/?id=0289a61f6271281f7af616faf6fbcf8ca47df0d5'/>
<id>0289a61f6271281f7af616faf6fbcf8ca47df0d5</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Update from global requirements</title>
<updated>2015-08-24T00:44:06+00:00</updated>
<author>
<name>Matt Riedemann</name>
<email>mriedem@us.ibm.com</email>
</author>
<published>2015-08-22T01:09:21+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/openstack/python-swiftclient.git/commit/?id=c213ffda17d09a68fdbb619ba6db4b8a101e85a9'/>
<id>c213ffda17d09a68fdbb619ba6db4b8a101e85a9</id>
<content type='text'>
This syncs up the requirements with global-requirements on stable/juno.

We need this to cap the dependency on futures to avoid a conflict
with capped futures in the version of taskflow in stable/juno, otherwise
setting up devstack with cinder enabled fails.

Also update .gitreview for stable/juno since this is the first patch
on the new branch.

Also sets up the tox func target, which is basically a cherry pick of
commit 8aff0bda9c35ab96146f4f419803e62710ab5618. Note that while we
make it possible to run the functional tests, we exclude them in
Jenkins runs since they are also excluded from stable/kilo due to
instability in the gate.

Depends-On: I5a2d3f7860aeae6bf442e9372286eedbc290d6a8

Change-Id: I507aade31da19be71900b81880cd5568b351663e
Partial-Bug: #1486576
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This syncs up the requirements with global-requirements on stable/juno.

We need this to cap the dependency on futures to avoid a conflict
with capped futures in the version of taskflow in stable/juno, otherwise
setting up devstack with cinder enabled fails.

Also update .gitreview for stable/juno since this is the first patch
on the new branch.

Also sets up the tox func target, which is basically a cherry pick of
commit 8aff0bda9c35ab96146f4f419803e62710ab5618. Note that while we
make it possible to run the functional tests, we exclude them in
Jenkins runs since they are also excluded from stable/kilo due to
instability in the gate.

Depends-On: I5a2d3f7860aeae6bf442e9372286eedbc290d6a8

Change-Id: I507aade31da19be71900b81880cd5568b351663e
Partial-Bug: #1486576
</pre>
</div>
</content>
</entry>
<entry>
<title>Update .gitreview for stable/juno</title>
<updated>2015-08-21T17:14:38+00:00</updated>
<author>
<name>Doug Hellmann</name>
<email>doug@doughellmann.com</email>
</author>
<published>2015-08-21T17:14:38+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/openstack/python-swiftclient.git/commit/?id=dfdbfe23bd955ecc69f7a79c748fd2ffac503075'/>
<id>dfdbfe23bd955ecc69f7a79c748fd2ffac503075</id>
<content type='text'>
Change-Id: I5bc9694e4914a2205f8c93f43fad702d8aa63540
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Change-Id: I5bc9694e4914a2205f8c93f43fad702d8aa63540
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge "Remove a debugging print statement"</title>
<updated>2014-09-26T22:35:39+00:00</updated>
<author>
<name>Jenkins</name>
<email>jenkins@review.openstack.org</email>
</author>
<published>2014-09-26T22:35:39+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/openstack/python-swiftclient.git/commit/?id=bb4d2ab59c4de9389667eeed255642f51e276f1e'/>
<id>bb4d2ab59c4de9389667eeed255642f51e276f1e</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge "Fix unit tests failing when OS_ env vars are set"</title>
<updated>2014-09-26T15:48:49+00:00</updated>
<author>
<name>Jenkins</name>
<email>jenkins@review.openstack.org</email>
</author>
<published>2014-09-26T15:48:49+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/openstack/python-swiftclient.git/commit/?id=08c111e771f011a4ca8b093dda71a25871810291'/>
<id>08c111e771f011a4ca8b093dda71a25871810291</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge "Add per policy container count to account stat output"</title>
<updated>2014-09-25T19:10:31+00:00</updated>
<author>
<name>Jenkins</name>
<email>jenkins@review.openstack.org</email>
</author>
<published>2014-09-25T19:10:31+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/openstack/python-swiftclient.git/commit/?id=d721871cfaf9cf9ea986cb59eaeddd90e14f4d2a'/>
<id>d721871cfaf9cf9ea986cb59eaeddd90e14f4d2a</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove a debugging print statement</title>
<updated>2014-09-25T11:03:43+00:00</updated>
<author>
<name>Joel Wright</name>
<email>joel.wright@sohonet.com</email>
</author>
<published>2014-09-25T08:23:44+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/openstack/python-swiftclient.git/commit/?id=3496e07ea42bed9e45203a13322f6b77f8feae96'/>
<id>3496e07ea42bed9e45203a13322f6b77f8feae96</id>
<content type='text'>
This patch removes a debugging print statement that slipped into
service.py in patch https://review.openstack.org/#/c/85453/

Change-Id: I80eee49eaa74b52e9c36f00669206aa7b2cdec9b
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This patch removes a debugging print statement that slipped into
service.py in patch https://review.openstack.org/#/c/85453/

Change-Id: I80eee49eaa74b52e9c36f00669206aa7b2cdec9b
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix unit tests failing when OS_ env vars are set</title>
<updated>2014-09-25T10:44:39+00:00</updated>
<author>
<name>Alistair Coles</name>
<email>alistair.coles@hp.com</email>
</author>
<published>2014-09-25T10:34:48+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/openstack/python-swiftclient.git/commit/?id=b13c84b2ef8a7fee31de2a77b66b50370e6968e5'/>
<id>b13c84b2ef8a7fee31de2a77b66b50370e6968e5</id>
<content type='text'>
tests/unit/test_shell.py:TestParsing tests can fail if
there are OS_* variables set in the environment. There
is already code in the test setUp to remove ST_* variables,
so we should do the same for OS_* variables.

This patch also changes the mechanism used to remove and
then restore any unwanted variables found in os.environ.

The existing setUp() takes a copy of os.environ and then
deletes any ST_* variables in the original. In tearDown() it
sets os.environ as the copy. However, the environ imported
into shell.py remains pointing to the original os.environ
object. So after the first call to tearDown, subsequent
mocking of os.environ has no effect on shell.environ.
This renders some of the tests ineffective e.g.
test_insufficient_env_vars_v3 is not actually setting any
vars in shell.environ.

The issue can be provoked by repeating a test:
nosetests -w tests/unit/ test_shell.py:TestParsing.test_args_v3 \
 test_shell.py:TestParsing.test_args_v3

The test will pass first time and fail second time.

Change-Id: I5d100f81115e74878d510326acb5777e6a3626c8
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
tests/unit/test_shell.py:TestParsing tests can fail if
there are OS_* variables set in the environment. There
is already code in the test setUp to remove ST_* variables,
so we should do the same for OS_* variables.

This patch also changes the mechanism used to remove and
then restore any unwanted variables found in os.environ.

The existing setUp() takes a copy of os.environ and then
deletes any ST_* variables in the original. In tearDown() it
sets os.environ as the copy. However, the environ imported
into shell.py remains pointing to the original os.environ
object. So after the first call to tearDown, subsequent
mocking of os.environ has no effect on shell.environ.
This renders some of the tests ineffective e.g.
test_insufficient_env_vars_v3 is not actually setting any
vars in shell.environ.

The issue can be provoked by repeating a test:
nosetests -w tests/unit/ test_shell.py:TestParsing.test_args_v3 \
 test_shell.py:TestParsing.test_args_v3

The test will pass first time and fail second time.

Change-Id: I5d100f81115e74878d510326acb5777e6a3626c8
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix bug with some OS options not being passed to client</title>
<updated>2014-09-24T17:19:12+00:00</updated>
<author>
<name>Alistair Coles</name>
<email>alistair.coles@hp.com</email>
</author>
<published>2014-09-22T10:52:44+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/openstack/python-swiftclient.git/commit/?id=f90d7f28e504be045e59b395aee0abc057417f8f'/>
<id>f90d7f28e504be045e59b395aee0abc057417f8f</id>
<content type='text'>
Fixes a regression that is preventing swiftclient from
authenticating using keystone v3 options.

swiftclient/shell.py processes the dict of command
line options to set up a child dict ('os_options')
of keystone auth specific options (line 960). The
processing includes stripping --os- prefixes from
the command line options before adding keys to
os_options.

A recent patch https://review.openstack.org/#/c/85453/
introduced a duplication of this option processing
in service.py (line 79) which replaces the os_options
created in shell.py, but omits keystone v3 related
options. Consequently the keystone v3 options are
not being passed to the client get_auth() method.

This patch adds the keystone v3 related options to
the option processing in service.py.

For pragmatic reasons (i.e. fixing the bug quickly)
the option processing code has not been removed from
parse_args in shell.py. It is likely that the code in
parse_args is now redundant, but all code paths between
parse_args and process_options should be inspected and
test coverage added before removing that code.

Unit tests have been added in test_shell.py to verify
that command line options are correctly passed to the
client get_auth method.

The MockHttpTest class is re-used in test_shell.py,
so it is moved from test_swiftclient.py
to tests/unit/utils.py

Closes-bug: #1372465

Change-Id: I4fed013cdb8936509609d06093337cc147ade0d6
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixes a regression that is preventing swiftclient from
authenticating using keystone v3 options.

swiftclient/shell.py processes the dict of command
line options to set up a child dict ('os_options')
of keystone auth specific options (line 960). The
processing includes stripping --os- prefixes from
the command line options before adding keys to
os_options.

A recent patch https://review.openstack.org/#/c/85453/
introduced a duplication of this option processing
in service.py (line 79) which replaces the os_options
created in shell.py, but omits keystone v3 related
options. Consequently the keystone v3 options are
not being passed to the client get_auth() method.

This patch adds the keystone v3 related options to
the option processing in service.py.

For pragmatic reasons (i.e. fixing the bug quickly)
the option processing code has not been removed from
parse_args in shell.py. It is likely that the code in
parse_args is now redundant, but all code paths between
parse_args and process_options should be inspected and
test coverage added before removing that code.

Unit tests have been added in test_shell.py to verify
that command line options are correctly passed to the
client get_auth method.

The MockHttpTest class is re-used in test_shell.py,
so it is moved from test_swiftclient.py
to tests/unit/utils.py

Closes-bug: #1372465

Change-Id: I4fed013cdb8936509609d06093337cc147ade0d6
</pre>
</div>
</content>
</entry>
<entry>
<title>Add per policy container count to account stat output</title>
<updated>2014-09-20T00:07:48+00:00</updated>
<author>
<name>Clay Gerrard</name>
<email>clay.gerrard@gmail.com</email>
</author>
<published>2014-09-20T00:07:48+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/openstack/python-swiftclient.git/commit/?id=40857cfe4c848e3c6bb19a4f0b3987c87d7810b9'/>
<id>40857cfe4c848e3c6bb19a4f0b3987c87d7810b9</id>
<content type='text'>
When the account response includes 'X-Storage-Policy-X-Container-Count' the
command helpers will stick a helpful extra line in the output.

If the swift response doesn't include the information the behavior is
unchanged.

Change-Id: Iaaa55d207ebe6a9c16e52adb56eb858c57cfb26a
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When the account response includes 'X-Storage-Policy-X-Container-Count' the
command helpers will stick a helpful extra line in the output.

If the swift response doesn't include the information the behavior is
unchanged.

Change-Id: Iaaa55d207ebe6a9c16e52adb56eb858c57cfb26a
</pre>
</div>
</content>
</entry>
</feed>
