Commit Graph

36 Commits

Author SHA1 Message Date
OpenDev Sysadmins ffce96b24c OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
2019-04-19 19:51:16 +00:00
Feilong Wang eb0ca20205 Support CLI for /quotations and /invoices
Change-Id: Id064cce235891aa2906a24373b58125fdec5ce6b
2017-11-29 21:42:54 +00:00
Fei Long Wang 78cd424d1a Add region name when getting distil URL
Change-Id: I63dfb47e3c27532c44eff0700c1761382877a37f
2017-10-18 11:57:46 +13:00
Feilong Wang c8066c6115 Support CLI for /health and /products
Change-Id: Ic9e6136e29dde21f9dbf3219ed89bd39e763cd1b
2017-09-21 15:14:17 +12:00
Jenkins 4159748b34 Merge "Fix html_last_updated_fmt for Python3" 2017-07-31 01:51:45 +00:00
Jenkins 4bb89edc91 Merge "Allow InvoiceManager to take datetime values" 2017-07-30 23:56:31 +00:00
Jenkins efbf012a4b Merge "Replace six.iteritems() with .items()" 2017-07-30 23:44:21 +00:00
Jenkins 31e9b0d476 Merge "Replaces uuid.uuid4 with uuidutils.generate_uuid()" 2017-07-30 23:42:33 +00:00
Amelia Cordwell 1904edc3c8 Allow InvoiceManager to take datetime values
Change-Id: I3b353184fdbadcc4fbe81c5a184101cdbde3f833
2017-07-30 23:17:51 +00:00
Feilong Wang a7c836b9dd Add the missing "detailed" parameter
Now the /invoices and /quotations API support 'detailed' parameter
to indicate if needs to return a detailed invoice or quotation. But
the support is missed in client, this patch fixes it.

Change-Id: I9069f0d5715c419e45c93ec89d5b979cda0b7baf
2017-07-27 15:08:37 +12:00
Kiran_totad 0b1f7efefe Replace six.iteritems() with .items()
1.As mentioned in [1], we should avoid using six.iteritems to achieve
iterators. We can use dict.items instead, as it will return iterators
in PY3 as well. And dict.items/keys will more readable.
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: I43d1d93817fa533fdfc68893008a2921eb09ddcf
2017-07-24 08:48:50 +00:00
Kiran_totad 1c982ed19f Replaces uuid.uuid4 with uuidutils.generate_uuid()
Openstack oslo_utils has a generate_uuid function for generating
uuids. We should use that function when generating uuids for
consistency.

Change-Id: Ifa1c63d7c1aa7859458c42cbe6e56245c393c749
2017-07-24 06:54:42 +00:00
Jenkins 3e19ace698 Merge "Support /health and /products API" 2017-07-20 08:47:07 +00:00
Feilong Wang cd548fc2ce Support /health and /products API
Change-Id: I3cfe101a50553af9e2eeae0614becfe4b32984ea
2017-07-18 15:59:54 +12:00
Jenkins cd73c9ad94 Merge "Remove dates from QuotationManger list" 2017-07-13 03:45:46 +00:00
blue55 52b2478cb3 Fix html_last_updated_fmt for Python3
Fix the Sphinx html_last_updated_fmt for Python3. The html_last_updated_fmt
option is interpreted as a byte string in python3, causing Sphinx
build to break. This patch makes it utf-8 string.

Change-Id: Ifb24a14cea59db3efca22ee69961c19db217a55c
2017-07-06 15:19:18 +08:00
Jenkins 0a2df86ff9 Merge "Fix the cover job" 2017-07-06 00:21:28 +00:00
Amelia Cordwell 0e11ec52e7 Remove dates from QuotationManger list
Quotations are always returned for the current month, distil
doesn't take request parameters into account for it. This changes
the manager to adhere to that.

Change-Id: I2bbc6e1033e97370c88396c42d92fbd828592eed
2017-07-05 13:51:52 +12:00
Fei Long Wang 2da9d6d211 Fix the cover job
Change-Id: Ib4ccf1e817cfa1b2848670261f0b9986bf978a26
2017-07-04 04:12:06 +00:00
Feilong Wang 33226737b0 Support /credits API
Currently, Distil supports getting credits of current user. This
patch adds the support for Distil client and test cases are added
together.

Change-Id: Ibbfd4858d205f78de7a3cda8748b130151a1e266
2017-06-20 11:57:00 +12:00
Fei Long Wang dffc18095b Support /invoices and /quotations API
According to the change of Distil API, this patch adds the support for
/invoices and /quotations. And by the way, change the /measurements API
as well. Unit tests are added based on changes.

Change-Id: I251b534a4e4a41a76a3743118010be408116c27a
2017-06-19 05:12:14 +00:00
Feilong Wang 57ec3b1dea Fix py35 and pep8
Distil-UI project is depending on distilclient and now there is a py35
gate failure because disticlient doesn't fully support py3.x. This patch
fixes it and adds some test cases to make sure the change won't break
the functions.

Besides, the patch also fixes some pep8 issues by the way.

Change-Id: Ide043d0fca019cd48796669374dc882311e935a1
2017-06-15 03:57:44 +00:00
Dai Dang Van ec5a553c24 Fix missing dependency for pep8 gate
Reference link: https://cryptography.io/en/latest/installation/#building-cryptography-on-linux

Change-Id: I98c0797124a60276854f9a38ca7d910d9150bb20
2017-06-15 09:29:12 +07:00
Jenkins 4c00f952d5 Merge "Rename `usage` to `measurements`" 2017-04-27 01:46:00 +00:00
Jenkins 7f7a4b06b5 Merge "Add LICENSE" 2017-04-26 02:08:13 +00:00
Fei Long Wang 77f3324058 Rename `usage` to `measurements`
Change-Id: I6bb80fef2befaf76697ca4e88d267f3c3441e356
2017-04-12 14:43:54 +12:00
Fei Long Wang 5efe323171 Update README.rst
Change-Id: Ife13f1ba18d594ab9a7020ce704fa439fc4eb18c
2017-03-02 14:36:36 +13:00
Fei Long Wang 1466c71d0e Support distil V2 API
Change-Id: Id984fe7f0ee8f1f435d1870cbc6a49452e77876c
2017-02-13 16:50:18 +13:00
Tony Xu b4e62df241 Add LICENSE
Change-Id: I342802acd988440f1583a74993880c1865152198
2016-10-12 16:30:26 +08:00
Jenkins 8872e6c4d2 Merge "V3 support for the distil client" 2016-09-22 23:04:43 +00:00
Fei Long Wang 681dec8d79 Fix docs gate failure
Change-Id: I774c54aea5a3704140776d553c99a13d26f510c4
2016-09-22 17:06:32 +12:00
adrian-turjak 4aef29aae2 V3 support for the distil client
Changes to support V3 and session objects.

Change-Id: I41b7026e02d794f7c5165d74922e0f5d5061f039
2016-09-05 12:25:19 +12:00
Andreas Jaeger ea1802f965 Move other-requirements.txt to bindep.txt
The default filename for documenting binary dependencies has been
changed from "other-requirements.txt" to "bindep.txt" with the release
of bindep 2.1.0. While the previous name is still supported, it will
be deprecated.

Move the file around to follow this change.

Note that this change is self-testing, the OpenStack CI infrastructure
will use a "bindep.txt" file to setup nodes for testing.

For more information about bindep, see also:
http://docs.openstack.org/infra/manual/drivers.html#package-requirements
http://docs.openstack.org/infra/bindep/

As well as this announcement:
http://lists.openstack.org/pipermail/openstack-dev/2016-August/101590.html

Change-Id: I01eba6b1f45a7f42ef9d27fed30be0386788a863
2016-08-12 21:13:42 +02:00
Andreas Jaeger 7b65ec8d75 List system dependencies for running common tests
Add an other-requirements.txt file containing a cross-platform list
of dependencies needed for running included tox-based tests. Also
include a tox environment for convenience calling the bindep[*]
utility to list any missing system requirements.

This change is self-testing.

For other-requirements.txt see also
http://docs.openstack.org/infra/manual/drivers.html#package-requirements

[*] http://docs.openstack.org/infra/bindep/

Change-Id: Ic3f502f358e4f2cef8f980417eba79729fbfc41b
2016-06-29 09:24:57 +02:00
Fei Long Wang 4b7f8361a1 Init commit for distil client
Change-Id: I335b53edb9b1d2d9d7615fb8d7cec71b653c6ace
2016-06-14 11:38:50 +12:00
OpenStack Project Creator d62eee5ce9 Added .gitreview 2016-06-05 20:44:50 +00:00