The ara-clients standalone repository is being discontinued.
The clear and logical separation of components was nice but the overhead
in complexity was not worth it.
Change-Id: I345dfa25c049d7e3874a8f502156c857df44c734
There are new jobs defined in ara-infra for testing ara-clients with
the other ARA components. Add them to the check and gate pipelines.
Depends-On: https://review.openstack.org/#/c/630303
Change-Id: Ia2353c3a20896242d173405457787a5dd29ac5e0
Attempting to do something more fancy lead the method to instanciate
both clients, let's not do that.
Change-Id: I0c8abc48ce146fe7dec592779b4cd07dedcc3bd8
This pep8 job is running py2 and is returning syntax errors on py3
f-strings. We'll standardize on the same linters job across ara
projects soon.
Change-Id: I2ef4578aeeb262c971fc18a6754c06cda95df67d
Handling this ahead of time instead of through exception handling
increases the odds of a friendlier error message.
Change-Id: Ie4c995e3b124d1f0ba51fb5f46c77179b03b6c26
Python requests accepts GET query parameters (?foo=bar&bar=foo) inside
the "params" key of the request.
Change-Id: Ia493819c48ec907bb6fb9454dea95e4fe62ef03a
This resolves an exception by pbr when Ansible attempts to load the
client:
"""
Versioning for this project requires either an sdist tarball,
or access to an upstream git repository. It's also possible that
there is a mismatch between the package name in setup.cfg and
the argument given to pbr.version.VersionInfo. Project name
ara.clients.http was given, but was not able to be found.
"""
Change-Id: Id56bf0909d17259313307d433a6104fe02e0215e
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
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
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
- 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
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
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