Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Simon János
/
orchestrator
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
A prog2-höz tartozó friss repo anyagok itt elérhetőek:
https://git.iit.bme.hu/
Commit
6e4f4ff0
authored
Nov 19, 2016
by
Simon János
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor refactor
parent
f02141dd
Pipeline
#292
passed with stage
in 54 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
orchestrator/api/stacks.py
+1
-1
tests/test_api.py
+2
-2
No files found.
orchestrator/api/stacks.py
View file @
6e4f4ff0
...
@@ -64,7 +64,7 @@ class LoggingMiddleware(object):
...
@@ -64,7 +64,7 @@ class LoggingMiddleware(object):
def
process_request
(
self
,
request
,
*
_
):
def
process_request
(
self
,
request
,
*
_
):
self
.
logger
.
info
(
'Request received:
%
s
%
s'
,
request
.
method
,
request
.
path
)
self
.
logger
.
info
(
'Request received:
%
s
%
s'
,
request
.
method
,
request
.
path
)
def
process_response
(
self
,
_
,
response
,
*
_
_
):
def
process_response
(
self
,
_
request
,
response
,
*
_
):
if
response
.
body
:
if
response
.
body
:
self
.
logger
.
info
(
'Sending response (
%
s):
%
s'
,
response
.
status
,
response
.
body
)
self
.
logger
.
info
(
'Sending response (
%
s):
%
s'
,
response
.
status
,
response
.
body
)
...
...
tests/test_api.py
View file @
6e4f4ff0
...
@@ -6,9 +6,9 @@ from falcon.testing import TestCase
...
@@ -6,9 +6,9 @@ from falcon.testing import TestCase
from
orchestrator.api
import
stacks
from
orchestrator.api
import
stacks
class
Stack
sController
Test
(
TestCase
):
class
StackTest
(
TestCase
):
def
setUp
(
self
):
def
setUp
(
self
):
super
(
Stack
sController
Test
,
self
)
.
setUp
()
super
(
StackTest
,
self
)
.
setUp
()
self
.
app
=
stacks
.
create_app
()
self
.
app
=
stacks
.
create_app
()
def
test_stacks_api_allowed_methods_on_endpoints
(
self
):
def
test_stacks_api_allowed_methods_on_endpoints
(
self
):
...
...
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