Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Romain Courteaud
slapos.core
Commits
5c4c60c9
Commit
5c4c60c9
authored
Nov 22, 2024
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_json_rpc_api: rename test
parent
0396a7e1
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
9 deletions
+9
-9
master/bt5/erp5_json_rpc_api/TestTemplateItem/portal_components/test.erp5.testJsonRpcAPIService.py
...Item/portal_components/test.erp5.testJsonRpcAPIService.py
+6
-6
master/bt5/erp5_json_rpc_api/TestTemplateItem/portal_components/test.erp5.testJsonRpcAPIService.xml
...tem/portal_components/test.erp5.testJsonRpcAPIService.xml
+2
-2
master/bt5/erp5_json_rpc_api/bt/template_test_id_list
master/bt5/erp5_json_rpc_api/bt/template_test_id_list
+1
-1
No files found.
master/bt5/erp5_json_rpc_api/TestTemplateItem/portal_components/test.erp5.test
Open
APIService.py
→
master/bt5/erp5_json_rpc_api/TestTemplateItem/portal_components/test.erp5.test
JsonRpc
APIService.py
View file @
5c4c60c9
...
...
@@ -44,7 +44,7 @@ except ImportError:
from
Products.ERP5Type.tests.ERP5TypeTestCase
import
ERP5TypeTestCase
class
Open
APITestCase
(
ERP5TypeTestCase
):
class
JsonRpc
APITestCase
(
ERP5TypeTestCase
):
_type_id
=
NotImplemented
# type: str
_open_api_schema
=
NotImplemented
# type: str
_open_api_schema_content_type
=
'application/json'
...
...
@@ -112,7 +112,7 @@ class OpenAPITestCase(ERP5TypeTestCase):
self
.
portal
.
changeSkin
(
None
)
class
OpenAPIPetStoreTestCase
(
Open
APITestCase
):
class
OpenAPIPetStoreTestCase
(
JsonRpc
APITestCase
):
_type_id
=
'Test Pet Store Open API'
@
property
...
...
@@ -379,7 +379,7 @@ class TestOpenAPIServicePetController(OpenAPIPetStoreTestCase):
@
unittest
.
skipIf
(
yaml
is
None
,
'PyYAML is required for yaml tests'
)
class
TestOpenAPIServiceYaml
(
Open
APITestCase
):
class
TestOpenAPIServiceYaml
(
JsonRpc
APITestCase
):
_type_id
=
'Test Open API YAML'
_open_api_schema_content_type
=
'application/x-yaml'
_open_api_schema
=
'''
...
...
@@ -410,7 +410,7 @@ paths:
self
.
assertEqual
(
response
.
getStatus
(),
200
)
class
TestPathParameterSerialization
(
Open
APITestCase
):
class
TestPathParameterSerialization
(
JsonRpc
APITestCase
):
_type_id
=
'Test Open API Parameter Serialization'
@
property
...
...
@@ -507,7 +507,7 @@ class TestPathParameterSerialization(OpenAPITestCase):
self
.
assertEqual
(
response
.
getStatus
(),
200
)
class
TestQueryParameterSerialization
(
Open
APITestCase
):
class
TestQueryParameterSerialization
(
JsonRpc
APITestCase
):
_type_id
=
'Test Open API Parameter Serialization'
@
property
...
...
@@ -1251,7 +1251,7 @@ class TestURLPathWithWebSiteAndVirtualHost(OpenAPIPetStoreTestCase):
self
.
assertEqual
(
response
.
getBody
(),
b'"ok"'
)
class
TestOpenAPIRequestBody
(
Open
APITestCase
):
class
TestOpenAPIRequestBody
(
JsonRpc
APITestCase
):
_type_id
=
'Test Open API Request Body'
_open_api_schema
=
json
.
dumps
(
...
...
master/bt5/erp5_json_rpc_api/TestTemplateItem/portal_components/test.erp5.test
Open
APIService.xml
→
master/bt5/erp5_json_rpc_api/TestTemplateItem/portal_components/test.erp5.test
JsonRpc
APIService.xml
View file @
5c4c60c9
...
...
@@ -8,7 +8,7 @@
<dictionary>
<item>
<key>
<string>
default_reference
</string>
</key>
<value>
<string>
test
Open
APIService
</string>
</value>
<value>
<string>
test
JsonRpc
APIService
</string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
...
...
@@ -18,7 +18,7 @@
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
test.erp5.test
Open
APIService
</string>
</value>
<value>
<string>
test.erp5.test
JsonRpc
APIService
</string>
</value>
</item>
<item>
<key>
<string>
sid
</string>
</key>
...
...
master/bt5/erp5_json_rpc_api/bt/template_test_id_list
View file @
5c4c60c9
test.erp5.testOpenAPIService
\ No newline at end of file
test.erp5.testJsonRpcAPIService
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment