def test_VIS_003_01(self): """ VIS-003-1 - VIS-2: Request subscription on VIS-1 """ response = service.subscribe_voyageplan(url, callbackurl) service.reportrow('VIS003sheet', 'VIS_003_01_row', 'VIS_003_01_col', response.status_code == 200, response.reason) self.assert200(response, "Response body is : " + response.text)
def test_VIS_001_11(self): """ VIS-001-11 - VIS-2: Subscribe to voyage plan with chosen UVID from VIS-1 """ response = service.subscribe_voyageplan(url, callbackurl, newvoyageuvid) service.reportrow('VIS001sheet', 'VIS_001_11_row', 'VIS_001_11_col', response.status_code == 403, response.reason) self.assert403(response, "Response body is : " + response.text)
def test_VIS_003_2_1(self): """ VIS-003-2-1 - In VIS-2, request subscription on voyage plans from VIS-1, but with incorrect UVID """ response = service.subscribe_voyageplan( url, callbackurl, 'urn:mrn:stm:voyage:id:not:existing') service.reportrow('VIS003sheet', 'VIS_003_2_1_row', 'VIS_003_2_1_col', response.status_code == 404, response.reason) self.assert404(response, "Response body is : " + response.text)
def test_VIS_003_1_1(self): """ VIS-003-1-1 - In VIS-2, request subscription on voyage plans from VIS-1 """ response = service.subscribe_voyageplan(url, service.callbackurl, newvoyageuvid) service.reportrow('VIS003sheet', 'VIS_003_1_1_row', 'VIS_003_1_1_col', response.status_code == 200, response.reason) self.assert200(response, "Response body is : " + response.text)