def get_project_id(project_name="dd"):
    projects_api = ProjectsAPI()
    project_name = project_name
    project_id = projects_api.create_project_if_not_exists_by_project_name_and_team_full_name(
        project_name)

    return project_id
def test_update_sast_scan_settings():
    project_id = get_project_id()
    scan_api = ScansAPI()
    project_api = ProjectsAPI()
    preset_id = project_api.get_preset_id_by_name("Checkmarx Default")
    engine_configuration_id = 1
    post_scan_action_id = None
    failed_scan_emails = ["*****@*****.**"]
    before_scan_emails = ["*****@*****.**"]
    after_scan_emails = ["*****@*****.**"]
    scan_settings = scan_api.update_sast_scan_settings(
        project_id, preset_id, engine_configuration_id, post_scan_action_id,
        failed_scan_emails, before_scan_emails, after_scan_emails)
    assert scan_settings is not None
def get_project_id():
    project_name = "JVL-local"
    projects_api = ProjectsAPI()
    project_id = projects_api.create_project_if_not_exists_by_project_name_and_team_full_name(
        project_name, "/CxServer")
    return project_id
def get_project_id():
    project_name = "BookStore %2B OSA"
    projects_api = ProjectsAPI()
    project_id = projects_api.get_project_id_by_project_name_and_team_full_name(
        project_name, "/CxServer")
    return project_id