Skip to content

Commit

Permalink
fix conductor
Browse files Browse the repository at this point in the history
  • Loading branch information
nhudson committed Sep 5, 2024
1 parent 3ec422b commit 6dcaffb
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion conductor/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 conductor/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -771,7 +771,7 @@ async fn init_cloud_perms(
..Default::default()
};

coredb_spec.backup = backup;
coredb_spec.backup = Some(backup);
coredb_spec.serviceAccountTemplate = service_account_template;

Ok(())
Expand Down
13 changes: 10 additions & 3 deletions conductor/tests/integration_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -313,12 +313,19 @@ mod test {
let new_backup_spec = update_coredb.spec.backup.clone();

// assert that the backup.schedule for old_backup_spec are equal to new_backup_spec
assert_eq!(old_backup_spec.schedule, new_backup_spec.schedule);
assert_eq!(
old_backup_spec.as_ref().and_then(|b| b.schedule.clone()),
new_backup_spec.as_ref().and_then(|b| b.schedule.clone())
);

// assert that the destination paths for old_backup_spec are equal to new_backup_spec
assert_eq!(
old_backup_spec.destinationPath,
new_backup_spec.destinationPath
old_backup_spec
.as_ref()
.and_then(|b| b.destinationPath.clone()),
new_backup_spec
.as_ref()
.and_then(|b| b.destinationPath.clone())
);

// Lets now test sending an Event::Restart to the queue and see if the
Expand Down

0 comments on commit 6dcaffb

Please sign in to comment.