Esempio n. 1
0
File: main.py Progetto: rinfo/rdl
def test():
    _needs_targetenv()
    report = JUnitReport()
    url = "http://"+env.roledefs['main'][0]
    test_url(report, "Verify feed exists and contains 'tag:lagrummet.se,2009:rinfo'", "main.feed",
             "%(url)s/feed/current" % venv(), "tag:lagrummet.se,2009:rinfo")
    test_url(report, "Verify dataset exists and contains 'tag:lagrummet.se,2009:rinfo'", "main.dataset",
             "%(url)s/sys/dataset/rdf" % venv(), "tag:lagrummet.se,2009:rinfo")
    if not report.empty():
        file_name = "%(projectroot)s/testreport/main_test_report.log" % venv()
        report.create_report(file_name)
        print "Created report '%s'" % file_name
Esempio n. 2
0
File: admin.py Progetto: rinfo/rdl
def test():
    """Http request to test admin is up and running correctly"""
    report = JUnitReport()
    url = "http://"+env.roledefs['admin'][0]
    test_url(report, "Verify dataset exists and contains 'tag:lagrummet.se,2009:rinfo'", "admin.dataset",
             "%(url)s/sys/dataset/rdf.rdf" % venv(), "tag:lagrummet.se,2009:rinfo")
    test_url(report, "Verify current.atom exists and contains 'RInfo Base Data'", "admin.current",
             "%(url)s/feed/current.atom" % venv(), "RInfo Base Data")
    test_url(report, "Verify files index appears in root url", "admin.index", url, "Index" % venv())
    if not report.empty():
        file_name = "%(projectroot)s/testreport/admin_test_report.log" % venv()
        report.create_report(file_name)
        print "Created report '%s'" % file_name