def test_VIS_005_2_1(self): """ VIS-005-2-2 - In VIS-2, select voyage plan and send (upload) the voyage plan to VIS-1 with ACKendpoint that does not respond """ response = service.post_voyageplan( url, voyageplan, deliveryAckEndPoint='https://localhost:8001') self.assert200(response, "Response body is : " + response.text)
def test_VIS_001_03(self): """ VIS-001-3 - Publish voyage plan to VIS-1 with chosen UVID """ response = service.post_voyageplan(url, voyageplan) service.reportrow('VIS001sheet', 'VIS_001_03_row', 'VIS_001_03_col', response.status_code == 200, response.reason) self.assert200(response, "Response body is : " + response.text)
def test_VIS_002_9_3(self): """ VIS-002-1-3 - VIS-1 : Publish voyage plan with chosen UVID and routeStatus=7 """ response = service.post_voyageplan(url, voyageplan) service.reportrow('VIS002sheet', 'VIS_002_1_3_row', 'VIS_002_1_3_col', response.status_code == 200, response.reason) self.assert200(response, "Response body is : " + response.text)
def test_VIS_002_9_7(self): """ VIS-002-1-7 - VIS-1 : Publish voyage plan with new UVID for another ship and routeStatus=7 """ response = service.post_voyageplan(url, voyageplan) service.reportrow('VIS002sheet', 'VIS_002_1_7_row', 'VIS_002_1_7_col', response.status_code == 200, response.reason) self.assert200(response, "Response body is : " + response.text)
def test_VIS_003_1_2(self): """ VIS-003-1-2 - Publish voyage plan to VIS-1 """ response = service.post_voyageplan(url, voyageplan) service.reportrow('VIS003sheet', 'VIS_003_1_2_row', 'VIS_003_1_2_col', response.status_code == 200, response.reason) self.assert200(response, "Response body is : " + response.text)
def test_VIS_003_07(self): """ VIS-003-7 - VIS-1 returns the latest published voyage plan for each UVID with routeStatus<8 """ response = service.post_voyageplan(url, voyageplan) service.reportrow('VIS003sheet', 'VIS_003_07_row', 'VIS_003_07_col', response.status_code == 200, response.reason) self.assert200(response, "Response body is : " + response.text)
def test_VIS_005_01(self): """ VIS-005-1 - VIS-2: Select voyage plan and send (upload) the voyage plan to VIS-1, no ACK requested, no callback expected """ response = service.post_voyageplan(url, voyageplan) service.reportrow('VIS005sheet', 'VIS_005_01_row', 'VIS_005_01_col', response.status_code == 200, response.reason) self.assert200(response, "Response body is : " + response.text)
def test_VIS_001_12_6_1(self): """ VIS-001-6-1 - Select VP for another ship and publish to subscribers """ response = service.post_voyageplan(url, voyageplan) service.reportrow('VIS001sheet', 'VIS_001_12_6_1_row', 'VIS_001_12_6_1_col', response.status_code == 200, response.reason) self.assert200(response, "Response body is : " + response.text)
def test_VIS_001_12_5_2(self): """ VIS-001-5-2 - Select VP not following schema RTZ and publish to VIS-1 """ response = service.post_voyageplan(url, voyageplan_incorrect_schema) service.reportrow('VIS001sheet', 'VIS_001_12_5_2_row', 'VIS_001_12_5_2_col', response.status_code == 400, response.reason) self.assert400(response, "Response body is : " + response.text)
def test_VIS_001_12_5_1(self): """ VIS-001-5-1 - Select VP in incorrect XML and publish to VIS-1 """ response = service.post_voyageplan(url, voyageplan_incorrect_xml) service.reportrow('VIS001sheet', 'VIS_001_12_5_1_row', 'VIS_001_12_5_1_col', response.status_code == 500, response.reason) self.assert500(response, "Response body is : " + response.text)
def test_VIS_001_12_4_3(self): """ VIS-001-4-3 - Select VP according to schema RTZ 2.0 and publish to VIS-1 """ response = service.post_voyageplan(url, voyageplan_in_the_future) service.reportrow('VIS001sheet', 'VIS_001_12_4_3_row', 'VIS_001_12_4_3_col', response.status_code == 200, response.reason) self.assert200(response, "Response body is : " + response.text)
def test_VIS_001_12_3_3(self): """ VIS-001-3-3 - Change validityPeriodStart to future and publish to VIS-1 """ response = service.post_voyageplan(url, voyageplan_in_the_future) service.reportrow('VIS001sheet', 'VIS_001_12_3_3_row', 'VIS_001_12_3_3_col', response.status_code == 200, response.reason) self.assert200(response, "Response body is : " + response.text)
def test_VIS_001_12_3_1(self): """ VIS-001-3-1 - Select VP with validityPeriodStart and validityPeriodStop in past and publish to VIS-1 """ response = service.post_voyageplan(url, voyageplan_in_the_past) service.reportrow('VIS001sheet', 'VIS_001_12_3_1_row', 'VIS_001_12_3_1_col', response.status_code == 200, response.reason) self.assert200(response, "Response body is : " + response.text)
def test_VIS_005_1_2(self): """ VIS-005-1-2 - In VIS-2, select voyage plan and send (upload) the voyage plan to VIS-1 with ACKendpoint """ response = service.post_voyageplan( url, voyageplan, deliveryAckEndPoint='https://localhost:8002') service.reportrow('VIS005sheet', 'VIS_005_1_2_row', 'VIS_005_1_2_col', response.status_code == 200, response.reason) self.assert200(response, "Response body is : " + response.text)
def test_VIS_001_12_7_4(self): """ VIS-001-7-4 - Select voyage plan with incorrect syntax of routeStatus and publish to subscribers """ response = service.post_voyageplan( url, voyageplan_wrong_syntax_routeStatusEnum) service.reportrow('VIS001sheet', 'VIS_001_12_7_4_row', 'VIS_001_12_7_4_col', response.status_code == 400, response.reason) self.assert400(response, "Response body is : " + response.text)
def test_VIS_001_12_7_3(self): """ VIS-001-7-3 - Select voyage plan with missing routeStatus and publish to subscribers """ response = service.post_voyageplan(url, voyageplan_missing_routeStatusEnum) service.reportrow('VIS001sheet', 'VIS_001_12_7_3_row', 'VIS_001_12_7_3_col', response.status_code == 404, response.reason) self.assert404(response, "Response body is : " + response.text)
def test_VIS_003_00(self): service.set_acl(vis2_uvid) response = service.post_voyageplan(url, voyageplan) pass