Exemplo n.º 1
0
def test_nifi_bulletins():
    bulletins = [b for b in canvas.get_bulletin_board().bulletin_board.bulletins if b.bulletin]
    with exception_context(bulletins):
        assert [] == \
            ['Bulletin: Time: %s, Level: %s, Source: %s, Node: %s, Message: [%s]' % (
                b.timestamp, b.bulletin.level if b.bulletin else 'UNKNOWN',
                b.bulletin.source_name if b.bulletin else b.source_id,
                b.node_address, b.bulletin.message if b.bulletin else 'UNKNOWN')
             for b in sorted(bulletins, key=lambda x: x.id)]
Exemplo n.º 2
0
def test_get_bulletin_board():
    r = canvas.get_bulletin_board()
    assert isinstance(r, nifi.BulletinBoardEntity)