Skip to content
Open
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
72 changes: 36 additions & 36 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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/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.

21 changes: 21 additions & 0 deletions client-sdks/platform/rust/tests/stack_by_platform.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
use alien_platform_api::types::StackByPlatform;
use serde_json::json;

#[test]
fn deserializes_platform_stacks_without_dropping_them() {
let stack: StackByPlatform = serde_json::from_value(json!({
"aws": {
"id": "example",
"resources": []
}
}))
.expect("a release stack returned by the platform API should deserialize");

assert_eq!(
stack.aws,
Some(json!({
"id": "example",
"resources": []
}))
);
}
Loading
Loading