|
75 | 75 | end |
76 | 76 |
|
77 | 77 | it "sets uniform_bucket_level_access true and is unable to modify bucket ACL rules" do |
| 78 | + skip PAP_SKIP_MESSAGE |
78 | 79 | refute bucket.uniform_bucket_level_access? |
79 | 80 | bucket.uniform_bucket_level_access = true |
80 | 81 | assert bucket.uniform_bucket_level_access? |
|
84 | 85 | end |
85 | 86 |
|
86 | 87 | it "sets uniform_bucket_level_access true and is unable to modify default ACL rules" do |
| 88 | + skip PAP_SKIP_MESSAGE |
87 | 89 | refute bucket.uniform_bucket_level_access? |
88 | 90 | bucket.uniform_bucket_level_access = true |
89 | 91 | assert bucket.uniform_bucket_level_access? |
|
107 | 109 | end |
108 | 110 |
|
109 | 111 | it "sets uniform_bucket_level_access true and default object acl and object acls are preserved" do |
| 112 | + skip PAP_SKIP_MESSAGE |
110 | 113 | bucket.default_acl.public! |
111 | 114 | _(bucket.default_acl.readers).must_equal ["allUsers"] |
112 | 115 | file_default_acl = bucket.create_file StringIO.new("default_acl"), "default_acl.txt" |
|
141 | 144 | end |
142 | 145 |
|
143 | 146 | it "sets DEPRECATED policy_only true and is unable to get the file" do |
| 147 | + skip PAP_SKIP_MESSAGE |
144 | 148 | refute bucket.policy_only? |
145 | 149 | file = bucket.create_file local_file, "ReaderTest.png" |
146 | 150 |
|
|
157 | 161 | end |
158 | 162 |
|
159 | 163 | it "sets DEPRECATED policy_only true and is unable to modify bucket ACL rules" do |
| 164 | + skip PAP_SKIP_MESSAGE |
160 | 165 | refute bucket.policy_only? |
161 | 166 | bucket.policy_only = true |
162 | 167 | assert bucket.policy_only? |
|
166 | 171 | end |
167 | 172 |
|
168 | 173 | it "sets DEPRECATED policy_only true and is unable to modify default ACL rules" do |
| 174 | + skip PAP_SKIP_MESSAGE |
169 | 175 | refute bucket.policy_only? |
170 | 176 | safe_gcs_execute { bucket.policy_only = true } |
171 | 177 | assert bucket.policy_only? |
|
189 | 195 | end |
190 | 196 |
|
191 | 197 | it "sets DEPRECATED policy_only true and default object acl and object acls are preserved" do |
| 198 | + skip PAP_SKIP_MESSAGE |
192 | 199 | bucket.default_acl.public! |
193 | 200 | _(bucket.default_acl.readers).must_equal ["allUsers"] |
194 | 201 | file_default_acl = bucket.create_file StringIO.new("default_acl"), "default_acl.txt" |
|
209 | 216 | end |
210 | 217 |
|
211 | 218 | it "creates new bucket with public_access_prevention enforced then sets public_access_prevention to enforced" do |
| 219 | + skip PAP_SKIP_MESSAGE |
212 | 220 | # Insert a new bucket with Public Access Prevention Enforced. |
213 | 221 | bucket_pap = storage.create_bucket "#{$bucket_names[2]}-pap" do |b| |
214 | 222 | b.public_access_prevention = :enforced |
|
0 commit comments