Skip to content

Commit

Permalink
fix: Modify relations test
Browse files Browse the repository at this point in the history
  • Loading branch information
lfbrehm committed Mar 7, 2024
1 parent adf57d4 commit 2f1b3aa
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/middlelayer/relations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,16 +67,16 @@ async fn test_modify() {
defined_variant: 5, // POLICY
custom_variant: None,
resource_variant: 4,
direction: 2,
direction: RelationDirection::Outbound as i32,
})),
};
let rel_del_one = Relation {
relation: Some(RelationEnum::Internal(APIInternalRelation {
resource_id: target.to_string(),
defined_variant: 1, // BELONGS_TO
defined_variant: InternalRelationVariant::Metadata as i32, // BELONGS_TO
custom_variant: None,
resource_variant: 4,
direction: 2,
direction: RelationDirection::Outbound as i32,
})),
};
let request = ModifyRelations(ModifyRelationsRequest {
Expand All @@ -103,8 +103,8 @@ async fn test_modify() {
.unwrap();
assert!(owr.inbound.0.is_empty());
assert!(owr.inbound_belongs_to.0.is_empty());
assert_eq!(owr.outbound.0.len(), 2);
assert!(owr.outbound_belongs_to.0.is_empty());
assert_eq!(owr.outbound.0.len(), 1);
assert_eq!(owr.outbound_belongs_to.0.len(), 1);
assert!(owr
.object
.external_relations
Expand Down

0 comments on commit 2f1b3aa

Please sign in to comment.