summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
6 hoursRemove debug line before initiating requestHEADmasterDavid Moreau Simard
The debug log are already a bit chatty, we don't need this particular line because we're getting the result right after with another debug line. Change-Id: I1d60f90cae9db896d4bceaf3f7211597ad8242f3 Notes (review): Code-Review+2: David Moreau Simard <dmsimard@redhat.com> Workflow+1: David Moreau Simard <dmsimard@redhat.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Wed, 14 Nov 2018 21:06:22 +0000 Reviewed-on: https://review.openstack.org/618009 Project: openstack/ara-clients Branch: refs/heads/master
10 daysSwitched the offline client to use an actual threaded http server.Florian Apolloner
Sadly it has no support for keep-alive, gotta see if we can use a different server. Either way, this should be prefered over the usage of Django's TestClient since it has the exact same request flow like a normal client would have. Change-Id: Ic7065ffbe260701728e9d01213fe3a0fd5f0a6d2 Notes (review): Code-Review+2: David Moreau Simard <dmsimard@redhat.com> Workflow+1: David Moreau Simard <dmsimard@redhat.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Mon, 05 Nov 2018 17:08:17 +0000 Reviewed-on: https://review.openstack.org/615439 Project: openstack/ara-clients Branch: refs/heads/master
2018-10-02Add zuul job to run tox-format environment for executing black and isortDavid Moreau Simard
This will allow us to have more consistent and clean code. Change-Id: I8a49053d016c52b7b44136a6a8f36f9ad12675c3 Notes (review): Code-Review+2: David Moreau Simard <dmsimard@redhat.com> Workflow+1: David Moreau Simard <dmsimard@redhat.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Wed, 03 Oct 2018 14:30:21 +0000 Reviewed-on: https://review.openstack.org/607374 Project: openstack/ara-clients Branch: refs/heads/master
2018-10-02Run black/isort on ara-clientsDavid Moreau Simard
There will be a follow up patch to add black/isort CI. Change-Id: I8f16ad01d9a7c986b12a543ff351cbf17a0df70d Notes (review): Code-Review+2: David Moreau Simard <dmsimard@redhat.com> Workflow+1: David Moreau Simard <dmsimard@redhat.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Wed, 03 Oct 2018 14:29:07 +0000 Reviewed-on: https://review.openstack.org/607373 Project: openstack/ara-clients Branch: refs/heads/master
2018-09-28Add requests to requirements.txtDavid Moreau Simard
It was forgotten when adding in the http client and ara-clients no longer worked when we started not installing ara/ara-server for nothing. Change-Id: I056d1a2822cddb2a6058a86fa5cccef8e810ee2e Notes (review): Code-Review+2: David Moreau Simard <dmsimard@redhat.com> Workflow+1: David Moreau Simard <dmsimard@redhat.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Sat, 29 Sep 2018 14:46:19 +0000 Reviewed-on: https://review.openstack.org/606218 Project: openstack/ara-clients Branch: refs/heads/master
2018-09-28Dropped hard dependency to ara-server.Florian Apolloner
It is only required for the offline client. Change-Id: I80c66bcc097150cd23e48c2a2cfca7139e0c8e66 Notes (review): Code-Review+2: David Moreau Simard <dmsimard@redhat.com> Workflow+1: David Moreau Simard <dmsimard@redhat.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Fri, 28 Sep 2018 23:20:49 +0000 Reviewed-on: https://review.openstack.org/606082 Project: openstack/ara-clients Branch: refs/heads/master
2018-09-27Fixed namespacing to use python3 style namespace packages.Florian Apolloner
Note: the egg name is not allowed to have a dash, because that is interpreted as version by at least pbr. See https://pip.pypa.io/en/stable/reference/pip_install/#vcs-support Change-Id: Ib6666e4aee84a54050a5788de1c12ca36aa130ce Notes (review): Code-Review+2: David Moreau Simard <dmsimard@redhat.com> Workflow+1: David Moreau Simard <dmsimard@redhat.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Fri, 28 Sep 2018 03:27:08 +0000 Reviewed-on: https://review.openstack.org/605819 Project: openstack/ara-clients Branch: refs/heads/master
2018-09-20Add version of the http agent to the user agent stringDavid Moreau Simard
Change-Id: I61e85899be88788edc9091dd81f7cef3e8fa94a0 Notes (review): Code-Review+2: David Moreau Simard <dmsimard@redhat.com> Workflow+1: David Moreau Simard <dmsimard@redhat.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Tue, 25 Sep 2018 20:32:51 +0000 Reviewed-on: https://review.openstack.org/604177 Project: openstack/ara-clients Branch: refs/heads/master
2018-09-20Streamline how payloads are passed back and forth in the http clientDavid Moreau Simard
- Set default headers through requests.session - Set timeout explicitely - GET parameters need to be passed as "params" - Don't send empty GET parameters - POST/PUT/PATCH parameters need to be passed as "data" - DELETE doesn't expect any parameters Change-Id: Icc1d821501a160be10975333accc6b791b6f058f Notes (review): Code-Review+2: David Moreau Simard <dmsimard@redhat.com> Workflow+1: David Moreau Simard <dmsimard@redhat.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Tue, 25 Sep 2018 20:30:58 +0000 Reviewed-on: https://review.openstack.org/604176 Project: openstack/ara-clients Branch: refs/heads/master
2018-09-12Move django import and initialization inside the offline client classDavid Moreau Simard
This allows to import the class without triggering the import and initialization of django and instead deferring it to when (and if) the class is instanciated. Change-Id: I79be90eb877f21b5254f116e51cc78b310c8674c Notes (review): Code-Review+2: David Moreau Simard <dmsimard@redhat.com> Workflow+1: David Moreau Simard <dmsimard@redhat.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Wed, 12 Sep 2018 19:11:53 +0000 Reviewed-on: https://review.openstack.org/602028 Project: openstack/ara-clients Branch: refs/heads/master
2018-09-12Add first iteration of http clientDavid Moreau Simard
The offline client is ideal for running offline and locally. The http client uses requests to do actual http requests to an API server. Change-Id: I2b1ed6068ab547d55237b3f9ff7150935232caa6 Notes (review): Code-Review+2: David Moreau Simard <dmsimard@redhat.com> Workflow+1: David Moreau Simard <dmsimard@redhat.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Wed, 12 Sep 2018 19:10:11 +0000 Reviewed-on: https://review.openstack.org/602024 Project: openstack/ara-clients Branch: refs/heads/master
2018-06-25Handle HTTP errors >= 500 and handle HTTP 204 on deleteDavid Moreau Simard
Change-Id: Ie39355274a75e31142920db3810ff2d78f53a48f Notes (review): Code-Review+2: David Moreau Simard <dmsimard@redhat.com> Workflow+1: David Moreau Simard <dmsimard@redhat.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Mon, 25 Jun 2018 22:47:51 +0000 Reviewed-on: https://review.openstack.org/577844 Project: openstack/ara-clients Branch: refs/heads/master
2018-06-25Only run the Django bootstrapping once in the offline clientDavid Moreau Simard
Change-Id: Idcf388a8dbeef418400546078a78d8d8620dc950 Notes (review): Code-Review+2: David Moreau Simard <dmsimard@redhat.com> Workflow+1: David Moreau Simard <dmsimard@redhat.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Mon, 25 Jun 2018 22:47:50 +0000 Reviewed-on: https://review.openstack.org/577843 Project: openstack/ara-clients Branch: refs/heads/master
2018-06-25Add helper method to retrieve client instanceDavid Moreau Simard
Change-Id: I0efcf4a9272e70e34dc9c62a963484583628cacc Notes (review): Code-Review+2: David Moreau Simard <dmsimard@redhat.com> Workflow+1: David Moreau Simard <dmsimard@redhat.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Mon, 25 Jun 2018 22:47:49 +0000 Reviewed-on: https://review.openstack.org/577842 Project: openstack/ara-clients Branch: refs/heads/master
2018-06-20Don't pass kwargs to the client if there isn't anyDavid Moreau Simard
This resolves an issue where doing a request (i.e, GET) without kwargs would fail. Change-Id: Iac5be67bd1a558701c0ac0dbca50e5284730bebe Notes (review): Code-Review+2: David Moreau Simard <dmsimard@redhat.com> Workflow+1: David Moreau Simard <dmsimard@redhat.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Wed, 20 Jun 2018 15:14:20 +0000 Reviewed-on: https://review.openstack.org/576882 Project: openstack/ara-clients Branch: refs/heads/master
2018-06-20Rename offline client class and fix django bootstrapDavid Moreau Simard
Wrong method name was used when bootstrapping django. Change-Id: Iee112e465daaa7e108fb12999374f4da569411a8 Notes (review): Code-Review+2: David Moreau Simard <dmsimard@redhat.com> Workflow+1: David Moreau Simard <dmsimard@redhat.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Wed, 20 Jun 2018 15:14:19 +0000 Reviewed-on: https://review.openstack.org/576872 Project: openstack/ara-clients Branch: refs/heads/master
2018-06-20Add ara-server to ara-clients requirementsDavid Moreau Simard
The default offline client requires django and the rest of the things. Change-Id: Ice97247a20b0e49c155aac3fc27a67a969a5e570 Notes (review): Code-Review+2: David Moreau Simard <dmsimard@redhat.com> Workflow+1: David Moreau Simard <dmsimard@redhat.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Wed, 20 Jun 2018 14:04:08 +0000 Reviewed-on: https://review.openstack.org/576850 Project: openstack/ara-clients Branch: refs/heads/master
2018-06-20First iteration of the offline API clientDavid Moreau Simard
This is the first iteration of an API client implementation for interacting with the ARA API. Change-Id: Ib64f6e535a70d9ec1cfec2cec0d37780fd509be4 Notes (review): Code-Review+2: David Moreau Simard <dmsimard@redhat.com> Workflow+1: David Moreau Simard <dmsimard@redhat.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Wed, 20 Jun 2018 12:53:37 +0000 Reviewed-on: https://review.openstack.org/576711 Project: openstack/ara-clients Branch: refs/heads/master
2018-06-20Bootstrap the ara-clients repositoryDavid Moreau Simard
This is the basic machinery to make it installable and things like that. Change-Id: I618ae1a8680ec2275fcf813b1efca4fe180fae3f Notes (review): Code-Review+2: David Moreau Simard <dmsimard@redhat.com> Workflow+1: David Moreau Simard <dmsimard@redhat.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Wed, 20 Jun 2018 12:53:36 +0000 Reviewed-on: https://review.openstack.org/576710 Project: openstack/ara-clients Branch: refs/heads/master
2018-03-27Added .gitreviewOpenStack Project Creator