Skip to content

Commit defae1d

Browse files
committed
test(e2e): use canonical sandbox receipt field
Signed-off-by: Drew Newberry <anewberry@nvidia.com>
1 parent 688eb7c commit defae1d

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎crates/openshell-cli/tests/provider_commands_integration.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1964,7 +1964,7 @@ async fn provider_readiness_mutations_reject_unbound_receipts_before_output_or_p
19641964
("kind", |receipt| {
19651965
receipt.kind = ProviderMutationKind::Observe.into();
19661966
}),
1967-
("sandbox_name", |receipt| {
1967+
("sandbox", |receipt| {
19681968
receipt.desired.as_mut().expect("desired identity").sandbox = "other".to_string();
19691969
}),
19701970
("sandbox_id", |receipt| {

‎e2e/rust/tests/provider_readiness.rs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1021,7 +1021,7 @@ impl MutationReceipt {
10211021
if receipt["mutation_id"] != mutation_id
10221022
|| receipt["provider_name"] != provider
10231023
|| receipt["kind"] != kind
1024-
|| desired["sandbox_name"] != sandbox.name
1024+
|| desired["sandbox"] != sandbox.name
10251025
|| status["state"] != "persisted"
10261026
|| status["wait_outcome"] != "not_requested"
10271027
{
@@ -1062,7 +1062,7 @@ impl MutationReceipt {
10621062
|| self.receipt["provider_name"] != previous.receipt["provider_name"]
10631063
|| self.receipt["workspace"] != previous.receipt["workspace"]
10641064
|| desired["sandbox_id"] != preceding["sandbox_id"]
1065-
|| desired["sandbox_name"] != preceding["sandbox_name"]
1065+
|| desired["sandbox"] != preceding["sandbox"]
10661066
|| desired["provider_env_revision"] == preceding["provider_env_revision"]
10671067
{
10681068
return Err(

0 commit comments

Comments
 (0)