Skip to content

Commit

Permalink
chore: cleanup tests slightly
Browse files Browse the repository at this point in the history
  • Loading branch information
zach-robinson-dev committed Nov 12, 2024
1 parent 52e2825 commit a8bd7fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/resources.rs
Original file line number Diff line number Diff line change
Expand Up @@ -174,13 +174,13 @@ mod tests {
ResourceSync{metadata: ObjectMeta{annotations: Some(BTreeMap::new()), ..Default::default()},spec: Default::default(),status: None,}, false
)]
#[case::force_delete_annotation_is_false(
ResourceSync{metadata: ObjectMeta{annotations: Some(BTreeMap::from([(FORCE_DELETE_ANNOTATION.to_string(), "false".to_string())])), ..Default::default()},spec: Default::default(),status: None,}, false
ResourceSync{metadata: ObjectMeta{annotations: Some(BTreeMap::from([(FORCE_DELETE_ANNOTATION.to_string(), false.to_string())])), ..Default::default()},spec: Default::default(),status: None,}, false
)]
#[case::force_delete_annotation_is_other(
ResourceSync{metadata: ObjectMeta{annotations: Some(BTreeMap::from([(FORCE_DELETE_ANNOTATION.to_string(), "other".to_string())])), ..Default::default()},spec: Default::default(),status: None,}, false
)]
#[case::force_delete_annotation_is_true(
ResourceSync{metadata: ObjectMeta{annotations: Some(BTreeMap::from([(FORCE_DELETE_ANNOTATION.to_string(), "true".to_string())])), ..Default::default()},spec: Default::default(),status: None,}, true
ResourceSync{metadata: ObjectMeta{annotations: Some(BTreeMap::from([(FORCE_DELETE_ANNOTATION.to_string(), true.to_string())])), ..Default::default()},spec: Default::default(),status: None,}, true
)]
#[tokio::test]
async fn test_resource_sync_has_force_delete_option_enabled(
Expand Down

0 comments on commit a8bd7fd

Please # to comment.