Skip to content

Commit 920601e

Browse files
authored
samples: delete unspecified sample (#671)
* samples: delete unspecified sample * fixed lint issue * updated readme
1 parent 059a4f8 commit 920601e

2 files changed

Lines changed: 0 additions & 54 deletions

File tree

storage/samples/snippets/public_access_prevention_test.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,12 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
import pytest
1615

1716
import storage_get_public_access_prevention
1817
import storage_set_public_access_prevention_enforced
1918
import storage_set_public_access_prevention_inherited
20-
import storage_set_public_access_prevention_unspecified
2119

2220

23-
@pytest.mark.skip(reason="Inconsistent due to unspecified->inherited change")
2421
def test_get_public_access_prevention(bucket, capsys):
2522
short_name = storage_get_public_access_prevention
2623
short_name.get_public_access_prevention(bucket.name)
@@ -35,14 +32,6 @@ def test_set_public_access_prevention_enforced(bucket, capsys):
3532
assert f"Public access prevention is set to enforced for {bucket.name}." in out
3633

3734

38-
@pytest.mark.skip(reason="Inconsistent due to unspecified->inherited change")
39-
def test_set_public_access_prevention_unspecified(bucket, capsys):
40-
short_name = storage_set_public_access_prevention_unspecified
41-
short_name.set_public_access_prevention_unspecified(bucket.name)
42-
out, _ = capsys.readouterr()
43-
assert f"Public access prevention is 'unspecified' for {bucket.name}." in out
44-
45-
4635
def test_set_public_access_prevention_inherited(bucket, capsys):
4736
short_name = storage_set_public_access_prevention_inherited
4837
short_name.set_public_access_prevention_inherited(bucket.name)

storage/samples/snippets/storage_set_public_access_prevention_unspecified.py

Lines changed: 0 additions & 43 deletions
This file was deleted.

0 commit comments

Comments
 (0)