Ejemplo n.º 1
0
def test_config_basic_auth():
    """  Test basic authentication configuration """
    did.base.Config(CONFIG + """
                    auth_type = basic
                    auth_username = tom
                    auth_password = motak
                    """)
    stats = JiraStats("jira")
Ejemplo n.º 2
0
def assert_conf_error(config, expected_error=ReportError):
    """  Test given configuration and check that given error type is raised """
    did.base.Config(config)
    error = None
    try:
        stats = JiraStats("jira")
    except ReportError as e:
        error = e
    assert type(error) == expected_error
Ejemplo n.º 3
0
def test_config_gss_auth():
    """  Test default authentication configuration """
    did.base.Config(CONFIG)
    stats = JiraStats("jira")