Commit d164ff8b authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_jio: Update test after script was removed

parent f6ab16a0
...@@ -63,7 +63,7 @@ class TestSlapOSHypermediaPersonScenario(SlapOSTestCaseMixin): ...@@ -63,7 +63,7 @@ class TestSlapOSHypermediaPersonScenario(SlapOSTestCaseMixin):
connection = getNewHttpConnection(api_netloc) connection = getNewHttpConnection(api_netloc)
connection.request( connection.request(
method='GET', method='GET',
url='%s/web_site_module/hateoas/Base_getHateoasMaster' % \ url='%s/web_site_module/hateoas/' % \
self.portal.absolute_url(), self.portal.absolute_url(),
headers={ headers={
'Authorization': authorization, 'Authorization': authorization,
...@@ -410,7 +410,7 @@ class TestSlapOSHypermediaInstanceScenario(SlapOSTestCaseMixin): ...@@ -410,7 +410,7 @@ class TestSlapOSHypermediaInstanceScenario(SlapOSTestCaseMixin):
self.portal.changeSkin('Hal') self.portal.changeSkin('Hal')
self.tic() self.tic()
remote_user = instance.getReference() remote_user = instance.getUserId()
content_type = "application/hal+json" content_type = "application/hal+json"
api_scheme, api_netloc, api_path, api_query, \ api_scheme, api_netloc, api_path, api_query, \
...@@ -429,7 +429,7 @@ class TestSlapOSHypermediaInstanceScenario(SlapOSTestCaseMixin): ...@@ -429,7 +429,7 @@ class TestSlapOSHypermediaInstanceScenario(SlapOSTestCaseMixin):
connection = getNewHttpConnection(api_netloc) connection = getNewHttpConnection(api_netloc)
connection.request( connection.request(
method='GET', method='GET',
url='%s/web_site_module/hateoas/Base_getHateoasMaster' % \ url='%s/web_site_module/hateoas/' % \
self.portal.absolute_url(), self.portal.absolute_url(),
headers={ headers={
'REMOTE_USER': remote_user, 'REMOTE_USER': remote_user,
...@@ -438,7 +438,7 @@ class TestSlapOSHypermediaInstanceScenario(SlapOSTestCaseMixin): ...@@ -438,7 +438,7 @@ class TestSlapOSHypermediaInstanceScenario(SlapOSTestCaseMixin):
body="", body="",
) )
response = connection.getresponse() response = connection.getresponse()
self.assertEquals(response.status, 200) self.assertEquals(response.status, 200, response)
self.assertEquals(response.getheader('Content-Type'), content_type) self.assertEquals(response.getheader('Content-Type'), content_type)
home_page_hal = json.loads(response.read()) home_page_hal = json.loads(response.read())
......
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