Skip to content

Commit b120f83

Browse files
committed
fix(kubernetes): satisfy ownership test lint
Signed-off-by: Drew Newberry <385+drew@users.noreply.github.com>
1 parent 1dec2fc commit b120f83

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

  • crates/openshell-driver-kubernetes/src

crates/openshell-driver-kubernetes/src/driver.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5131,13 +5131,14 @@ mod tests {
51315131
validate_sandbox_owner_identity(&owner, "sandbox-id-a", &sandbox)
51325132
.expect("matching owner identity");
51335133

5134-
let wrong_uid = sandbox_object_for_test("sandbox-uid-b", "sandbox-id-a");
5134+
let mismatched_owner = sandbox_object_for_test("sandbox-uid-b", "sandbox-id-a");
51355135
let error =
5136-
validate_sandbox_owner_identity(&owner, "sandbox-id-a", &wrong_uid).unwrap_err();
5136+
validate_sandbox_owner_identity(&owner, "sandbox-id-a", &mismatched_owner).unwrap_err();
51375137
assert_eq!(error.code(), tonic::Code::PermissionDenied);
51385138

5139-
let wrong_id = sandbox_object_for_test("sandbox-uid-a", "sandbox-id-b");
5140-
let error = validate_sandbox_owner_identity(&owner, "sandbox-id-a", &wrong_id).unwrap_err();
5139+
let mismatched_annotation = sandbox_object_for_test("sandbox-uid-a", "sandbox-id-b");
5140+
let error = validate_sandbox_owner_identity(&owner, "sandbox-id-a", &mismatched_annotation)
5141+
.unwrap_err();
51415142
assert_eq!(error.code(), tonic::Code::PermissionDenied);
51425143
}
51435144

0 commit comments

Comments
 (0)