示例#1
0
    def testTicketAccess(self):
        logging.basicConfig(level=logging.INFO)
        #logging.getLogger('suds.client').setLevel(logging.DEBUG)
        #logging.getLogger('suds.transport').setLevel(logging.DEBUG)
        #logging.getLogger('suds.xsd.schema').setLevel(logging.DEBUG)
        #logging.getLogger('suds.wsdl').setLevel(logging.DEBUG)
        
        ticket_no = "72982"
        ticket = get_ticket(ticket_no)
        print ticket
        
        
        ticket_history = get_ticket_history(ticket_no)
        print ticket_history
        
        g = get_ggus_ticket(ticket_no)
        g.print_status_history()


        su = ticket_su(ticket)
        print su
        sla_comp_values = g.get_sla_compliance_values()
        print sla_comp_values
示例#2
0
def get_ggus_ticket(ticket_id):
    ggus_ticket = get_ticket(ticket_id)
    t = GGUSTicket(ggus_ticket)
    history = get_ticket_history(ticket_id)
    t.create_history(history)
    return t