File tree Expand file tree Collapse file tree
google-cloud-storage/acceptance/storage Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5757 end
5858
5959 it "adds an owner" do
60-
6160 file = bucket . create_file local_file , "OwnerTest.png"
6261 user_val = "user-test@example.com"
6362 _ ( file . acl . owners ) . wont_include user_val
7069 end
7170
7271 it "updates predefined rules" do
73-
7472 file = bucket . create_file local_file , "AclTest.png"
7573 _ ( file . acl . readers ) . must_include "allAuthenticatedUsers"
7674 file . acl . private!
8280 end
8381
8482 it "deletes rules" do
85-
8683 file = bucket . create_file local_file , "DeleteTest.png"
8784 _ ( file . acl . readers ) . must_include "allAuthenticatedUsers"
8885 file . acl . delete "allAuthenticatedUsers"
9491 end
9592
9693 it "retrieves and modifies the ACL" do
97-
9894 bucket . default_acl . private!
9995 file = bucket . create_file local_file , "CRUDTest.png"
10096 _ ( bucket . default_acl . owners ) . must_be :empty?
132128 end
133129
134130 it "sets predefined ACL rules" do
135-
136131 file = nil
137132 safe_gcs_execute { file = bucket . create_file local_file , "PredefinedTest.png" }
138133 safe_gcs_execute { file . acl . authenticatedRead! }
You can’t perform that action at this time.
0 commit comments