Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion client-sdks/platform/openapi.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion client-sdks/platform/rust/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use progenitor::{GenerationSettings, InterfaceStyle};
#[path = "build/openapi_filter.rs"]
mod openapi_filter;

// The deduplicated filtered client currently generates about 195,000 lines. Leave enough
// The deduplicated filtered client currently generates about 214,000 lines. Leave enough
// room for normal API evolution while catching accidental graph explosions.
const MAX_FILTERED_GENERATED_LINES: usize = 240_000;

Expand Down
1 change: 1 addition & 0 deletions client-sdks/platform/rust/build/openapi_filter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ pub const REQUIRED_OPERATION_IDS: &[&str] = &[
"resolve",
"retryDeployment",
"revokeAPIKey",
"revokeAccessRequest",
"setDeploymentGroupExternalId",
"setDeploymentReleaseChannel",
"verifyOperationCheck",
Expand Down
2 changes: 1 addition & 1 deletion client-sdks/platform/rust/openapi-3.0.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion client-sdks/platform/rust/openapi.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use alien_platform_api::types::Project;
use serde_json::json;

// A public custom image with a linux/amd64 variant runs on Azure from its registry digest, so the
// saved Azure half names a `registryImage` and no `catalogImage`.
// saved Azure half names a `registryImage`.
fn project_with_a_custom_image_on_azure() -> serde_json::Value {
json!({
"id": "prj_aaaaaaaaaaaaaaaaaaaaaaaaaaaa",
Expand All @@ -28,9 +28,9 @@ fn project_with_a_custom_image_on_azure() -> serde_json::Value {
}

#[test]
fn decodes_an_azure_half_with_a_registry_image_and_no_catalog_image() {
let project: Project = serde_json::from_value(project_with_a_custom_image_on_azure())
.expect("project decodes");
fn decodes_an_azure_half_with_a_registry_image() {
let project: Project =
serde_json::from_value(project_with_a_custom_image_on_azure()).expect("project decodes");
let azure = project
.project_capabilities
.expect("capabilities decode")
Expand All @@ -44,6 +44,5 @@ fn decodes_an_azure_half_with_a_registry_image_and_no_catalog_image() {
azure.registry_image.as_ref().map(|image| image.as_str()),
Some("docker.io/library/python@sha256:bbb")
);
assert!(azure.catalog_image.is_none());
assert_eq!(azure.idle_suspend_seconds.get(), 900);
}
Loading
Loading