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
0
Merge Requests
0
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
Łukasz Nowak
slapos.core
Commits
5ff4bc74
Commit
5ff4bc74
authored
Oct 29, 2012
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Call testSlapOSMixin after setup to configure the site correctly.
parent
9a6a45f7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
master/bt5/slapos_rest_api/TestTemplateItem/testSlapOSRestAPIV1.py
...5/slapos_rest_api/TestTemplateItem/testSlapOSRestAPIV1.py
+8
-2
master/bt5/slapos_rest_api/bt/revision
master/bt5/slapos_rest_api/bt/revision
+1
-1
No files found.
master/bt5/slapos_rest_api/TestTemplateItem/testSlapOSRestAPIV1.py
View file @
5ff4bc74
...
@@ -66,7 +66,6 @@ class CustomHeaderHTTPConnection(httplib.HTTPConnection):
...
@@ -66,7 +66,6 @@ class CustomHeaderHTTPConnection(httplib.HTTPConnection):
return
httplib
.
HTTPConnection
.
request
(
self
,
*
args
,
**
kwargs
)
return
httplib
.
HTTPConnection
.
request
(
self
,
*
args
,
**
kwargs
)
def
SlapOSRestAPIV1MixinBase_afterSetUp
(
self
):
def
SlapOSRestAPIV1MixinBase_afterSetUp
(
self
):
# self.setupVifibMachineAuthenticationPlugin()
self
.
test_random_id
=
self
.
generateNewId
()
self
.
test_random_id
=
self
.
generateNewId
()
self
.
access_control_allow_headers
=
'some, funny, headers, '
\
self
.
access_control_allow_headers
=
'some, funny, headers, '
\
'always, expected, %s'
%
self
.
test_random_id
'always, expected, %s'
%
self
.
test_random_id
...
@@ -97,7 +96,11 @@ class SlapOSRestAPIV1MixinBase(testSlapOSMixin):
...
@@ -97,7 +96,11 @@ class SlapOSRestAPIV1MixinBase(testSlapOSMixin):
self
.
assertEqual
(
'must-revalidate'
,
self
.
assertEqual
(
'must-revalidate'
,
self
.
response
.
getheader
(
'Cache-Control'
))
self
.
response
.
getheader
(
'Cache-Control'
))
def
_afterSetUp
(
self
):
super
(
SlapOSRestAPIV1MixinBase
,
self
).
afterSetUp
()
def
afterSetUp
(
self
):
def
afterSetUp
(
self
):
self
.
_afterSetUp
()
SlapOSRestAPIV1MixinBase_afterSetUp
(
self
)
SlapOSRestAPIV1MixinBase_afterSetUp
(
self
)
def
beforeTearDown
(
self
):
def
beforeTearDown
(
self
):
...
@@ -129,7 +132,6 @@ class SlapOSRestAPIV1MixinBase(testSlapOSMixin):
...
@@ -129,7 +132,6 @@ class SlapOSRestAPIV1MixinBase(testSlapOSMixin):
def
SlapOSRestAPIV1Mixin_afterSetUp
(
self
):
def
SlapOSRestAPIV1Mixin_afterSetUp
(
self
):
SlapOSRestAPIV1MixinBase_afterSetUp
(
self
)
SlapOSRestAPIV1MixinBase_afterSetUp
(
self
)
# self.setupVifibMachineAuthenticationPlugin()
self
.
person_request_simulator
=
tempfile
.
mkstemp
()[
1
]
self
.
person_request_simulator
=
tempfile
.
mkstemp
()[
1
]
self
.
customer
,
self
.
customer_reference
=
self
.
createPerson
()
self
.
customer
,
self
.
customer_reference
=
self
.
createPerson
()
...
@@ -160,6 +162,7 @@ class SlapOSRestAPIV1Mixin(SlapOSRestAPIV1MixinBase):
...
@@ -160,6 +162,7 @@ class SlapOSRestAPIV1Mixin(SlapOSRestAPIV1MixinBase):
return
customer
,
customer_reference
return
customer
,
customer_reference
def
afterSetUp
(
self
):
def
afterSetUp
(
self
):
self
.
_afterSetUp
()
SlapOSRestAPIV1Mixin_afterSetUp
(
self
)
SlapOSRestAPIV1Mixin_afterSetUp
(
self
)
def
beforeTearDown
(
self
):
def
beforeTearDown
(
self
):
...
@@ -504,6 +507,7 @@ def SlapOSRestAPIV1InstanceMixin_afterSetUp(self):
...
@@ -504,6 +507,7 @@ def SlapOSRestAPIV1InstanceMixin_afterSetUp(self):
class
SlapOSRestAPIV1InstanceMixin
(
SlapOSRestAPIV1Mixin
):
class
SlapOSRestAPIV1InstanceMixin
(
SlapOSRestAPIV1Mixin
):
def
afterSetUp
(
self
):
def
afterSetUp
(
self
):
self
.
_afterSetUp
()
SlapOSRestAPIV1InstanceMixin_afterSetUp
(
self
)
SlapOSRestAPIV1InstanceMixin_afterSetUp
(
self
)
def
assertLastModifiedHeader
(
self
):
def
assertLastModifiedHeader
(
self
):
...
@@ -1012,6 +1016,7 @@ def SlapOSRestAPIV1BangMixin_beforeTearDown(self):
...
@@ -1012,6 +1016,7 @@ def SlapOSRestAPIV1BangMixin_beforeTearDown(self):
class
SlapOSRestAPIV1BangMixin
(
SlapOSRestAPIV1InstanceMixin
):
class
SlapOSRestAPIV1BangMixin
(
SlapOSRestAPIV1InstanceMixin
):
def
afterSetUp
(
self
):
def
afterSetUp
(
self
):
self
.
_afterSetUp
()
SlapOSRestAPIV1BangMixin_afterSetUp
(
self
)
SlapOSRestAPIV1BangMixin_afterSetUp
(
self
)
def
beforeTearDown
(
self
):
def
beforeTearDown
(
self
):
...
@@ -1801,6 +1806,7 @@ class TestComputerPUT(SlapOSRestAPIV1MixinBase):
...
@@ -1801,6 +1806,7 @@ class TestComputerPUT(SlapOSRestAPIV1MixinBase):
class
TestStatusGET
(
SlapOSRestAPIV1InstanceMixin
):
class
TestStatusGET
(
SlapOSRestAPIV1InstanceMixin
):
def
afterSetUp
(
self
):
def
afterSetUp
(
self
):
self
.
_afterSetUp
()
SlapOSRestAPIV1Mixin_afterSetUp
(
self
)
SlapOSRestAPIV1Mixin_afterSetUp
(
self
)
def
createComputer
(
self
):
def
createComputer
(
self
):
...
...
master/bt5/slapos_rest_api/bt/revision
View file @
5ff4bc74
8
9
\ No newline at end of file
\ 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