Skip to content

Commit

Permalink
fixups after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
davepacheco committed Feb 23, 2024
1 parent 0fd3e27 commit dd72afd
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
12 changes: 9 additions & 3 deletions nexus/deployment/src/blueprint_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -749,12 +749,14 @@ pub mod test {
let initial_blueprint =
BlueprintBuilder::build_initial_from_collection(
&system_builder.to_collection().unwrap(),
Generation::new(),
&policy,
"test suite",
)
.unwrap();
let mut builder = BlueprintBuilder::new_based_on(
&initial_blueprint,
Generation::new(),
&policy,
"test suite",
)
Expand Down Expand Up @@ -918,9 +920,13 @@ pub mod test {
let new_sled_id = Uuid::new_v4();
let _ = system.sled(SledBuilder::new().id(new_sled_id)).unwrap();
let policy = system.to_policy().unwrap();
let mut builder =
BlueprintBuilder::new_based_on(&blueprint2, &policy, "test_basic")
.expect("failed to create builder");
let mut builder = BlueprintBuilder::new_based_on(
&blueprint2,
Generation::new(),
&policy,
"test_basic",
)
.expect("failed to create builder");
builder.sled_ensure_zone_ntp(new_sled_id).unwrap();
let new_sled_resources = policy.sleds.get(&new_sled_id).unwrap();
for pool_name in &new_sled_resources.zpools {
Expand Down
2 changes: 2 additions & 0 deletions nexus/deployment/src/synthetic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ use omicron_common::address::NEXUS_REDUNDANCY;
use omicron_common::address::RACK_PREFIX;
use omicron_common::address::SLED_PREFIX;
use omicron_common::api::external::ByteCount;
use omicron_common::api::external::Generation;
use std::collections::BTreeSet;
use std::fmt::Debug;
use std::net::Ipv4Addr;
Expand Down Expand Up @@ -247,6 +248,7 @@ impl SyntheticSystemBuilder {
pub fn to_blueprint(&self, creator: &str) -> anyhow::Result<Blueprint> {
BlueprintBuilder::build_initial_from_collection(
&self.to_collection()?,
Generation::new(),
&self.to_policy()?,
creator,
)
Expand Down

0 comments on commit dd72afd

Please sign in to comment.