示例#1
0
    def test_VIS_003_2_2(self):
        """
        VIS-003-2-2 - Publish voyage plan to VIS 1 instance

        
        """
        service.reportrow('VIS003sheet', 'VIS_003_2_2_row', 'VIS_003_2_2_col')
        pass
示例#2
0
    def test_VIS_002_00(self):
        """
        VIS-002-0 - Preparation:Organisation for VIS-2 authorized to exactly one published voyage plan with routestatus=7 and chosen UVID

        
        """
        service.set_acl(vis2_uvid)
        service.reportrow('VIS002sheet', 'VIS_002_00_row', 'VIS_002_00_col')
        pass
示例#3
0
    def test_VIS_005_1_1(self):
        """
        VIS-005-1-1 - In VIS-2, search for VIS with MMSI=12345678

        
        """
        response = service.search('mmsi:12345678')
        service.reportrow('VIS005sheet', 'VIS_005_1_1_row', 'VIS_005_1_1_col',
                          response.status_code == 200, response.reason)
        self.assert200(response, "Response body is : " + response.text)
示例#4
0
    def test_VIS_004_1_3(self):
        """
        VIS-004-1-3 - VIS-2: Request remove of subscription to voyage plan from VIS-1

        
        """
        response = service.unsubscribe_voyageplan(url, 'https://localhost:99')
        service.reportrow('VIS004sheet', 'VIS_004_1_3_row', 'VIS_004_1_3_col',
                          response.status_code == 200, response.reason)
        self.assert200(response, "Response body is : " + response.text)
示例#5
0
    def test_VIS_010_0_13(self):
        """
        VIS-010-13 - Find Enhanced monitoring service to consume

        
        """
        response = service.search('serviceType AND EMS')
        service.reportrow('VIS010sheet', 'VIS_010_13_row', 'VIS_010_13_col',
                          response.status_code == 200, response.reason)
        self.assert200(response, "Response body is : " + response.text)
示例#6
0
    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)
示例#7
0
    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)
示例#8
0
    def test_VIS_003_06(self):
        """
        VIS-003-6 - VIS-1 returns the latest published voyage plan for each UVID with routeStatus<8

        
        """
        logged = service.check_event('post_voyage')
        service.reportrow('VIS003sheet', 'VIS_003_06_row', 'VIS_003_06_col',
                          logged, '')
        self.assertTrue(logged)
示例#9
0
    def test_VIS_003_03(self):
        """
        VIS-003-3 - VIS-1 gets a POST subscription request

        
        """
        logged = service.check_event('subscribed')
        service.reportrow('VIS003sheet', 'VIS_003_03_row', 'VIS_003_03_col',
                          logged, '')
        self.assertTrue(logged)
示例#10
0
    def test_VIS_002_03(self):
        """
        VIS-002-3 - VIS-2 request voyage plan with routeStatus= 7 from VIS-1, no specific UVID

        
        """
        response = service.get_voyageplan(url, routeStatus='7')
        service.reportrow('VIS002sheet', 'VIS_002_03_row', 'VIS_002_03_col',
                          response.status_code == 200, response.reason)
        self.assert200(response, "Response body is : " + response.text)
示例#11
0
    def test_VIS_002_02(self):
        """
        VIS-002-2 - VIS-2 request voyage plan with chosen UVID from VIS-1, no specific status

        
        """
        response = service.get_voyageplan(url, voyageuvid)
        service.reportrow('VIS002sheet', 'VIS_002_02_row', 'VIS_002_02_col',
                          response.status_code == 200, response.reason)
        self.assert200(response, "Response body is : " + response.text)
示例#12
0
    def test_VIS_002_01(self):
        """
        VIS-002-1 - VIS-2 request voyage plan from VIS-1, no specific UVID or status, hence no parameters given

        
        """
        response = service.get_voyageplan(url)
        service.reportrow('VIS002sheet', 'VIS_002_01_row', 'VIS_002_01_col',
                          response.status_code == 200, response.reason)
        self.assert200(response, "Response body is : " + response.text)
示例#13
0
    def test_VIS_010_0_07(self):
        """
        VIS-010-7 - Find IMO 8719188

        
        """
        response = service.search('imo:8719188')
        service.reportrow('VIS010sheet', 'VIS_010_07_row', 'VIS_010_07_col',
                          response.status_code == 200, response.reason)
        self.assert200(response, "Response body is : " + response.text)
示例#14
0
    def test_VIS_010_0_06(self):
        """
        VIS-010-6 - Find keyword service

        
        """
        response = service.search('keywords:service')
        service.reportrow('VIS010sheet', 'VIS_010_06_row', 'VIS_010_06_col',
                          response.status_code == 200, response.reason)
        self.assert200(response, "Response body is : " + response.text)
示例#15
0
    def test_VIS_010_0_02(self):
        """
        VIS-010-2 - Find keyword ROS+SSPA

        
        """
        response = service.search('keywords:ROS AND keywords:SSPA')
        service.reportrow('VIS010sheet', 'VIS_010_02_row', 'VIS_010_02_col',
                          response.status_code == 200, response.reason)
        self.assert200(response, "Response body is : " + response.text)
示例#16
0
    def test_VIS_005_2_2(self):
        """
        VIS-005-1-3 - STM Module retrieves messages from VIS-1

        
        """
        logged = service.check_event('upload')
        service.reportrow('VIS005sheet', 'VIS_005_2_2_row', 'VIS_005_2_2_col',
                          logged, '')
        self.assertTrue(logged)
示例#17
0
    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)
示例#18
0
    def test_VIS_002_08(self):
        """
        VIS-002-8 - VIS-2 request voyage plan with routeStatus= 6 (non published)  from VIS-1, no specific UVID

        
        """
        response = service.get_voyageplan(url, routeStatus='6')
        service.reportrow('VIS002sheet', 'VIS_002_08_row', 'VIS_002_08_col',
                          response.status_code == 404, response.reason)
        self.assert404(response, "Response body is : " + response.text)
示例#19
0
    def test_VIS_003_05(self):
        """
        VIS-003-5 - VIS-1 checks against ACL and get OK

        
        """
        allowed = service.acl_allowed(vis2_uvid)
        service.reportrow('VIS003sheet', 'VIS_003_05_row', 'VIS_003_05_col',
                          allowed, '')
        self.assertTrue(allowed)
示例#20
0
    def test_VIS_002_9_0(self):
        """
        VIS-002-1-0 - Preparation Organisation for VIS-2 authorized to chosen UVID

        
        """
        service.rm_alternate()
        service.set_acl(vis2_uvid)
        service.reportrow('VIS002sheet', 'VIS_002_1_0_row', 'VIS_002_1_0_col')
        pass
示例#21
0
    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)
示例#22
0
    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)
示例#23
0
    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)
示例#24
0
    def test_VIS_002_9_8(self):
        """
        VIS-002-1-8 - VIS-2 : Request voyage plans from VIS-1

        
        """
        response = service.get_voyageplan(url)
        service.reportrow('VIS002sheet', 'VIS_002_1_8_row', 'VIS_002_1_8_col',
                          response.status_code == 200, response.reason)
        self.assert200(response, "Response body is : " + response.text)
示例#25
0
    def test_VIS_003_02(self):
        """
        VIS-003-2 - VIS-2 logs event

        
        """
        logged = service.check_event('subscribed')
        service.reportrow('VIS003sheet', 'VIS_003_02_row', 'VIS_003_02_col',
                          logged, '')
        self.assertTrue(logged)
示例#26
0
    def test_VIS_010_0_12(self):
        """
        VIS-010-12 - Find Route check service to consume

        
        """
        response = service.search('serviceType AND RCS')
        service.reportrow('VIS010sheet', 'VIS_010_12_row', 'VIS_010_12_col',
                          response.status_code == 200, response.reason)
        self.assert200(response, "Response body is : " + response.text)