#[serial_test::serial]
#[tokio::test]
async fn test_list_200_generated_success() {
    let mut client = sideko_rest_api::SidekoClient::default()
        .with_api_key_auth("API_KEY")
        .with_cookie_auth("API_KEY")
        .with_environment(sideko_rest_api::Environment::MockServer);
    let res = client
        .sdk()
        .list(sideko_rest_api::resources::sdk::ListRequest {
            ..Default::default()
        })
        .await;
    println!("{:?}", res);
    assert!(res.is_ok());
}
#[serial_test::serial]
#[tokio::test]
async fn test_generate_201_success_default() {
    let mut client = sideko_rest_api::SidekoClient::default()
        .with_api_key_auth("API_KEY")
        .with_cookie_auth("API_KEY")
        .with_environment(sideko_rest_api::Environment::MockServer);
    let res = client
        .sdk()
        .generate(sideko_rest_api::resources::sdk::GenerateRequest {
            config: sideko_rest_api::UploadFile::from_path("uploads/config.yaml")
                .unwrap(),
            language: sideko_rest_api::models::SdkLanguageEnum::Go,
            ..Default::default()
        })
        .await;
    println!("{:?}", res);
    assert!(res.is_ok());
}
#[serial_test::serial]
#[tokio::test]
async fn test_update_201_success_default() {
    let mut client = sideko_rest_api::SidekoClient::default()
        .with_api_key_auth("API_KEY")
        .with_cookie_auth("API_KEY")
        .with_environment(sideko_rest_api::Environment::MockServer);
    let res = client
        .sdk()
        .update(sideko_rest_api::resources::sdk::UpdateRequest {
            config: sideko_rest_api::UploadFile::from_path("uploads/config.yaml")
                .unwrap(),
            prev_sdk_git: sideko_rest_api::UploadFile::from_path("uploads/git.tar.gz")
                .unwrap(),
            prev_sdk_id: "3e4666bf-d5e5-4aa7-b8ce-cefe41c7568a".to_string(),
            sdk_version: sideko_rest_api::models::VersionOrBump::VersionBumpEnum(
                sideko_rest_api::models::VersionBumpEnum::Major,
            ),
            ..Default::default()
        })
        .await;
    println!("{:?}", res);
    assert!(res.is_ok());
}
