test: improve graph share accept/decline test coverage

This commit is contained in:
Florian Schade
2024-02-28 17:29:04 +01:00
committed by Ralf Haferkamp
parent 7384297728
commit 0bd97c9178
3 changed files with 83 additions and 10 deletions
+1 -1
View File
@@ -75,7 +75,7 @@ func (g Graph) GetGatewayClient(w http.ResponseWriter, r *http.Request) (gateway
return gatewayClient, true
}
// IsShareJail returns true if the resourceID is a share jail.
// IsShareJail returns true if given id is a share jail id.
func IsShareJail(id storageprovider.ResourceId) bool {
return id.GetStorageId() == utils.ShareStorageProviderID && id.GetSpaceId() == utils.ShareStorageSpaceID
}