def __init__(self):
        ruleset_id = 'ga_ws_pub_sdts'
        ruleset_name = 'GA Web Service Publication Standards'
        passed = True
        rules_results = []

        # make a Graph from the string or file

        #
        #   Run all the rules
        #
        service_pass = r'http://services.ga.gov.au/gis/services/NEXIS_Building_Exposure/MapServer/WFSServer?request=GetCapabilities'
        service_fail = r'http://www.ga.gov.au/gis/services/topography/National_Ferry_Terminals/MapServer/WFSServer?request=GetCapabilities'

        #rules_results.append(GaTitle(service_pass).get_result())
        rules_results.append(WebServiceTitle(service_pass).get_result())

        # calculate if RuleSet passed
        for rule in rules_results:
            if not rule['passed']:
                passed = False

        #
        #   Call the base RuleSet constructor
        #
        RuleSet.__init__(self,
                         ruleset_id,
                         ruleset_name,
                         '*****@*****.**',
                         rules_results,
                         passed)
Beispiel #2
0
    def __init__(self):
        ruleset_id = 'ga_ws_pub_sdts'
        ruleset_name = 'GA Web Service Publication Standards'
        passed = True
        rules_results = []

        # make a Graph from the string or file

        #
        #   Run all the rules
        #
        service_pass = r'http://services.ga.gov.au/gis/services/NEXIS_Building_Exposure/MapServer/WFSServer?request=GetCapabilities'
        service_fail = r'http://www.ga.gov.au/gis/services/topography/National_Ferry_Terminals/MapServer/WFSServer?request=GetCapabilities'

        #rules_results.append(GaTitle(service_pass).get_result())
        rules_results.append(WebServiceTitle(service_pass).get_result())

        # calculate if RuleSet passed
        for rule in rules_results:
            if not rule['passed']:
                passed = False

        #
        #   Call the base RuleSet constructor
        #
        RuleSet.__init__(self, ruleset_id, ruleset_name,
                         '*****@*****.**', rules_results, passed)