Skip to content

Commit

Permalink
Ensure that supergraph versions are respected in all commands
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanrainer committed Oct 29, 2024
1 parent 21e8131 commit 38ffb9f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/e2e/supergraph/compose.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
use std::env;
use std::process::Command;

use assert_cmd::prelude::CommandCargoExt;
Expand Down Expand Up @@ -27,7 +28,9 @@ async fn e2e_test_run_rover_supergraph(retail_supergraph: &RetailSupergraph<'_>)
"accept",
]);
cmd.current_dir(retail_supergraph.get_working_directory());

if let Ok(version) = env::var("APOLLO_ROVER_DEV_COMPOSITION_VERSION") {
cmd.env("FEDERATION_VERSION", version);
};
let match_set: Vec<String> = retail_supergraph
.get_subgraph_names()
.into_iter()
Expand Down

0 comments on commit 38ffb9f

Please sign in to comment.