In change Ic0762f7a379754d19147a4f41a6d5a98abdc86b0
we renamed <type_name> section to unified 'artifacts'.
We need to reflect this changes in the client, otherwise
it doesn't work.
Change-Id: I10e5b5678180586d6f09b8dd4d83fb3f45e1f569
Now to sort list of artifacts by some field cli accepts
-s option. Unfortunatelly this option appeared in openstack
client and we have to remane ours.
By tradition we use capital letters for conflicting options,
therefore we should rename -s to -S.
Change-Id: Ic1ab7f28112f04e21ed3d6e3a018c5fc5d44e314
Now when user requests a list of artifacts glare returns
a json dict that has a section called after the type name,
which contains the list of the artifacts.
Example:
GET /artifacts/my_artifacts
{"my_artifacts": [...]}
It's not really a resful approach, so it's suggested to create a
unified section 'artifacts' for all cases, i.e. return
{"artifacts": [...]}
Change-Id: I2afb80fc7285bb8111a45a88d03f8ea21052f871
We do not need tox_install.sh, pip can handle constraints itself
and install the project correctly. Thus update tox.ini and remove
the now obsolete tools/tox_install.sh file.
This follows https://review.openstack.org/#/c/508061 to remove
tools/tox_install.sh.
Change-Id: I57b7cb9aff05f4f81f02b39b603f3480943f914e
Release notes are version independent, so remove version/release
values. We've found that projects now require the service package
to be installed in order to build release notes, and this is entirely
due to the current convention of pulling in the version information.
Release notes should not need installation in order to build, so this
unnecessary version setting needs to be removed.
This is needed for new release notes publishing, see
I56909152975f731a9d2c21b2825b972195e48ee8 and the discussion starting
at
http://lists.openstack.org/pipermail/openstack-dev/2017-November/124480.html
.
Change-Id: Ib3988b96b3bfd6b200dc5e746797aef098a33ce0
Currently when we need a help, client object is created
and authentication is performed. This is completely useless
and leads to unnecessary actions in the background.
This patch prevents creation of client object (and therefore
authentication) for help or bash-completion commands.
Change-Id: I08ee73980efc1e84d91868e451e11fa5fe547bf4
If we are not working in insecure mode and certificate not
supplied we should work still in secured mode, because secure
mode can work even without certificate supplied (loaded to ca-store)
Change-Id: If3471fc8621a774a1f752cd6b84509e7128b0146
Closes-bug: #1720783
Complementary update to glare server commit:
"Allocate blob size before starting the upload"
Co-Authored-By: Mike Fedosin <mikhail.fedosin.ext@nokia.com>
Change-Id: If3ad1bc69fd0a68b5c03abe163b76ba166245b81
This patch support new API request to delete blobs from
artifact:
DELETE /artifacts/{type_name}/{artifact_id}/{blob_name}
if user wants to delete internal blob glare raises 403 error.
Co-Authored-By: Mike Fedosin <mikhail.fedosin.ext@nokia.com>
Change-Id: I8daa686df3a05158f59b33546397b23a494d5ab1
Since pbr already landed and the old version of hacking seems not
work very well with pbr>=2, we should update it to match global
requirement.
Partial-Bug: #1668848
Change-Id: Icb9b8708b37abd48ff66db34b46429efe33a635f
Library `requests` can handle files, pipes, dictionaries and iterators
as `data` argument.
Use 'json' argument to send json requests.
Rewrite some unittests using mock.
Change-Id: I95b71eb2716dc57708ed105659ffece376bd8344
This patch
* changes artifact version option from -v to -V for all blob commands
* adds option -C for setting custom content-type for blob uploading
* removes unnecessary possibility for setting content-type for
external locations
Change-Id: I2f51ce588db3f88d9309081a3d52541a45746d88
Added the ability to access by name of the artifact.
To access the artifacts by 'id' must specify the appropriate flag.
Change-Id: I776cd8cb0c15fb58891ae7f06d1c1272a4f3478c
* Added support for short argument, for example --limit/-l;
* Do not need to specify a value after "--progress";
* Fix "unsupported operand type(s) for -=: 'unicode' and 'int'"
when set invalid value of 'limit'.
Change-Id: Ifdf7b99f292b4eb3434d9786e8acd662acb36b7d