diff --git a/crates/tower-cmd/src/api.rs b/crates/tower-cmd/src/api.rs index 8f0956b6..6facd090 100644 --- a/crates/tower-cmd/src/api.rs +++ b/crates/tower-cmd/src/api.rs @@ -3,10 +3,12 @@ use futures_util::StreamExt; use http::StatusCode; use reqwest_eventsource::{Event, EventSource}; use std::collections::HashMap; +use std::future::Future; use tokio::sync::mpsc; use tower_api::apis::configuration; use tower_api::apis::Error; use tower_api::apis::ResponseContent; +use tower_api::models::Pagination; use tower_api::models::RunParameter; use tower_telemetry::debug; @@ -19,6 +21,74 @@ pub trait ResponseEntity { fn extract_data(self) -> Option; } +/// Trait for API responses that contain paginated items. +trait PaginatedResponse { + type Item; + fn pagination(&self) -> &Pagination; + fn into_items(self) -> Vec; +} + +impl PaginatedResponse for tower_api::models::ListAppsResponse { + type Item = tower_api::models::AppSummary; + fn pagination(&self) -> &Pagination { &self.pages } + fn into_items(self) -> Vec { self.apps } +} + +impl PaginatedResponse for tower_api::models::ListTeamsResponse { + type Item = tower_api::models::Team; + fn pagination(&self) -> &Pagination { &self.pages } + fn into_items(self) -> Vec { self.teams } +} + +impl PaginatedResponse for tower_api::models::ListSecretsResponse { + type Item = tower_api::models::Secret; + fn pagination(&self) -> &Pagination { &self.pages } + fn into_items(self) -> Vec { self.secrets } +} + +impl PaginatedResponse for tower_api::models::ListCatalogsResponse { + type Item = tower_api::models::Catalog; + fn pagination(&self) -> &Pagination { &self.pages } + fn into_items(self) -> Vec { self.catalogs } +} + +impl PaginatedResponse for tower_api::models::ListEnvironmentsResponse { + type Item = tower_api::models::Environment; + fn pagination(&self) -> &Pagination { &self.pages } + fn into_items(self) -> Vec { self.environments } +} + +impl PaginatedResponse for tower_api::models::ListSchedulesResponse { + type Item = tower_api::models::Schedule; + fn pagination(&self) -> &Pagination { &self.pages } + fn into_items(self) -> Vec { self.schedules } +} + +/// Fetches all pages from a paginated API endpoint. +async fn fetch_all_pages(fetch: F) -> Result, Error> +where + R: PaginatedResponse, + F: Fn(i64, i64) -> Fut, + Fut: Future>>, +{ + let page_size: i64 = 100; + let mut all_items = Vec::new(); + let mut page: i64 = 0; + + loop { + let response = fetch(page, page_size).await?; + let num_pages = response.pagination().num_pages; + all_items.extend(response.into_items()); + + page += 1; + if page >= num_pages || page >= 100 { + break; + } + } + + Ok(all_items) +} + pub async fn describe_app( config: &Config, name: &str, @@ -44,21 +114,26 @@ pub async fn describe_app( pub async fn list_apps( config: &Config, -) -> Result> +) -> Result, Error> { - let api_config = &config.into(); - - let params = tower_api::apis::default_api::ListAppsParams { - query: None, - page: None, - page_size: None, - num_runs: Some(0), - sort: None, - filter: None, - environment: None, - }; + let api_config: configuration::Configuration = config.into(); - unwrap_api_response(tower_api::apis::default_api::list_apps(api_config, params)).await + fetch_all_pages(|page, page_size| { + let api_config = &api_config; + async move { + let params = tower_api::apis::default_api::ListAppsParams { + query: None, + page: Some(page), + page_size: Some(page_size), + num_runs: Some(0), + sort: None, + filter: None, + environment: None, + }; + unwrap_api_response(tower_api::apis::default_api::list_apps(api_config, params)).await + } + }) + .await } pub async fn create_app( @@ -224,22 +299,27 @@ pub async fn list_catalogs( config: &Config, env: &str, all: bool, -) -> Result< - tower_api::models::ListCatalogsResponse, - Error, -> { - let api_config = &config.into(); - - let params = tower_api::apis::default_api::ListCatalogsParams { - environment: Some(env.to_string()), - all: Some(all), - page: None, - page_size: None, - }; - - unwrap_api_response(tower_api::apis::default_api::list_catalogs( - api_config, params, - )) +) -> Result, Error> +{ + let api_config: configuration::Configuration = config.into(); + let env = env.to_string(); + + fetch_all_pages(|page, page_size| { + let api_config = &api_config; + let env = &env; + async move { + let params = tower_api::apis::default_api::ListCatalogsParams { + environment: Some(env.to_string()), + all: Some(all), + page: Some(page), + page_size: Some(page_size), + }; + unwrap_api_response(tower_api::apis::default_api::list_catalogs( + api_config, params, + )) + .await + } + }) .await } @@ -268,22 +348,27 @@ pub async fn list_secrets( config: &Config, env: &str, all: bool, -) -> Result< - tower_api::models::ListSecretsResponse, - Error, -> { - let api_config = &config.into(); - - let params = tower_api::apis::default_api::ListSecretsParams { - environment: Some(env.to_string()), - all: Some(all), - page: None, - page_size: None, - }; - - unwrap_api_response(tower_api::apis::default_api::list_secrets( - api_config, params, - )) +) -> Result, Error> +{ + let api_config: configuration::Configuration = config.into(); + let env = env.to_string(); + + fetch_all_pages(|page, page_size| { + let api_config = &api_config; + let env = &env; + async move { + let params = tower_api::apis::default_api::ListSecretsParams { + environment: Some(env.to_string()), + all: Some(all), + page: Some(page), + page_size: Some(page_size), + }; + unwrap_api_response(tower_api::apis::default_api::list_secrets( + api_config, params, + )) + .await + } + }) .await } @@ -404,16 +489,20 @@ pub async fn refresh_session( pub async fn list_teams( config: &Config, -) -> Result> -{ - let api_config = &config.into(); - - let params = tower_api::apis::default_api::ListTeamsParams { - page: None, - page_size: None, - }; +) -> Result, Error> { + let api_config: configuration::Configuration = config.into(); - unwrap_api_response(tower_api::apis::default_api::list_teams(api_config, params)).await + fetch_all_pages(|page, page_size| { + let api_config = &api_config; + async move { + let params = tower_api::apis::default_api::ListTeamsParams { + page: Some(page), + page_size: Some(page_size), + }; + unwrap_api_response(tower_api::apis::default_api::list_teams(api_config, params)).await + } + }) + .await } pub enum LogStreamEvent { @@ -574,6 +663,7 @@ async fn unwrap_api_response(api_call: F) -> Result> where F: std::future::Future, Error>>, T: ResponseEntity, + T::Data: serde::de::DeserializeOwned, { match api_call.await { Ok(response) => { @@ -593,11 +683,28 @@ where if let Some(data) = entity.extract_data() { Ok(data) } else { + let truncated = if response.content.len() > 500 { + format!("{}...(truncated)", &response.content[..500]) + } else { + response.content.clone() + }; + // Try explicit deserialization to get the actual error message + let deser_error = serde_json::from_str::(&response.content) + .err() + .map(|e| format!(" Deserialization error: {}", e)) + .unwrap_or_default(); + debug!( + "Failed to extract data from API response:{} Content: {}", + deser_error, truncated + ); let err = Error::ResponseError( tower_api::apis::ResponseContent { tower_trace_id: "".to_string(), status: StatusCode::NO_CONTENT, - content: "Received a response from the server that the CLI wasn't able to understand".to_string(), + content: format!( + "Received a response from the server that the CLI wasn't able to understand.{} Response: {}", + deser_error, truncated + ), entity: None, }, ); @@ -858,18 +965,24 @@ impl ResponseEntity for tower_api::apis::default_api::ListEnvironmentsSuccess { pub async fn list_environments( config: &Config, ) -> Result< - tower_api::models::ListEnvironmentsResponse, + Vec, Error, > { - let api_config = &config.into(); - let params = tower_api::apis::default_api::ListEnvironmentsParams { - page: Some(0), - page_size: Some(1000), - }; + let api_config: configuration::Configuration = config.into(); - unwrap_api_response(tower_api::apis::default_api::list_environments( - api_config, params, - )) + fetch_all_pages(|page, page_size| { + let api_config = &api_config; + async move { + let params = tower_api::apis::default_api::ListEnvironmentsParams { + page: Some(page), + page_size: Some(page_size), + }; + unwrap_api_response(tower_api::apis::default_api::list_environments( + api_config, params, + )) + .await + } + }) .await } @@ -899,21 +1012,26 @@ pub async fn list_schedules( config: &Config, _app_name: Option<&str>, environment: Option<&str>, -) -> Result< - tower_api::models::ListSchedulesResponse, - Error, -> { - let api_config = &config.into(); - - let params = tower_api::apis::default_api::ListSchedulesParams { - environment: environment.map(String::from), - page: None, - page_size: None, - }; - - unwrap_api_response(tower_api::apis::default_api::list_schedules( - api_config, params, - )) +) -> Result, Error> +{ + let api_config: configuration::Configuration = config.into(); + let environment = environment.map(String::from); + + fetch_all_pages(|page, page_size| { + let api_config = &api_config; + let environment = &environment; + async move { + let params = tower_api::apis::default_api::ListSchedulesParams { + environment: environment.clone(), + page: Some(page), + page_size: Some(page_size), + }; + unwrap_api_response(tower_api::apis::default_api::list_schedules( + api_config, params, + )) + .await + } + }) .await } diff --git a/crates/tower-cmd/src/apps.rs b/crates/tower-cmd/src/apps.rs index c6210dab..a22b07a2 100644 --- a/crates/tower-cmd/src/apps.rs +++ b/crates/tower-cmd/src/apps.rs @@ -210,10 +210,9 @@ pub async fn do_show(config: Config, cmd: &ArgMatches) { } pub async fn do_list_apps(config: Config) { - let resp = output::with_spinner("Listing apps", api::list_apps(&config)).await; + let apps = output::with_spinner("Listing apps", api::list_apps(&config)).await; - let items = resp - .apps + let items = apps .iter() .map(|app_summary| { let app = &app_summary.app; @@ -225,7 +224,7 @@ pub async fn do_list_apps(config: Config) { format!("{}\n{}", output::title(&app.name), desc) }) .collect(); - output::list(items, Some(&resp.apps)); + output::list(items, Some(&apps)); } pub async fn do_create(config: Config, args: &ArgMatches) { diff --git a/crates/tower-cmd/src/catalogs.rs b/crates/tower-cmd/src/catalogs.rs index 034e650a..06fb87f2 100644 --- a/crates/tower-cmd/src/catalogs.rs +++ b/crates/tower-cmd/src/catalogs.rs @@ -54,15 +54,14 @@ pub async fn do_list(config: Config, args: &ArgMatches) { let all = cmd::get_bool_flag(args, "all"); let env = cmd::get_string_flag(args, "environment"); - let list_response = + let catalogs = output::with_spinner("Listing catalogs", api::list_catalogs(&config, &env, all)).await; let headers = vec!["Name", "Type", "Environment"] .into_iter() .map(str::to_string) .collect(); - let data = list_response - .catalogs + let data = catalogs .iter() .map(|catalog| { vec![ @@ -72,7 +71,7 @@ pub async fn do_list(config: Config, args: &ArgMatches) { ] }) .collect(); - output::table(headers, data, Some(&list_response.catalogs)); + output::table(headers, data, Some(&catalogs)); } pub async fn do_show(config: Config, args: &ArgMatches) { diff --git a/crates/tower-cmd/src/environments.rs b/crates/tower-cmd/src/environments.rs index 970677e4..a9dfad37 100644 --- a/crates/tower-cmd/src/environments.rs +++ b/crates/tower-cmd/src/environments.rs @@ -23,18 +23,18 @@ pub fn environments_cmd() -> Command { } pub async fn do_list(config: Config) { - let resp = output::with_spinner("Listing environments", api::list_environments(&config)).await; + let environments = + output::with_spinner("Listing environments", api::list_environments(&config)).await; let headers = vec!["Name".to_string()]; - let envs_data: Vec> = resp - .environments + let envs_data: Vec> = environments .iter() .map(|env| vec![env.name.clone()]) .collect(); // Display the table using the existing table function - output::table(headers, envs_data, Some(&resp.environments)); + output::table(headers, envs_data, Some(&environments)); } pub async fn do_create(config: Config, args: &ArgMatches) { diff --git a/crates/tower-cmd/src/mcp.rs b/crates/tower-cmd/src/mcp.rs index 0b069356..59cb2296 100644 --- a/crates/tower-cmd/src/mcp.rs +++ b/crates/tower-cmd/src/mcp.rs @@ -335,15 +335,14 @@ impl TowerService { } async fn list_teams_via_api(&self) -> Result { - let response = api::list_teams(&self.config).await.map_err(|e| { + let teams = api::list_teams(&self.config).await.map_err(|e| { McpError::internal_error( "Failed to list teams", Some(json!({"error": e.to_string()})), ) })?; - let teams: Vec = response - .teams + let teams: Vec = teams .into_iter() .map(|team| json!({"name": team.name})) .collect(); @@ -467,9 +466,8 @@ impl TowerService { #[tool(description = "List all apps in your Tower account")] async fn tower_apps_list(&self) -> Result { match api::list_apps(&self.config).await { - Ok(response) => { - let apps: Vec = response - .apps + Ok(apps) => { + let apps: Vec = apps .into_iter() .map(|app_summary| { let app = app_summary.app; @@ -594,7 +592,7 @@ impl TowerService { let all = request.all.as_deref() == Some("true"); match api::list_secrets(&self.config, environment, all).await { - Ok(response) => Self::json_success(json!({"secrets": response.secrets})), + Ok(secrets) => Self::json_success(json!({"secrets": secrets})), Err(e) => Self::error_result("Failed to list secrets", e), } } @@ -1036,9 +1034,8 @@ IMPORTANT REMINDERS: #[tool(description = "List all schedules for apps")] async fn tower_schedules_list(&self) -> Result { match api::list_schedules(&self.config, None, None).await { - Ok(response) => { - let schedules = response - .schedules + Ok(schedules) => { + let schedules = schedules .into_iter() .map(|mut schedule| { if let Some(parameters) = schedule.parameters.as_mut() { diff --git a/crates/tower-cmd/src/schedules.rs b/crates/tower-cmd/src/schedules.rs index cb6aa499..3fafd1d9 100644 --- a/crates/tower-cmd/src/schedules.rs +++ b/crates/tower-cmd/src/schedules.rs @@ -114,13 +114,13 @@ pub async fn do_list(config: Config, args: &ArgMatches) { let app = args.get_one::("app").map(|s| s.as_str()); let environment = args.get_one::("environment").map(|s| s.as_str()); - let response = output::with_spinner( + let schedules = output::with_spinner( "Listing schedules", api::list_schedules(&config, app, environment), ) .await; - if response.schedules.is_empty() { + if schedules.is_empty() { output::write("No schedules found.\n"); return; } @@ -130,8 +130,7 @@ pub async fn do_list(config: Config, args: &ArgMatches) { .map(str::to_string) .collect(); - let rows: Vec> = response - .schedules + let rows: Vec> = schedules .iter() .map(|schedule| { let status = match schedule.status { @@ -149,7 +148,7 @@ pub async fn do_list(config: Config, args: &ArgMatches) { }) .collect(); - output::table(headers, rows, Some(&response.schedules)); + output::table(headers, rows, Some(&schedules)); } pub async fn do_create(config: Config, args: &ArgMatches) { diff --git a/crates/tower-cmd/src/secrets.rs b/crates/tower-cmd/src/secrets.rs index f6baf5bd..16c67009 100644 --- a/crates/tower-cmd/src/secrets.rs +++ b/crates/tower-cmd/src/secrets.rs @@ -133,15 +133,14 @@ pub async fn do_list(config: Config, args: &ArgMatches) { .collect(); output::table(headers, data, Some(&list_response.secrets)); } else { - let list_response = + let secrets = output::with_spinner("Listing secrets", api::list_secrets(&config, &env, all)).await; let headers = vec!["Secret", "Environment", "Preview"] .into_iter() .map(str::to_string) .collect(); - let data = list_response - .secrets + let data = secrets .iter() .map(|secret| { vec![ @@ -151,7 +150,7 @@ pub async fn do_list(config: Config, args: &ArgMatches) { ] }) .collect(); - output::table(headers, data, Some(&list_response.secrets)); + output::table(headers, data, Some(&secrets)); } } diff --git a/crates/tower-cmd/src/teams.rs b/crates/tower-cmd/src/teams.rs index abeaa666..36783a9e 100644 --- a/crates/tower-cmd/src/teams.rs +++ b/crates/tower-cmd/src/teams.rs @@ -56,12 +56,11 @@ pub async fn do_list(config: Config) { } async fn do_list_via_api(config: &Config) { - let resp = output::with_spinner("Fetching teams", api::list_teams(config)).await; + let teams = output::with_spinner("Fetching teams", api::list_teams(config)).await; let headers = vec!["Name".to_string()]; - let teams_data: Vec> = resp - .teams + let teams_data: Vec> = teams .iter() .map(|team| vec![team.name.clone()]) .collect(); diff --git a/tests/integration/features/cli_pagination.feature b/tests/integration/features/cli_pagination.feature new file mode 100644 index 00000000..ada10629 --- /dev/null +++ b/tests/integration/features/cli_pagination.feature @@ -0,0 +1,16 @@ +@serial +Feature: CLI Pagination + As a developer using Tower CLI + I want all items to be returned from list commands + So that I don't miss apps or resources due to pagination limits + + Scenario: CLI apps list fetches all pages when results exceed page size + Given the mock API has 105 seeded apps + When I run "tower apps list" via CLI + Then the output should contain all 105 seeded app names + + Scenario: CLI apps list in JSON mode returns all paginated results + Given the mock API has 105 seeded apps + When I run "tower apps list --json" via CLI + Then the output should be valid JSON + And the JSON should contain at least 105 apps diff --git a/tests/integration/features/steps/cli_steps.py b/tests/integration/features/steps/cli_steps.py index b9a24d39..f2f82934 100644 --- a/tests/integration/features/steps/cli_steps.py +++ b/tests/integration/features/steps/cli_steps.py @@ -9,7 +9,8 @@ import re from datetime import datetime from pathlib import Path -from behave import given, when, then +import requests +from behave import given, when, then, step from dirty_equals import IsStr, IsPartialDict @@ -432,3 +433,46 @@ def step_app_description_should_be(context, expected_description): assert ( actual_description == expected_description ), f"Expected description '{expected_description}', got '{actual_description}'" + + +# Pagination test steps + + +@step("the mock API has {count:d} seeded apps") +def step_seed_apps(context, count): + """Seed the mock API with a number of apps to test pagination.""" + # Reset first to get a clean slate + requests.post(f"{context.tower_url}/test/reset") + # Seed apps (no page_size override — uses default 20, so >20 apps forces pagination) + resp = requests.post( + f"{context.tower_url}/test/seed-apps", + json={"count": count}, + ) + assert resp.status_code == 200, f"Failed to seed apps: {resp.text}" + context.seeded_app_count = count + + +@step("the output should contain all {count:d} seeded app names") +def step_output_should_contain_all_seeded_apps(context, count): + """Verify the CLI output contains all seeded app names.""" + # Strip ANSI codes for checking + output = re.sub(r"\x1b\[[0-9;]*[A-Za-z]", "", context.cli_output) + missing = [] + for i in range(count): + name = f"paginated-app-{i:03d}" + if name not in output: + missing.append(name) + assert not missing, ( + f"Missing {len(missing)} apps from output (first 5): {missing[:5]}\n" + f"Full output: {output[:2000]}" + ) + + +@step("the JSON should contain at least {count:d} apps") +def step_json_should_contain_at_least_n_apps(context, count): + """Verify JSON output contains at least the expected number of apps.""" + data = parse_cli_json(context) + assert isinstance(data, list), f"Expected JSON array, got: {type(data)}" + assert ( + len(data) >= count + ), f"Expected at least {count} apps in JSON, got {len(data)}" diff --git a/tests/integration/run_tests.py b/tests/integration/run_tests.py index 9b1174d4..b41b2544 100755 --- a/tests/integration/run_tests.py +++ b/tests/integration/run_tests.py @@ -188,10 +188,34 @@ def main(): else: log("Running integration tests...") - result = subprocess.run( - ["behave", str(test_dir)] + args, cwd=Path(__file__).parent, env=env + # Run parallel tests first (exclude @serial tagged features) + parallel_result = subprocess.run( + ["behave", str(test_dir), "--tags=~@serial"] + args, + cwd=Path(__file__).parent, + env=env, + ) + + # Run @serial tagged features sequentially (no --jobs flag) + serial_args = [a for a in args if a not in ("--jobs", "-j") and not a.isdigit()] + # Remove --jobs N pair from args + serial_args = [] + skip_next = False + for a in args: + if skip_next: + skip_next = False + continue + if a in ("--jobs", "-j"): + skip_next = True + continue + serial_args.append(a) + + serial_result = subprocess.run( + ["behave", str(test_dir), "--tags=@serial"] + serial_args, + cwd=Path(__file__).parent, + env=env, ) - return result.returncode + + return parallel_result.returncode or serial_result.returncode except KeyboardInterrupt: log("Tests interrupted by user") diff --git a/tests/mock-api-server/main.py b/tests/mock-api-server/main.py index 7faff7d0..3fcdd489 100644 --- a/tests/mock-api-server/main.py +++ b/tests/mock-api-server/main.py @@ -48,6 +48,7 @@ async def log_requests(request: Request, call_next): mock_runs_db = {} mock_schedules_db = {} mock_deployed_apps = set() # Track which apps have been deployed +mock_max_page_size: Optional[int] = None # Override max page size for testing # Pre-populate with test-app for CLI validation/spinner tests mock_apps_db["predeployed-test-app"] = { @@ -111,20 +112,22 @@ async def read_root(): # Placeholder for /v1/apps endpoints @app.get("/v1/apps") -async def list_apps(): - # Format apps as AppSummary objects +async def list_apps(page: Optional[int] = None, page_size: Optional[int] = None): + # Format apps as AppSummary objects (matching real API list format) app_summaries = [] + # Fields to exclude from list view (real API doesn't return these in list) + list_excluded_fields = {"run_results"} for app_data in mock_apps_db.values(): - app_summaries.append({"app": app_data, "runs": []}) # Empty runs for list view + app_for_list = { + k: v for k, v in app_data.items() if k not in list_excluded_fields + } + app_summaries.append({"app": app_for_list, "runs": []}) + + page_items, pages = paginate(app_summaries, page, page_size) return { - "apps": app_summaries, - "pages": { - "page": 1, - "total": len(mock_apps_db), - "num_pages": 1, - "page_size": 20, - }, + "apps": page_items, + "pages": pages, } @@ -364,15 +367,11 @@ async def cancel_run(name: str, seq: int): # Placeholder for /secrets endpoints @app.get("/v1/secrets") -async def list_secrets(): +async def list_secrets(page: Optional[int] = None, page_size: Optional[int] = None): + items, pages = paginate(list(mock_secrets_db.values()), page, page_size) return { - "secrets": list(mock_secrets_db.values()), - "pages": { - "page": 1, - "total": len(mock_secrets_db), - "num_pages": 1, - "page_size": 20, - }, + "secrets": items, + "pages": pages, } @@ -413,8 +412,9 @@ async def delete_secret(name: str, environment: str = "default"): # Placeholder for /teams endpoints @app.get("/v1/teams") -async def list_teams(): - return {"teams": list(mock_teams_db.values())} +async def list_teams(page: Optional[int] = None, page_size: Optional[int] = None): + items, pages = paginate(list(mock_teams_db.values()), page, page_size) + return {"teams": items, "pages": pages} @app.post("/v1/teams") @@ -458,6 +458,31 @@ async def describe_secrets_key(): return {"public_key": mock_public_key} +def paginate(items: list, page: Optional[int], page_size: Optional[int]) -> tuple: + """Apply pagination to a list of items. Returns (page_items, pages_metadata).""" + global mock_max_page_size + if page_size is None: + page_size = 20 + # Cap page_size if mock override is set (simulates server-side limit) + if mock_max_page_size is not None: + page_size = min(page_size, mock_max_page_size) + if page is None: + page = 0 + + total = len(items) + num_pages = max(1, (total + page_size - 1) // page_size) + start = page * page_size + end = start + page_size + page_items = items[start:end] + + return page_items, { + "page": page, + "total": total, + "num_pages": num_pages, + "page_size": page_size, + } + + def empty_paginated_response(key: str): """Create empty paginated response for any resource type.""" return {key: [], "pages": {"page": 1, "total": 0, "num_pages": 1, "page_size": 20}} @@ -638,16 +663,12 @@ async def stream_run_logs(name: str, seq: int): # Schedule endpoints @app.get("/v1/schedules") -async def list_schedules(): +async def list_schedules(page: Optional[int] = None, page_size: Optional[int] = None): """Mock endpoint for listing schedules.""" + items, pages = paginate(list(mock_schedules_db.values()), page, page_size) return { - "schedules": list(mock_schedules_db.values()), - "pages": { - "page": 1, - "total": len(mock_schedules_db), - "num_pages": 1, - "page_size": 20, - }, + "schedules": items, + "pages": pages, } @@ -708,3 +729,83 @@ async def delete_schedule(schedule_data: Dict[str, Any]): @app.get("/health") async def health_check(): return {"status": "healthy", "timestamp": datetime.datetime.now().isoformat()} + + +# Test helper endpoints (for seeding data in integration tests) +@app.post("/test/seed-apps") +async def seed_apps(data: Dict[str, Any]): + """Seed the mock apps DB with a specified number of apps.""" + global mock_max_page_size + count = data.get("count", 10) + page_size_override = data.get("page_size_override") + if page_size_override is not None: + mock_max_page_size = page_size_override + + for i in range(count): + name = f"paginated-app-{i:03d}" + mock_apps_db[name] = { + "name": name, + "owner": "mock_owner", + "short_description": f"App number {i}", + "version": None, + "schedule": None, + "created_at": now_iso(), + "next_run_at": None, + "health_status": "healthy", + "pending_timeout": 300, + "running_timeout": 0, + "run_results": { + "cancelled": 0, + "crashed": 0, + "errored": 0, + "exited": 0, + "pending": 0, + "retrying": 0, + "running": 0, + }, + "subdomain": None, + "is_externally_accessible": False, + "status": "active", + } + + return {"seeded": count} + + +@app.post("/test/reset") +async def reset_test_data(): + """Reset all mock data stores to initial state.""" + global mock_max_page_size + mock_max_page_size = None + mock_apps_db.clear() + mock_secrets_db.clear() + mock_teams_db.clear() + mock_runs_db.clear() + mock_schedules_db.clear() + mock_deployed_apps.clear() + + # Re-add the pre-populated test app + mock_apps_db["predeployed-test-app"] = { + "name": "predeployed-test-app", + "owner": "mock_owner", + "short_description": "Pre-existing test app for CLI tests", + "version": None, + "schedule": None, + "created_at": now_iso(), + "next_run_at": None, + "health_status": "healthy", + "pending_timeout": 300, + "running_timeout": 0, + "run_results": { + "cancelled": 0, + "crashed": 0, + "errored": 0, + "exited": 0, + "pending": 0, + "retrying": 0, + "running": 0, + }, + "subdomain": None, + "is_externally_accessible": False, + } + mock_deployed_apps.add("predeployed-test-app") + return {"status": "reset"} diff --git a/tests/mock-api-server/pyproject.toml b/tests/mock-api-server/pyproject.toml index fc24c4b0..011d6f85 100644 --- a/tests/mock-api-server/pyproject.toml +++ b/tests/mock-api-server/pyproject.toml @@ -6,7 +6,7 @@ dependencies = [ "fastapi==0.111.0", "uvicorn==0.30.1", ] -requires-python = ">=3.9" +requires-python = ">=3.9,<3.14" [build-system] requires = ["setuptools>=61.0"] diff --git a/tests/mock-api-server/tower_mock_api.egg-info/PKG-INFO b/tests/mock-api-server/tower_mock_api.egg-info/PKG-INFO index 7d46deca..ebcad901 100644 --- a/tests/mock-api-server/tower_mock_api.egg-info/PKG-INFO +++ b/tests/mock-api-server/tower_mock_api.egg-info/PKG-INFO @@ -2,6 +2,6 @@ Metadata-Version: 2.4 Name: tower-mock-api Version: 0.1.0 Summary: A mock API server for Tower CLI testing. -Requires-Python: >=3.9 +Requires-Python: <3.14,>=3.9 Requires-Dist: fastapi==0.111.0 Requires-Dist: uvicorn==0.30.1 diff --git a/tests/mock-api-server/uv.lock b/tests/mock-api-server/uv.lock index 3c3a88c4..0f582d76 100644 --- a/tests/mock-api-server/uv.lock +++ b/tests/mock-api-server/uv.lock @@ -1,6 +1,6 @@ version = 1 -revision = 2 -requires-python = ">=3.9" +revision = 3 +requires-python = ">=3.9, <3.14" resolution-markers = [ "python_full_version >= '3.10'", "python_full_version < '3.10'", @@ -420,17 +420,6 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/9c/5b/e398449080ce6b4c8fcadad57e51fa16f65768e1b142ba90b23ac5d10801/orjson-3.11.2-cp313-cp313-win32.whl", hash = "sha256:51dc033df2e4a4c91c0ba4f43247de99b3cbf42ee7a42ee2b2b2f76c8b2f2cb5", size = 124402, upload-time = "2025-08-12T15:11:44.036Z" }, { url = "https://files.pythonhosted.org/packages/b3/66/429e4608e124debfc4790bfc37131f6958e59510ba3b542d5fc163be8e5f/orjson-3.11.2-cp313-cp313-win_amd64.whl", hash = "sha256:29d91d74942b7436f29b5d1ed9bcfc3f6ef2d4f7c4997616509004679936650d", size = 119498, upload-time = "2025-08-12T15:11:45.864Z" }, { url = "https://files.pythonhosted.org/packages/7b/04/f8b5f317cce7ad3580a9ad12d7e2df0714dfa8a83328ecddd367af802f5b/orjson-3.11.2-cp313-cp313-win_arm64.whl", hash = "sha256:4ca4fb5ac21cd1e48028d4f708b1bb13e39c42d45614befd2ead004a8bba8535", size = 114051, upload-time = "2025-08-12T15:11:47.555Z" }, - { url = "https://files.pythonhosted.org/packages/74/83/2c363022b26c3c25b3708051a19d12f3374739bb81323f05b284392080c0/orjson-3.11.2-cp314-cp314-macosx_10_15_x86_64.macosx_11_0_arm64.macosx_10_15_universal2.whl", hash = "sha256:3dcba7101ea6a8d4ef060746c0f2e7aa8e2453a1012083e1ecce9726d7554cb7", size = 226406, upload-time = "2025-08-12T15:11:49.445Z" }, - { url = "https://files.pythonhosted.org/packages/b0/a7/aa3c973de0b33fc93b4bd71691665ffdfeae589ea9d0625584ab10a7d0f5/orjson-3.11.2-cp314-cp314-macosx_15_0_arm64.whl", hash = "sha256:15d17bdb76a142e1f55d91913e012e6e6769659daa6bfef3ef93f11083137e81", size = 115788, upload-time = "2025-08-12T15:11:50.992Z" }, - { url = "https://files.pythonhosted.org/packages/ef/f2/e45f233dfd09fdbb052ec46352363dca3906618e1a2b264959c18f809d0b/orjson-3.11.2-cp314-cp314-manylinux_2_34_aarch64.whl", hash = "sha256:53c9e81768c69d4b66b8876ec3c8e431c6e13477186d0db1089d82622bccd19f", size = 111318, upload-time = "2025-08-12T15:11:52.495Z" }, - { url = "https://files.pythonhosted.org/packages/3e/23/cf5a73c4da6987204cbbf93167f353ff0c5013f7c5e5ef845d4663a366da/orjson-3.11.2-cp314-cp314-manylinux_2_34_x86_64.whl", hash = "sha256:d4f13af59a7b84c1ca6b8a7ab70d608f61f7c44f9740cd42409e6ae7b6c8d8b7", size = 121231, upload-time = "2025-08-12T15:11:53.941Z" }, - { url = "https://files.pythonhosted.org/packages/40/1d/47468a398ae68a60cc21e599144e786e035bb12829cb587299ecebc088f1/orjson-3.11.2-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:bde64aa469b5ee46cc960ed241fae3721d6a8801dacb2ca3466547a2535951e4", size = 119204, upload-time = "2025-08-12T15:11:55.409Z" }, - { url = "https://files.pythonhosted.org/packages/4d/d9/f99433d89b288b5bc8836bffb32a643f805e673cf840ef8bab6e73ced0d1/orjson-3.11.2-cp314-cp314-musllinux_1_2_armv7l.whl", hash = "sha256:b5ca86300aeb383c8fa759566aca065878d3d98c3389d769b43f0a2e84d52c5f", size = 392237, upload-time = "2025-08-12T15:11:57.18Z" }, - { url = "https://files.pythonhosted.org/packages/d4/dc/1b9d80d40cebef603325623405136a29fb7d08c877a728c0943dd066c29a/orjson-3.11.2-cp314-cp314-musllinux_1_2_i686.whl", hash = "sha256:24e32a558ebed73a6a71c8f1cbc163a7dd5132da5270ff3d8eeb727f4b6d1bc7", size = 134578, upload-time = "2025-08-12T15:11:58.844Z" }, - { url = "https://files.pythonhosted.org/packages/45/b3/72e7a4c5b6485ef4e83ef6aba7f1dd041002bad3eb5d1d106ca5b0fc02c6/orjson-3.11.2-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:e36319a5d15b97e4344110517450396845cc6789aed712b1fbf83c1bd95792f6", size = 123799, upload-time = "2025-08-12T15:12:00.352Z" }, - { url = "https://files.pythonhosted.org/packages/c8/3e/a3d76b392e7acf9b34dc277171aad85efd6accc75089bb35b4c614990ea9/orjson-3.11.2-cp314-cp314-win32.whl", hash = "sha256:40193ada63fab25e35703454d65b6afc71dbc65f20041cb46c6d91709141ef7f", size = 124461, upload-time = "2025-08-12T15:12:01.854Z" }, - { url = "https://files.pythonhosted.org/packages/fb/e3/75c6a596ff8df9e4a5894813ff56695f0a218e6ea99420b4a645c4f7795d/orjson-3.11.2-cp314-cp314-win_amd64.whl", hash = "sha256:7c8ac5f6b682d3494217085cf04dadae66efee45349ad4ee2a1da3c97e2305a8", size = 119494, upload-time = "2025-08-12T15:12:03.337Z" }, - { url = "https://files.pythonhosted.org/packages/5b/3d/9e74742fc261c5ca473c96bb3344d03995869e1dc6402772c60afb97736a/orjson-3.11.2-cp314-cp314-win_arm64.whl", hash = "sha256:21cf261e8e79284242e4cb1e5924df16ae28255184aafeff19be1405f6d33f67", size = 114046, upload-time = "2025-08-12T15:12:04.87Z" }, { url = "https://files.pythonhosted.org/packages/4f/08/8ebc6dcac0938376b7e61dff432c33958505ae4c185dda3fa1e6f46ac40b/orjson-3.11.2-cp39-cp39-macosx_10_15_x86_64.macosx_11_0_arm64.macosx_10_15_universal2.whl", hash = "sha256:957f10c7b5bce3d3f2ad577f3b307c784f5dabafcce3b836229c269c11841c86", size = 226498, upload-time = "2025-08-12T15:12:06.51Z" }, { url = "https://files.pythonhosted.org/packages/ff/74/a97c8e2bc75a27dfeeb1b289645053f1889125447f3b7484a2e34ac55d2a/orjson-3.11.2-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:8a669e31ab8eb466c9142ac7a4be2bb2758ad236a31ef40dcd4cf8774ab40f33", size = 111529, upload-time = "2025-08-12T15:12:08.21Z" }, { url = "https://files.pythonhosted.org/packages/78/c3/55121b5722a1a4e4610a411866cfeada5314dc498cd42435b590353009d2/orjson-3.11.2-cp39-cp39-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:adedf7d887416c51ad49de3c53b111887e0b63db36c6eb9f846a8430952303d8", size = 116213, upload-time = "2025-08-12T15:12:09.776Z" }, @@ -812,28 +801,6 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/d8/50/8856e24bec5e2fc7f775d867aeb7a3f137359356200ac44658f1f2c834b2/ujson-5.11.0-cp313-cp313-win32.whl", hash = "sha256:8fa2af7c1459204b7a42e98263b069bd535ea0cd978b4d6982f35af5a04a4241", size = 39753, upload-time = "2025-08-20T11:56:01.345Z" }, { url = "https://files.pythonhosted.org/packages/5b/d8/1baee0f4179a4d0f5ce086832147b6cc9b7731c24ca08e14a3fdb8d39c32/ujson-5.11.0-cp313-cp313-win_amd64.whl", hash = "sha256:34032aeca4510a7c7102bd5933f59a37f63891f30a0706fb46487ab6f0edf8f0", size = 43866, upload-time = "2025-08-20T11:56:02.552Z" }, { url = "https://files.pythonhosted.org/packages/a9/8c/6d85ef5be82c6d66adced3ec5ef23353ed710a11f70b0b6a836878396334/ujson-5.11.0-cp313-cp313-win_arm64.whl", hash = "sha256:ce076f2df2e1aa62b685086fbad67f2b1d3048369664b4cdccc50707325401f9", size = 38363, upload-time = "2025-08-20T11:56:03.688Z" }, - { url = "https://files.pythonhosted.org/packages/28/08/4518146f4984d112764b1dfa6fb7bad691c44a401adadaa5e23ccd930053/ujson-5.11.0-cp314-cp314-macosx_10_13_x86_64.whl", hash = "sha256:65724738c73645db88f70ba1f2e6fb678f913281804d5da2fd02c8c5839af302", size = 55462, upload-time = "2025-08-20T11:56:04.873Z" }, - { url = "https://files.pythonhosted.org/packages/29/37/2107b9a62168867a692654d8766b81bd2fd1e1ba13e2ec90555861e02b0c/ujson-5.11.0-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:29113c003ca33ab71b1b480bde952fbab2a0b6b03a4ee4c3d71687cdcbd1a29d", size = 53246, upload-time = "2025-08-20T11:56:06.054Z" }, - { url = "https://files.pythonhosted.org/packages/9b/f8/25583c70f83788edbe3ca62ce6c1b79eff465d78dec5eb2b2b56b3e98b33/ujson-5.11.0-cp314-cp314-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:c44c703842024d796b4c78542a6fcd5c3cb948b9fc2a73ee65b9c86a22ee3638", size = 57631, upload-time = "2025-08-20T11:56:07.374Z" }, - { url = "https://files.pythonhosted.org/packages/ed/ca/19b3a632933a09d696f10dc1b0dfa1d692e65ad507d12340116ce4f67967/ujson-5.11.0-cp314-cp314-manylinux_2_24_i686.manylinux_2_28_i686.whl", hash = "sha256:e750c436fb90edf85585f5c62a35b35082502383840962c6983403d1bd96a02c", size = 59877, upload-time = "2025-08-20T11:56:08.534Z" }, - { url = "https://files.pythonhosted.org/packages/55/7a/4572af5324ad4b2bfdd2321e898a527050290147b4ea337a79a0e4e87ec7/ujson-5.11.0-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:f278b31a7c52eb0947b2db55a5133fbc46b6f0ef49972cd1a80843b72e135aba", size = 57363, upload-time = "2025-08-20T11:56:09.758Z" }, - { url = "https://files.pythonhosted.org/packages/7b/71/a2b8c19cf4e1efe53cf439cdf7198ac60ae15471d2f1040b490c1f0f831f/ujson-5.11.0-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:ab2cb8351d976e788669c8281465d44d4e94413718af497b4e7342d7b2f78018", size = 1036394, upload-time = "2025-08-20T11:56:11.168Z" }, - { url = "https://files.pythonhosted.org/packages/7a/3e/7b98668cba3bb3735929c31b999b374ebc02c19dfa98dfebaeeb5c8597ca/ujson-5.11.0-cp314-cp314-musllinux_1_2_i686.whl", hash = "sha256:090b4d11b380ae25453100b722d0609d5051ffe98f80ec52853ccf8249dfd840", size = 1195837, upload-time = "2025-08-20T11:56:12.6Z" }, - { url = "https://files.pythonhosted.org/packages/a1/ea/8870f208c20b43571a5c409ebb2fe9b9dba5f494e9e60f9314ac01ea8f78/ujson-5.11.0-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:80017e870d882d5517d28995b62e4e518a894f932f1e242cbc802a2fd64d365c", size = 1088837, upload-time = "2025-08-20T11:56:14.15Z" }, - { url = "https://files.pythonhosted.org/packages/63/b6/c0e6607e37fa47929920a685a968c6b990a802dec65e9c5181e97845985d/ujson-5.11.0-cp314-cp314-win32.whl", hash = "sha256:1d663b96eb34c93392e9caae19c099ec4133ba21654b081956613327f0e973ac", size = 41022, upload-time = "2025-08-20T11:56:15.509Z" }, - { url = "https://files.pythonhosted.org/packages/4e/56/f4fe86b4c9000affd63e9219e59b222dc48b01c534533093e798bf617a7e/ujson-5.11.0-cp314-cp314-win_amd64.whl", hash = "sha256:849e65b696f0d242833f1df4182096cedc50d414215d1371fca85c541fbff629", size = 45111, upload-time = "2025-08-20T11:56:16.597Z" }, - { url = "https://files.pythonhosted.org/packages/0a/f3/669437f0280308db4783b12a6d88c00730b394327d8334cc7a32ef218e64/ujson-5.11.0-cp314-cp314-win_arm64.whl", hash = "sha256:e73df8648c9470af2b6a6bf5250d4744ad2cf3d774dcf8c6e31f018bdd04d764", size = 39682, upload-time = "2025-08-20T11:56:17.763Z" }, - { url = "https://files.pythonhosted.org/packages/6e/cd/e9809b064a89fe5c4184649adeb13c1b98652db3f8518980b04227358574/ujson-5.11.0-cp314-cp314t-macosx_10_13_x86_64.whl", hash = "sha256:de6e88f62796372fba1de973c11138f197d3e0e1d80bcb2b8aae1e826096d433", size = 55759, upload-time = "2025-08-20T11:56:18.882Z" }, - { url = "https://files.pythonhosted.org/packages/1b/be/ae26a6321179ebbb3a2e2685b9007c71bcda41ad7a77bbbe164005e956fc/ujson-5.11.0-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:49e56ef8066f11b80d620985ae36869a3ff7e4b74c3b6129182ec5d1df0255f3", size = 53634, upload-time = "2025-08-20T11:56:20.012Z" }, - { url = "https://files.pythonhosted.org/packages/ae/e9/fb4a220ee6939db099f4cfeeae796ecb91e7584ad4d445d4ca7f994a9135/ujson-5.11.0-cp314-cp314t-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:1a325fd2c3a056cf6c8e023f74a0c478dd282a93141356ae7f16d5309f5ff823", size = 58547, upload-time = "2025-08-20T11:56:21.175Z" }, - { url = "https://files.pythonhosted.org/packages/bd/f8/fc4b952b8f5fea09ea3397a0bd0ad019e474b204cabcb947cead5d4d1ffc/ujson-5.11.0-cp314-cp314t-manylinux_2_24_i686.manylinux_2_28_i686.whl", hash = "sha256:a0af6574fc1d9d53f4ff371f58c96673e6d988ed2b5bf666a6143c782fa007e9", size = 60489, upload-time = "2025-08-20T11:56:22.342Z" }, - { url = "https://files.pythonhosted.org/packages/2e/e5/af5491dfda4f8b77e24cf3da68ee0d1552f99a13e5c622f4cef1380925c3/ujson-5.11.0-cp314-cp314t-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:10f29e71ecf4ecd93a6610bd8efa8e7b6467454a363c3d6416db65de883eb076", size = 58035, upload-time = "2025-08-20T11:56:23.92Z" }, - { url = "https://files.pythonhosted.org/packages/c4/09/0945349dd41f25cc8c38d78ace49f14c5052c5bbb7257d2f466fa7bdb533/ujson-5.11.0-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:1a0a9b76a89827a592656fe12e000cf4f12da9692f51a841a4a07aa4c7ecc41c", size = 1037212, upload-time = "2025-08-20T11:56:25.274Z" }, - { url = "https://files.pythonhosted.org/packages/49/44/8e04496acb3d5a1cbee3a54828d9652f67a37523efa3d3b18a347339680a/ujson-5.11.0-cp314-cp314t-musllinux_1_2_i686.whl", hash = "sha256:b16930f6a0753cdc7d637b33b4e8f10d5e351e1fb83872ba6375f1e87be39746", size = 1196500, upload-time = "2025-08-20T11:56:27.517Z" }, - { url = "https://files.pythonhosted.org/packages/64/ae/4bc825860d679a0f208a19af2f39206dfd804ace2403330fdc3170334a2f/ujson-5.11.0-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:04c41afc195fd477a59db3a84d5b83a871bd648ef371cf8c6f43072d89144eef", size = 1089487, upload-time = "2025-08-20T11:56:29.07Z" }, - { url = "https://files.pythonhosted.org/packages/30/ed/5a057199fb0a5deabe0957073a1c1c1c02a3e99476cd03daee98ea21fa57/ujson-5.11.0-cp314-cp314t-win32.whl", hash = "sha256:aa6d7a5e09217ff93234e050e3e380da62b084e26b9f2e277d2606406a2fc2e5", size = 41859, upload-time = "2025-08-20T11:56:30.495Z" }, - { url = "https://files.pythonhosted.org/packages/aa/03/b19c6176bdf1dc13ed84b886e99677a52764861b6cc023d5e7b6ebda249d/ujson-5.11.0-cp314-cp314t-win_amd64.whl", hash = "sha256:48055e1061c1bb1f79e75b4ac39e821f3f35a9b82de17fce92c3140149009bec", size = 46183, upload-time = "2025-08-20T11:56:31.574Z" }, - { url = "https://files.pythonhosted.org/packages/5d/ca/a0413a3874b2dc1708b8796ca895bf363292f9c70b2e8ca482b7dbc0259d/ujson-5.11.0-cp314-cp314t-win_arm64.whl", hash = "sha256:1194b943e951092db611011cb8dbdb6cf94a3b816ed07906e14d3bc6ce0e90ab", size = 40264, upload-time = "2025-08-20T11:56:32.773Z" }, { url = "https://files.pythonhosted.org/packages/39/bf/c6f59cdf74ce70bd937b97c31c42fd04a5ed1a9222d0197e77e4bd899841/ujson-5.11.0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:65f3c279f4ed4bf9131b11972040200c66ae040368abdbb21596bf1564899694", size = 55283, upload-time = "2025-08-20T11:56:33.947Z" }, { url = "https://files.pythonhosted.org/packages/8d/c1/a52d55638c0c644b8a63059f95ad5ffcb4ad8f60d8bc3e8680f78e77cc75/ujson-5.11.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:99c49400572cd77050894e16864a335225191fd72a818ea6423ae1a06467beac", size = 53168, upload-time = "2025-08-20T11:56:35.141Z" }, { url = "https://files.pythonhosted.org/packages/75/6c/e64e19a01d59c8187d01ffc752ee3792a09f5edaaac2a0402de004459dd7/ujson-5.11.0-cp39-cp39-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:0654a2691fc252c3c525e3d034bb27b8a7546c9d3eb33cd29ce6c9feda361a6a", size = 57809, upload-time = "2025-08-20T11:56:36.293Z" }, @@ -987,26 +954,6 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/65/95/fe479b2664f19be4cf5ceeb21be05afd491d95f142e72d26a42f41b7c4f8/watchfiles-1.1.0-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b067915e3c3936966a8607f6fe5487df0c9c4afb85226613b520890049deea20", size = 451864, upload-time = "2025-06-15T19:06:02.144Z" }, { url = "https://files.pythonhosted.org/packages/d3/8a/3c4af14b93a15ce55901cd7a92e1a4701910f1768c78fb30f61d2b79785b/watchfiles-1.1.0-cp313-cp313t-musllinux_1_1_aarch64.whl", hash = "sha256:9c733cda03b6d636b4219625a4acb5c6ffb10803338e437fb614fef9516825ef", size = 625626, upload-time = "2025-06-15T19:06:03.578Z" }, { url = "https://files.pythonhosted.org/packages/da/f5/cf6aa047d4d9e128f4b7cde615236a915673775ef171ff85971d698f3c2c/watchfiles-1.1.0-cp313-cp313t-musllinux_1_1_x86_64.whl", hash = "sha256:cc08ef8b90d78bfac66f0def80240b0197008e4852c9f285907377b2947ffdcb", size = 622744, upload-time = "2025-06-15T19:06:05.066Z" }, - { url = "https://files.pythonhosted.org/packages/2c/00/70f75c47f05dea6fd30df90f047765f6fc2d6eb8b5a3921379b0b04defa2/watchfiles-1.1.0-cp314-cp314-macosx_10_12_x86_64.whl", hash = "sha256:9974d2f7dc561cce3bb88dfa8eb309dab64c729de85fba32e98d75cf24b66297", size = 402114, upload-time = "2025-06-15T19:06:06.186Z" }, - { url = "https://files.pythonhosted.org/packages/53/03/acd69c48db4a1ed1de26b349d94077cca2238ff98fd64393f3e97484cae6/watchfiles-1.1.0-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:c68e9f1fcb4d43798ad8814c4c1b61547b014b667216cb754e606bfade587018", size = 393879, upload-time = "2025-06-15T19:06:07.369Z" }, - { url = "https://files.pythonhosted.org/packages/2f/c8/a9a2a6f9c8baa4eceae5887fecd421e1b7ce86802bcfc8b6a942e2add834/watchfiles-1.1.0-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:95ab1594377effac17110e1352989bdd7bdfca9ff0e5eeccd8c69c5389b826d0", size = 450026, upload-time = "2025-06-15T19:06:08.476Z" }, - { url = "https://files.pythonhosted.org/packages/fe/51/d572260d98388e6e2b967425c985e07d47ee6f62e6455cefb46a6e06eda5/watchfiles-1.1.0-cp314-cp314-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:fba9b62da882c1be1280a7584ec4515d0a6006a94d6e5819730ec2eab60ffe12", size = 457917, upload-time = "2025-06-15T19:06:09.988Z" }, - { url = "https://files.pythonhosted.org/packages/c6/2d/4258e52917bf9f12909b6ec314ff9636276f3542f9d3807d143f27309104/watchfiles-1.1.0-cp314-cp314-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:3434e401f3ce0ed6b42569128b3d1e3af773d7ec18751b918b89cd49c14eaafb", size = 483602, upload-time = "2025-06-15T19:06:11.088Z" }, - { url = "https://files.pythonhosted.org/packages/84/99/bee17a5f341a4345fe7b7972a475809af9e528deba056f8963d61ea49f75/watchfiles-1.1.0-cp314-cp314-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:fa257a4d0d21fcbca5b5fcba9dca5a78011cb93c0323fb8855c6d2dfbc76eb77", size = 596758, upload-time = "2025-06-15T19:06:12.197Z" }, - { url = "https://files.pythonhosted.org/packages/40/76/e4bec1d59b25b89d2b0716b41b461ed655a9a53c60dc78ad5771fda5b3e6/watchfiles-1.1.0-cp314-cp314-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:7fd1b3879a578a8ec2076c7961076df540b9af317123f84569f5a9ddee64ce92", size = 477601, upload-time = "2025-06-15T19:06:13.391Z" }, - { url = "https://files.pythonhosted.org/packages/1f/fa/a514292956f4a9ce3c567ec0c13cce427c158e9f272062685a8a727d08fc/watchfiles-1.1.0-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:62cc7a30eeb0e20ecc5f4bd113cd69dcdb745a07c68c0370cea919f373f65d9e", size = 451936, upload-time = "2025-06-15T19:06:14.656Z" }, - { url = "https://files.pythonhosted.org/packages/32/5d/c3bf927ec3bbeb4566984eba8dd7a8eb69569400f5509904545576741f88/watchfiles-1.1.0-cp314-cp314-musllinux_1_1_aarch64.whl", hash = "sha256:891c69e027748b4a73847335d208e374ce54ca3c335907d381fde4e41661b13b", size = 626243, upload-time = "2025-06-15T19:06:16.232Z" }, - { url = "https://files.pythonhosted.org/packages/e6/65/6e12c042f1a68c556802a84d54bb06d35577c81e29fba14019562479159c/watchfiles-1.1.0-cp314-cp314-musllinux_1_1_x86_64.whl", hash = "sha256:12fe8eaffaf0faa7906895b4f8bb88264035b3f0243275e0bf24af0436b27259", size = 623073, upload-time = "2025-06-15T19:06:17.457Z" }, - { url = "https://files.pythonhosted.org/packages/89/ab/7f79d9bf57329e7cbb0a6fd4c7bd7d0cee1e4a8ef0041459f5409da3506c/watchfiles-1.1.0-cp314-cp314t-macosx_10_12_x86_64.whl", hash = "sha256:bfe3c517c283e484843cb2e357dd57ba009cff351edf45fb455b5fbd1f45b15f", size = 400872, upload-time = "2025-06-15T19:06:18.57Z" }, - { url = "https://files.pythonhosted.org/packages/df/d5/3f7bf9912798e9e6c516094db6b8932df53b223660c781ee37607030b6d3/watchfiles-1.1.0-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:a9ccbf1f129480ed3044f540c0fdbc4ee556f7175e5ab40fe077ff6baf286d4e", size = 392877, upload-time = "2025-06-15T19:06:19.55Z" }, - { url = "https://files.pythonhosted.org/packages/0d/c5/54ec7601a2798604e01c75294770dbee8150e81c6e471445d7601610b495/watchfiles-1.1.0-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ba0e3255b0396cac3cc7bbace76404dd72b5438bf0d8e7cefa2f79a7f3649caa", size = 449645, upload-time = "2025-06-15T19:06:20.66Z" }, - { url = "https://files.pythonhosted.org/packages/0a/04/c2f44afc3b2fce21ca0b7802cbd37ed90a29874f96069ed30a36dfe57c2b/watchfiles-1.1.0-cp314-cp314t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:4281cd9fce9fc0a9dbf0fc1217f39bf9cf2b4d315d9626ef1d4e87b84699e7e8", size = 457424, upload-time = "2025-06-15T19:06:21.712Z" }, - { url = "https://files.pythonhosted.org/packages/9f/b0/eec32cb6c14d248095261a04f290636da3df3119d4040ef91a4a50b29fa5/watchfiles-1.1.0-cp314-cp314t-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:6d2404af8db1329f9a3c9b79ff63e0ae7131986446901582067d9304ae8aaf7f", size = 481584, upload-time = "2025-06-15T19:06:22.777Z" }, - { url = "https://files.pythonhosted.org/packages/d1/e2/ca4bb71c68a937d7145aa25709e4f5d68eb7698a25ce266e84b55d591bbd/watchfiles-1.1.0-cp314-cp314t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:e78b6ed8165996013165eeabd875c5dfc19d41b54f94b40e9fff0eb3193e5e8e", size = 596675, upload-time = "2025-06-15T19:06:24.226Z" }, - { url = "https://files.pythonhosted.org/packages/a1/dd/b0e4b7fb5acf783816bc950180a6cd7c6c1d2cf7e9372c0ea634e722712b/watchfiles-1.1.0-cp314-cp314t-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:249590eb75ccc117f488e2fabd1bfa33c580e24b96f00658ad88e38844a040bb", size = 477363, upload-time = "2025-06-15T19:06:25.42Z" }, - { url = "https://files.pythonhosted.org/packages/69/c4/088825b75489cb5b6a761a4542645718893d395d8c530b38734f19da44d2/watchfiles-1.1.0-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d05686b5487cfa2e2c28ff1aa370ea3e6c5accfe6435944ddea1e10d93872147", size = 452240, upload-time = "2025-06-15T19:06:26.552Z" }, - { url = "https://files.pythonhosted.org/packages/10/8c/22b074814970eeef43b7c44df98c3e9667c1f7bf5b83e0ff0201b0bd43f9/watchfiles-1.1.0-cp314-cp314t-musllinux_1_1_aarch64.whl", hash = "sha256:d0e10e6f8f6dc5762adee7dece33b722282e1f59aa6a55da5d493a97282fedd8", size = 625607, upload-time = "2025-06-15T19:06:27.606Z" }, - { url = "https://files.pythonhosted.org/packages/32/fa/a4f5c2046385492b2273213ef815bf71a0d4c1943b784fb904e184e30201/watchfiles-1.1.0-cp314-cp314t-musllinux_1_1_x86_64.whl", hash = "sha256:af06c863f152005c7592df1d6a7009c836a247c9d8adb78fef8575a5a98699db", size = 623315, upload-time = "2025-06-15T19:06:29.076Z" }, { url = "https://files.pythonhosted.org/packages/47/8a/a45db804b9f0740f8408626ab2bca89c3136432e57c4673b50180bf85dd9/watchfiles-1.1.0-cp39-cp39-macosx_10_12_x86_64.whl", hash = "sha256:865c8e95713744cf5ae261f3067861e9da5f1370ba91fc536431e29b418676fa", size = 406400, upload-time = "2025-06-15T19:06:30.233Z" }, { url = "https://files.pythonhosted.org/packages/64/06/a08684f628fb41addd451845aceedc2407dc3d843b4b060a7c4350ddee0c/watchfiles-1.1.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:42f92befc848bb7a19658f21f3e7bae80d7d005d13891c62c2cd4d4d0abb3433", size = 397920, upload-time = "2025-06-15T19:06:31.315Z" }, { url = "https://files.pythonhosted.org/packages/79/e6/e10d5675af653b1b07d4156906858041149ca222edaf8995877f2605ba9e/watchfiles-1.1.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:aa0cc8365ab29487eb4f9979fd41b22549853389e22d5de3f134a6796e1b05a4", size = 451196, upload-time = "2025-06-15T19:06:32.435Z" },