Пример #1
0
#! /usr/bin/env python
# -*- coding: utf-8
# @author <*****@*****.**>
import logging
from sys import argv, exit
from pronto import Pronto, ProntoHttp404

logger = logging.getLogger('pronto_logger')
logger.setLevel(logging.CRITICAL)
p = Pronto(strict=True)
try:
    pr = p.problem_report(argv[1])
except ProntoHttp404:
    print('NOT FOUND')
    exit(1)
else:
    print(pr.xml())
Пример #2
0
#! /usr/bin/env python
# -*- coding: utf-8
# @author <*****@*****.**>
import logging
import json
import pprint

from pronto import Pronto, View
from log import setup_logger

setup_logger()
logger = logging.getLogger('pronto_logger') # pylint: disable=C0103
p = Pronto()
#id = p.new_problem_report('ppp', 'ooo')
#print(id)
#p.new_build('test003')
#print(p.build_exists('WN9.1_0000_286_00'))
#print(p.build_exists('WN9.1_0000_286_00X'))
#exit(0)

#test_pr = '105576ESPE01'
test_pr = '110012ESPE01'
#test_pr = 'PR034651'
#test_pr = '113352ESPE01'
#test_view = 'VIEW013794'
test_view = 'VIEW116124'
#test_view = 'VIEW026812'

print(p.pr_link(test_pr))
print(p.group_fc('LTE_SV_FeVe_WRO'))
pr = p.problem_report(test_pr)