Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
engine-api
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AURA
engine-api
Commits
7b794630
Commit
7b794630
authored
4 years ago
by
David Trattnig
Browse files
Options
Downloads
Patches
Plain Diff
Improved server section.
parent
95188985
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
api/engine.yaml
+15
-2
15 additions, 2 deletions
api/engine.yaml
src/test/test_internal_controller.py
+2
-2
2 additions, 2 deletions
src/test/test_internal_controller.py
src/test/test_public_controller.py
+3
-3
3 additions, 3 deletions
src/test/test_public_controller.py
with
20 additions
and
7 deletions
api/engine.yaml
+
15
−
2
View file @
7b794630
...
...
@@ -9,8 +9,21 @@ info:
url
:
https://www.gnu.org/licenses/agpl-3.0.en.html
version
:
1.0.0
servers
:
-
url
:
https://virtserver.swaggerhub.com/AURA-Engine/engine-api/1.0.0
description
:
SwaggerHub API Auto Mocking
-
url
:
'
{protocol}://{api-host}:{port}/api/{version}'
description
:
Engine API
variables
:
protocol
:
default
:
http
enum
:
-
http
-
https
api-host
:
description
:
Hostname or IP for API Host
default
:
localhost
port
:
default
:
"
8008"
version
:
default
:
v1
tags
:
-
name
:
public
description
:
Operations available to the public
...
...
This diff is collapsed.
Click to expand it.
src/test/test_internal_controller.py
+
2
−
2
View file @
7b794630
...
...
@@ -19,7 +19,7 @@ class TestInternalController(BaseTestCase):
Get active engine
"""
response
=
self
.
client
.
open
(
'
/
AURA-Engine/engine-api/1.0.0/
status/active
'
,
'
/status/active
'
,
method
=
'
GET
'
)
self
.
assert200
(
response
,
'
Response body is :
'
+
response
.
data
.
decode
(
'
utf-8
'
))
...
...
@@ -30,7 +30,7 @@ class TestInternalController(BaseTestCase):
Report for one month
"""
response
=
self
.
client
.
open
(
'
/
AURA-Engine/engine-api/1.0.0/
report/{year_month}
'
.
format
(
year_month
=
'
year_month_example
'
),
'
/report/{year_month}
'
.
format
(
year_month
=
'
year_month_example
'
),
method
=
'
GET
'
)
self
.
assert200
(
response
,
'
Response body is :
'
+
response
.
data
.
decode
(
'
utf-8
'
))
...
...
This diff is collapsed.
Click to expand it.
src/test/test_public_controller.py
+
3
−
3
View file @
7b794630
...
...
@@ -18,7 +18,7 @@ class TestPublicController(BaseTestCase):
Get current track
"""
response
=
self
.
client
.
open
(
'
/
AURA-Engine/engine-api/1.0.0/
trackservice/current
'
,
'
/trackservice/current
'
,
method
=
'
GET
'
)
self
.
assert200
(
response
,
'
Response body is :
'
+
response
.
data
.
decode
(
'
utf-8
'
))
...
...
@@ -29,7 +29,7 @@ class TestPublicController(BaseTestCase):
Get a single track by ID
"""
response
=
self
.
client
.
open
(
'
/
AURA-Engine/engine-api/1.0.0/
trackservice/{trackId}
'
.
format
(
track_id
=
56
),
'
/trackservice/{trackId}
'
.
format
(
track_id
=
56
),
method
=
'
GET
'
)
self
.
assert200
(
response
,
'
Response body is :
'
+
response
.
data
.
decode
(
'
utf-8
'
))
...
...
@@ -42,7 +42,7 @@ class TestPublicController(BaseTestCase):
query_string
=
[(
'
offset
'
,
56
),
(
'
limit
'
,
50
)]
response
=
self
.
client
.
open
(
'
/
AURA-Engine/engine-api/1.0.0/
trackservice
'
,
'
/trackservice
'
,
method
=
'
GET
'
,
query_string
=
query_string
)
self
.
assert200
(
response
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment