Commit f1e9e2a2 authored by Romain Courteaud's avatar Romain Courteaud

Mark WIP feature as expectedFailure

parent 81734535
...@@ -11,6 +11,7 @@ import os ...@@ -11,6 +11,7 @@ import os
from App.Common import rfc1123_date from App.Common import rfc1123_date
from DateTime import DateTime from DateTime import DateTime
import time import time
from Products.ERP5Type.tests.backportUnittest import expectedFailure
class Simulator: class Simulator:
def __init__(self, outfile, method): def __init__(self, outfile, method):
...@@ -410,6 +411,7 @@ class TestInstanceRequest(VifibSlaposRestAPIV1Mixin): ...@@ -410,6 +411,7 @@ class TestInstanceRequest(VifibSlaposRestAPIV1Mixin):
self.json_response) self.json_response)
self.assertPersonRequestSimulatorEmpty() self.assertPersonRequestSimulatorEmpty()
@expectedFailure
def test_content_negotiation_headers(self): def test_content_negotiation_headers(self):
self.connection = CustomHeaderHTTPConnection(host=self.api_netloc, self.connection = CustomHeaderHTTPConnection(host=self.api_netloc,
custom_header={ custom_header={
...@@ -651,6 +653,7 @@ class TestInstanceGET(VifibSlaposRestAPIV1InstanceMixin): ...@@ -651,6 +653,7 @@ class TestInstanceGET(VifibSlaposRestAPIV1InstanceMixin):
"sla": {"computer_guid": "SOMECOMP"}}, "sla": {"computer_guid": "SOMECOMP"}},
self.json_response) self.json_response)
@expectedFailure
def test_if_modified_since_date_not_date(self): def test_if_modified_since_date_not_date(self):
self.connection.request(method='GET', self.connection.request(method='GET',
url='/'.join([self.api_path, 'instance', url='/'.join([self.api_path, 'instance',
...@@ -1166,6 +1169,7 @@ class TestInstanceGETlist(VifibSlaposRestAPIV1InstanceMixin): ...@@ -1166,6 +1169,7 @@ class TestInstanceGETlist(VifibSlaposRestAPIV1InstanceMixin):
}, },
self.json_response) self.json_response)
@expectedFailure
def test_if_modified_since_equal(self): def test_if_modified_since_equal(self):
self.connection.request(method='GET', self.connection.request(method='GET',
url='/'.join([self.api_path, 'instance']), url='/'.join([self.api_path, 'instance']),
...@@ -1306,6 +1310,7 @@ class TestGET_discovery(VifibSlaposRestAPIV1Mixin): ...@@ -1306,6 +1310,7 @@ class TestGET_discovery(VifibSlaposRestAPIV1Mixin):
'discovery', 'discovery',
]) ])
@expectedFailure
def test_noAcquisition(self): def test_noAcquisition(self):
# check the test # check the test
portal_id = self.portal.getId() portal_id = self.portal.getId()
...@@ -1321,6 +1326,7 @@ class TestGET_discovery(VifibSlaposRestAPIV1Mixin): ...@@ -1321,6 +1326,7 @@ class TestGET_discovery(VifibSlaposRestAPIV1Mixin):
self.assertResponseCode(404) self.assertResponseCode(404)
self.assertBasicResponse() self.assertBasicResponse()
@expectedFailure
def test(self): def test(self):
self.connection.request(method='GET', self.connection.request(method='GET',
url=self.api_path) url=self.api_path)
...@@ -1340,6 +1346,7 @@ class TestGET_discovery(VifibSlaposRestAPIV1Mixin): ...@@ -1340,6 +1346,7 @@ class TestGET_discovery(VifibSlaposRestAPIV1Mixin):
self.assertBasicResponse() self.assertBasicResponse()
self.assertResponseCode(304) self.assertResponseCode(304)
@expectedFailure
def test_if_modified_since_after(self): def test_if_modified_since_after(self):
if_modified = self.api_date.timeTime() + 2 if_modified = self.api_date.timeTime() + 2
# check the test: is calculated time *before* now? # check the test: is calculated time *before* now?
...@@ -1351,6 +1358,7 @@ class TestGET_discovery(VifibSlaposRestAPIV1Mixin): ...@@ -1351,6 +1358,7 @@ class TestGET_discovery(VifibSlaposRestAPIV1Mixin):
self.assertBasicResponse() self.assertBasicResponse()
self.assertResponseCode(304) self.assertResponseCode(304)
@expectedFailure
def test_if_modified_since_before(self): def test_if_modified_since_before(self):
self.connection.request(method='GET', self.connection.request(method='GET',
url=self.api_path, url=self.api_path,
...@@ -1375,6 +1383,7 @@ class TestGET_discovery(VifibSlaposRestAPIV1Mixin): ...@@ -1375,6 +1383,7 @@ class TestGET_discovery(VifibSlaposRestAPIV1Mixin):
self.assertResponseJson() self.assertResponseJson()
self.assertAPIDiscoveryDict() self.assertAPIDiscoveryDict()
@expectedFailure
def test_if_modified_since_date_future(self): def test_if_modified_since_date_future(self):
self.connection.request(method='GET', self.connection.request(method='GET',
url=self.api_path, url=self.api_path,
......
67 68
\ No newline at end of file \ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment