Skip to content

Commit 242ebc6

Browse files
simahawkyankinmax
authored andcommitted
endpoint_auth_api_key: mute http logger to avoid warning
1 parent 9ad0823 commit 242ebc6

4 files changed

Lines changed: 32 additions & 22 deletions

File tree

endpoint_auth_api_key/README.rst

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
.. image:: https://odoo-community.org/readme-banner-image
2+
:target: https://odoo-community.org/get-involved?utm_source=readme
3+
:alt: Odoo Community Association
4+
15
=====================
26
Endpoint Auth API key
37
=====================
@@ -7,23 +11,23 @@ Endpoint Auth API key
711
!! This file is generated by oca-gen-addon-readme !!
812
!! changes will be overwritten. !!
913
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10-
!! source digest: sha256:1765cc31393e134a1815e257272bd7ecd1eb57e4bb56f7a4f2098f47283fc2e9
14+
!! source digest: sha256:7f4405caa66c95bc121c5a7c02deb181de4c6593d5f6260f581c8ea956be2fb1
1115
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
1216
1317
.. |badge1| image:: https://img.shields.io/badge/maturity-Alpha-red.png
1418
:target: https://odoo-community.org/page/development-status
1519
:alt: Alpha
16-
.. |badge2| image:: https://img.shields.io/badge/licence-LGPL--3-blue.png
20+
.. |badge2| image:: https://img.shields.io/badge/license-LGPL--3-blue.png
1721
:target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
1822
:alt: License: LGPL-3
1923
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fweb--api-lightgray.png?logo=github
20-
:target: https://github.com/OCA/web-api/tree/17.0/endpoint_auth_api_key
24+
:target: https://github.com/OCA/web-api/tree/18.0/endpoint_auth_api_key
2125
:alt: OCA/web-api
2226
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23-
:target: https://translation.odoo-community.org/projects/web-api-17-0/web-api-17-0-endpoint_auth_api_key
27+
:target: https://translation.odoo-community.org/projects/web-api-18-0/web-api-18-0-endpoint_auth_api_key
2428
:alt: Translate me on Weblate
2529
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
26-
:target: https://runboat.odoo-community.org/builds?repo=OCA/web-api&target_branch=17.0
30+
:target: https://runboat.odoo-community.org/builds?repo=OCA/web-api&target_branch=18.0
2731
:alt: Try me on Runboat
2832

2933
|badge1| |badge2| |badge3| |badge4| |badge5|
@@ -46,7 +50,7 @@ Bug Tracker
4650
Bugs are tracked on `GitHub Issues <https://github.com/OCA/web-api/issues>`_.
4751
In case of trouble, please check there if your issue has already been reported.
4852
If you spotted it first, help us to smash it by providing a detailed and welcomed
49-
`feedback <https://github.com/OCA/web-api/issues/new?body=module:%20endpoint_auth_api_key%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
53+
`feedback <https://github.com/OCA/web-api/issues/new?body=module:%20endpoint_auth_api_key%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
5054

5155
Do not contact contributors directly about support or help with technical issues.
5256

@@ -94,6 +98,6 @@ Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:
9498

9599
|maintainer-simahawk|
96100

97-
This module is part of the `OCA/web-api <https://github.com/OCA/web-api/tree/17.0/endpoint_auth_api_key>`_ project on GitHub.
101+
This module is part of the `OCA/web-api <https://github.com/OCA/web-api/tree/18.0/endpoint_auth_api_key>`_ project on GitHub.
98102

99103
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

endpoint_auth_api_key/i18n/endpoint_auth_api_key.pot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#
55
msgid ""
66
msgstr ""
7-
"Project-Id-Version: Odoo Server 17.0\n"
7+
"Project-Id-Version: Odoo Server 18.0\n"
88
"Report-Msgid-Bugs-To: \n"
99
"Last-Translator: \n"
1010
"Language-Team: \n"

endpoint_auth_api_key/static/description/index.html

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
55
<meta name="generator" content="Docutils: https://docutils.sourceforge.io/" />
6-
<title>Endpoint Auth API key</title>
6+
<title>README.rst</title>
77
<style type="text/css">
88

99
/*
@@ -360,16 +360,21 @@
360360
</style>
361361
</head>
362362
<body>
363-
<div class="document" id="endpoint-auth-api-key">
364-
<h1 class="title">Endpoint Auth API key</h1>
363+
<div class="document">
365364

365+
366+
<a class="reference external image-reference" href="https://odoo-community.org/get-involved?utm_source=readme">
367+
<img alt="Odoo Community Association" src="https://odoo-community.org/readme-banner-image" />
368+
</a>
369+
<div class="section" id="endpoint-auth-api-key">
370+
<h1>Endpoint Auth API key</h1>
366371
<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
367372
!! This file is generated by oca-gen-addon-readme !!
368373
!! changes will be overwritten. !!
369374
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
370-
!! source digest: sha256:1765cc31393e134a1815e257272bd7ecd1eb57e4bb56f7a4f2098f47283fc2e9
375+
!! source digest: sha256:7f4405caa66c95bc121c5a7c02deb181de4c6593d5f6260f581c8ea956be2fb1
371376
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
372-
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Alpha" src="https://img.shields.io/badge/maturity-Alpha-red.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/lgpl-3.0-standalone.html"><img alt="License: LGPL-3" src="https://img.shields.io/badge/licence-LGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/web-api/tree/17.0/endpoint_auth_api_key"><img alt="OCA/web-api" src="https://img.shields.io/badge/github-OCA%2Fweb--api-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/web-api-17-0/web-api-17-0-endpoint_auth_api_key"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/web-api&amp;target_branch=17.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
377+
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Alpha" src="https://img.shields.io/badge/maturity-Alpha-red.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/lgpl-3.0-standalone.html"><img alt="License: LGPL-3" src="https://img.shields.io/badge/license-LGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/web-api/tree/18.0/endpoint_auth_api_key"><img alt="OCA/web-api" src="https://img.shields.io/badge/github-OCA%2Fweb--api-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/web-api-18-0/web-api-18-0-endpoint_auth_api_key"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/web-api&amp;target_branch=18.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
373378
<p>Provide API key auth for endpoints.</p>
374379
<div class="admonition important">
375380
<p class="first admonition-title">Important</p>
@@ -391,23 +396,23 @@ <h1 class="title">Endpoint Auth API key</h1>
391396
</ul>
392397
</div>
393398
<div class="section" id="bug-tracker">
394-
<h1><a class="toc-backref" href="#toc-entry-1">Bug Tracker</a></h1>
399+
<h2><a class="toc-backref" href="#toc-entry-1">Bug Tracker</a></h2>
395400
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/web-api/issues">GitHub Issues</a>.
396401
In case of trouble, please check there if your issue has already been reported.
397402
If you spotted it first, help us to smash it by providing a detailed and welcomed
398-
<a class="reference external" href="https://github.com/OCA/web-api/issues/new?body=module:%20endpoint_auth_api_key%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
403+
<a class="reference external" href="https://github.com/OCA/web-api/issues/new?body=module:%20endpoint_auth_api_key%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
399404
<p>Do not contact contributors directly about support or help with technical issues.</p>
400405
</div>
401406
<div class="section" id="credits">
402-
<h1><a class="toc-backref" href="#toc-entry-2">Credits</a></h1>
407+
<h2><a class="toc-backref" href="#toc-entry-2">Credits</a></h2>
403408
<div class="section" id="authors">
404-
<h2><a class="toc-backref" href="#toc-entry-3">Authors</a></h2>
409+
<h3><a class="toc-backref" href="#toc-entry-3">Authors</a></h3>
405410
<ul class="simple">
406411
<li>Camptocamp</li>
407412
</ul>
408413
</div>
409414
<div class="section" id="contributors">
410-
<h2><a class="toc-backref" href="#toc-entry-4">Contributors</a></h2>
415+
<h3><a class="toc-backref" href="#toc-entry-4">Contributors</a></h3>
411416
<ul>
412417
<li><p class="first">Simone Orsi &lt;<a class="reference external" href="mailto:simone.orsi&#64;camptocamp.com">simone.orsi&#64;camptocamp.com</a>&gt;</p>
413418
</li>
@@ -421,12 +426,12 @@ <h2><a class="toc-backref" href="#toc-entry-4">Contributors</a></h2>
421426
</ul>
422427
</div>
423428
<div class="section" id="other-credits">
424-
<h2><a class="toc-backref" href="#toc-entry-5">Other credits</a></h2>
429+
<h3><a class="toc-backref" href="#toc-entry-5">Other credits</a></h3>
425430
<p>The migration of this module from 14.0 to 16.0 was financially supported
426431
by Camptocamp</p>
427432
</div>
428433
<div class="section" id="maintainers">
429-
<h2><a class="toc-backref" href="#toc-entry-6">Maintainers</a></h2>
434+
<h3><a class="toc-backref" href="#toc-entry-6">Maintainers</a></h3>
430435
<p>This module is maintained by the OCA.</p>
431436
<a class="reference external image-reference" href="https://odoo-community.org">
432437
<img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" />
@@ -436,10 +441,11 @@ <h2><a class="toc-backref" href="#toc-entry-6">Maintainers</a></h2>
436441
promote its widespread use.</p>
437442
<p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainer</a>:</p>
438443
<p><a class="reference external image-reference" href="https://github.com/simahawk"><img alt="simahawk" src="https://github.com/simahawk.png?size=40px" /></a></p>
439-
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/web-api/tree/17.0/endpoint_auth_api_key">OCA/web-api</a> project on GitHub.</p>
444+
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/web-api/tree/18.0/endpoint_auth_api_key">OCA/web-api</a> project on GitHub.</p>
440445
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
441446
</div>
442447
</div>
443448
</div>
449+
</div>
444450
</body>
445451
</html>

endpoint_auth_api_key/tests/test_endpoint_controller.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def _make_request(self, route, api_key=None, headers=None):
3737
headers.update({"API-KEY": api_key.key})
3838
return requests.get(self._make_url(route), headers=headers, timeout=60)
3939

40-
@mute_logger("odoo.addons.auth_api_key.models.ir_http")
40+
@mute_logger("odoo.addons.auth_api_key.models.ir_http", "odoo.http")
4141
def test_call_no_key(self):
4242
route = "/demo/api/key"
4343
response = self._make_request(route)

0 commit comments

Comments
 (0)