import json


def get_test_ids(check_nightly_status=False):
    """Get the test ids from conf.json

    Keyword Arguments:
        check_nightly_status {bool} -- if we are running nightly test (default: {False})

    Returns:
        tuple: (test_ids, skipped_tests)
    """
    test_ids = []
    with open("./Tests/conf.json", 'r') as conf_file:
        conf = json.load(conf_file)

    conf_tests = conf['tests']
    for t in conf_tests:
        if not check_nightly_status or not t.get('nightly', False):
            playbook_id = t['playbookID']
            test_ids.append(playbook_id)

    return test_ids, list(conf['skipped_tests'].keys())