Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Arnaud Véron
slapos.core
Commits
a630757b
Commit
a630757b
authored
12 years ago
by
Łukasz Nowak
Browse files
Options
Download
Email Patches
Plain Diff
Skip tests as future is undecided yet.
parent
895da589
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletion
+12
-1
master/bt5/vifib_slapos_rest_api_v1_test/TestTemplateItem/testVifibSlaposRestAPIV1.py
..._api_v1_test/TestTemplateItem/testVifibSlaposRestAPIV1.py
+11
-0
master/bt5/vifib_slapos_rest_api_v1_test/bt/revision
master/bt5/vifib_slapos_rest_api_v1_test/bt/revision
+1
-1
No files found.
master/bt5/vifib_slapos_rest_api_v1_test/TestTemplateItem/testVifibSlaposRestAPIV1.py
View file @
a630757b
...
...
@@ -12,6 +12,8 @@ from App.Common import rfc1123_date
from
DateTime
import
DateTime
import
time
from
Products.ERP5Type.tests.backportUnittest
import
skip
class
Simulator
:
def
__init__
(
self
,
outfile
,
method
):
self
.
outfile
=
outfile
...
...
@@ -169,6 +171,7 @@ class VifibSlaposRestAPIV1Mixin(VifibSlaposRestAPIV1MixinBase):
set
([
str
])
)
@
skip
(
'Undecided.'
)
class
TestInstanceRequest
(
VifibSlaposRestAPIV1Mixin
):
def
test_not_logged_in
(
self
):
self
.
connection
.
request
(
method
=
'POST'
,
...
...
@@ -456,6 +459,7 @@ class TestInstanceRequest(VifibSlaposRestAPIV1Mixin):
self
.
assertPersonRequestSimulatorEmpty
()
# and with correct ones are set by default
@
skip
(
'Undecided.'
)
class
TestInstanceOPTIONS
(
VifibSlaposRestAPIV1Mixin
):
def
test_OPTIONS_not_logged_in
(
self
):
self
.
connection
=
CustomHeaderHTTPConnection
(
host
=
self
.
api_netloc
,
...
...
@@ -470,6 +474,7 @@ class TestInstanceOPTIONS(VifibSlaposRestAPIV1Mixin):
self
.
assertResponseNoContentType
()
self
.
assertPersonRequestSimulatorEmpty
()
@
skip
(
'Undecided.'
)
class
VifibSlaposRestAPIV1InstanceMixin
(
VifibSlaposRestAPIV1Mixin
):
def
afterSetUp
(
self
):
VifibSlaposRestAPIV1Mixin
.
afterSetUp
(
self
)
...
...
@@ -515,6 +520,7 @@ class VifibSlaposRestAPIV1InstanceMixin(VifibSlaposRestAPIV1Mixin):
software_instance
.
recursiveImmediateReindexObject
()
transaction
.
commit
()
@
skip
(
'Undecided.'
)
class
TestInstanceGET
(
VifibSlaposRestAPIV1InstanceMixin
):
def
test_non_existing
(
self
):
non_existing
=
'software_instance_module/'
+
self
.
generateNewId
()
...
...
@@ -723,6 +729,7 @@ class TestInstanceGET(VifibSlaposRestAPIV1InstanceMixin):
self
.
assertBasicResponse
()
self
.
assertResponseCode
(
404
)
@
skip
(
'Undecided.'
)
class
TestInstanceGETcertificate
(
VifibSlaposRestAPIV1InstanceMixin
):
def
test
(
self
):
self
.
connection
.
request
(
method
=
'GET'
,
...
...
@@ -817,6 +824,7 @@ class VifibSlaposRestAPIV1BangMixin(VifibSlaposRestAPIV1InstanceMixin):
[{
'recargs'
:
args
,
'reckwargs'
:
kwargs
,
'recmethod'
:
'bang'
}])
@
skip
(
'Undecided.'
)
class
TestInstancePOSTbang
(
VifibSlaposRestAPIV1BangMixin
):
def
test
(
self
):
kwargs
=
{
'log'
:
'This is cool log!'
,
'bang_tree'
:
True
}
...
...
@@ -975,6 +983,7 @@ class TestInstancePOSTbang(VifibSlaposRestAPIV1BangMixin):
self
.
assertEqual
({
'log'
:
'bool is not unicode.'
},
self
.
json_response
)
self
.
assertInstanceBangSimulatorEmpty
()
@
skip
(
'Undecided.'
)
class
TestInstancePUT
(
VifibSlaposRestAPIV1InstanceMixin
):
def
afterSetUp
(
self
):
super
(
TestInstancePUT
,
self
).
afterSetUp
()
...
...
@@ -1142,6 +1151,7 @@ class TestInstancePUT(VifibSlaposRestAPIV1InstanceMixin):
self
.
assertResponseCode
(
204
)
self
.
assertInstancePUTSimulatorEmpty
()
@
skip
(
'Undecided.'
)
class
TestInstanceGETlist
(
VifibSlaposRestAPIV1InstanceMixin
):
def
assertLastModifiedHeader
(
self
):
calculated
=
rfc1123_date
(
self
.
portal
.
software_instance_module
\
...
...
@@ -1285,6 +1295,7 @@ class TestInstanceGETlist(VifibSlaposRestAPIV1InstanceMixin):
self
.
assertTrue
(
'Bearer realm="'
in
auth
)
self
.
assertPersonRequestSimulatorEmpty
()
@
skip
(
'Undecided.'
)
class
TestComputerPUT
(
VifibSlaposRestAPIV1MixinBase
):
def
createComputer
(
self
):
computer
=
self
.
cloneByPath
(
...
...
This diff is collapsed.
Click to expand it.
master/bt5/vifib_slapos_rest_api_v1_test/bt/revision
View file @
a630757b
77
\ No newline at end of file
78
\ No newline at end of file
This diff is collapsed.
Click to expand it.
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