Skip to content

Commit

Permalink
Skip the falling tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vvarg229 committed Jul 16, 2023
1 parent 79bf071 commit f9bd0d0
Show file tree
Hide file tree
Showing 23 changed files with 75 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ def prepare_two_wallets(self, default_wallet):
)

@allure.title("Test Storage Group in Private Container")
@pytest.mark.skip(reason="https://github.com/nspcc-dev/neofs-node/issues/2440")
def test_storagegroup_basic_private_container(self, object_size, max_object_size):
cid = create_container(
self.main_wallet, shell=self.shell, endpoint=self.cluster.default_rpc_endpoint
Expand Down Expand Up @@ -105,6 +106,7 @@ def test_storagegroup_basic_private_container(self, object_size, max_object_size

@pytest.mark.sanity
@allure.title("Test Storage Group in Public Container")
@pytest.mark.skip(reason="https://github.com/nspcc-dev/neofs-node/issues/2440")
def test_storagegroup_basic_public_container(self, object_size, max_object_size):
cid = create_container(
self.main_wallet,
Expand Down Expand Up @@ -140,6 +142,7 @@ def test_storagegroup_basic_public_container(self, object_size, max_object_size)
)

@allure.title("Test Storage Group in Read-Only Container")
@pytest.mark.skip(reason="https://github.com/nspcc-dev/neofs-node/issues/2440")
def test_storagegroup_basic_ro_container(self, object_size, max_object_size):
cid = create_container(
self.main_wallet,
Expand Down Expand Up @@ -176,6 +179,7 @@ def test_storagegroup_basic_ro_container(self, object_size, max_object_size):
)

@allure.title("Test Storage Group with Bearer Allow")
@pytest.mark.skip(reason="https://github.com/nspcc-dev/neofs-node/issues/2440")
def test_storagegroup_bearer_allow(self, object_size, max_object_size):
cid = create_container(
self.main_wallet,
Expand Down Expand Up @@ -233,6 +237,7 @@ def test_storagegroup_bearer_allow(self, object_size, max_object_size):
)

@allure.title("Test to check Storage Group lifetime")
@pytest.mark.skip(reason="https://github.com/nspcc-dev/neofs-node/issues/2440")
def test_storagegroup_lifetime(self, object_size):
cid = create_container(
self.main_wallet, shell=self.shell, endpoint=self.cluster.default_rpc_endpoint
Expand Down
2 changes: 2 additions & 0 deletions pytest_tests/testsuites/network/test_node_management.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,8 @@ def test_placement_policy(
)
@pytest.mark.node_mgmt
@allure.title("Test object copies and storage nodes based on placement policy")
@pytest.mark.skip(reason="https://github.com/nspcc-dev/neofs-node/issues/2440")
@pytest.mark.skip(reason="https://github.com/nspcc-dev/neofs-node/issues/2441")
def test_placement_policy_with_nodes(
self,
default_wallet,
Expand Down
9 changes: 9 additions & 0 deletions pytest_tests/testsuites/object/test_object_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ def storage_objects(
@pytest.mark.grpc_api
class TestObjectApi(ClusterTestBase):
@pytest.mark.sanity
@pytest.mark.skip(reason="https://github.com/nspcc-dev/neofs-node/issues/2439")
@allure.title("Validate object storage policy by native API")
def test_object_storage_policies(
self, request: FixtureRequest, storage_objects: list[StorageObjectInfo], simple_object_size
Expand Down Expand Up @@ -171,6 +172,7 @@ def test_object_storage_policies(
assert copies == 2, "Expected 2 copies"

@allure.title("Validate get object native API")
@pytest.mark.skip(reason="https://github.com/nspcc-dev/neofs-node/issues/2440")
def test_get_object_api(
self, request: FixtureRequest, storage_objects: list[StorageObjectInfo]
):
Expand All @@ -192,6 +194,7 @@ def test_get_object_api(
assert storage_object.file_hash == file_hash

@allure.title("Validate head object native API")
@pytest.mark.skip(reason="https://github.com/nspcc-dev/neofs-node/issues/2440")
def test_head_object_api(
self, request: FixtureRequest, storage_objects: list[StorageObjectInfo]
):
Expand Down Expand Up @@ -221,6 +224,7 @@ def test_head_object_api(
self.check_header_is_presented(head_info, storage_object_2.attributes)

@allure.title("Validate object search by native API")
@pytest.mark.skip(reason="https://github.com/nspcc-dev/neofs-node/issues/2440")
def test_search_object_api(
self, request: FixtureRequest, storage_objects: list[StorageObjectInfo]
):
Expand Down Expand Up @@ -270,6 +274,7 @@ def test_search_object_api(
[pytest.lazy_fixture("simple_object_size"), pytest.lazy_fixture("complex_object_size")],
ids=["simple object", "complex object"],
)
@pytest.mark.skip(reason="https://github.com/nspcc-dev/neofs-node/issues/2440")
def test_object_search_should_return_tombstone_items(
self, default_wallet: str, request: FixtureRequest, object_size: int
):
Expand Down Expand Up @@ -339,6 +344,7 @@ def test_object_search_should_return_tombstone_items(

@allure.title("Validate native object API get_range_hash")
@pytest.mark.grpc_api
@pytest.mark.skip(reason="https://github.com/nspcc-dev/neofs-node/issues/2440")
def test_object_get_range_hash(
self, request: FixtureRequest, storage_objects: list[StorageObjectInfo], max_object_size
):
Expand Down Expand Up @@ -377,6 +383,7 @@ def test_object_get_range_hash(

@allure.title("Validate native object API get_range")
@pytest.mark.grpc_api
@pytest.mark.skip(reason="https://github.com/nspcc-dev/neofs-node/issues/2440")
def test_object_get_range(
self, request: FixtureRequest, storage_objects: list[StorageObjectInfo], max_object_size
):
Expand Down Expand Up @@ -416,6 +423,7 @@ def test_object_get_range(

@allure.title("Validate native object API get_range negative cases")
@pytest.mark.grpc_api
@pytest.mark.skip(reason="https://github.com/nspcc-dev/neofs-node/issues/2440")
def test_object_get_range_negatives(
self,
request: FixtureRequest,
Expand Down Expand Up @@ -471,6 +479,7 @@ def test_object_get_range_negatives(
)

@allure.title("Validate native object API get_range_hash negative cases")
@pytest.mark.skip(reason="https://github.com/nspcc-dev/neofs-node/issues/2440")
def test_object_get_range_hash_negatives(
self,
request: FixtureRequest,
Expand Down
2 changes: 2 additions & 0 deletions pytest_tests/testsuites/object/test_object_api_bearer.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ class TestObjectApiWithBearerToken(ClusterTestBase):
ids=["simple object", "complex object"],
indirect=True,
)
@pytest.mark.skip(reason="https://github.com/nspcc-dev/neofs-node/issues/2440")
def test_delete_object_with_s3_wallet_bearer(
self,
storage_objects: list[StorageObjectInfo],
Expand Down Expand Up @@ -140,6 +141,7 @@ def test_delete_object_with_s3_wallet_bearer(
[pytest.lazy_fixture("simple_object_size"), pytest.lazy_fixture("complex_object_size")],
ids=["simple object", "complex object"],
)
@pytest.mark.skip(reason="https://github.com/nspcc-dev/neofs-node/issues/2440")
def test_get_object_with_s3_wallet_bearer_from_all_nodes(
self,
user_container: StorageContainer,
Expand Down
1 change: 1 addition & 0 deletions pytest_tests/testsuites/object/test_object_lifetime.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ class TestObjectApiLifetime(ClusterTestBase):
[pytest.lazy_fixture("simple_object_size"), pytest.lazy_fixture("complex_object_size")],
ids=["simple object", "complex object"],
)
@pytest.mark.skip(reason="https://github.com/nspcc-dev/neofs-node/issues/2440")
def test_object_api_lifetime(
self, default_wallet: str, request: FixtureRequest, object_size: int
):
Expand Down
4 changes: 4 additions & 0 deletions pytest_tests/testsuites/object/test_object_lock.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ def new_locked_storage_object(
ids=["simple object", "complex object"],
indirect=True,
)
@pytest.mark.skip(reason="https://github.com/nspcc-dev/neofs-node/issues/2440")
def test_locked_object_cannot_be_deleted(
self,
request: FixtureRequest,
Expand Down Expand Up @@ -343,6 +344,7 @@ def check_object_not_found():
[pytest.lazy_fixture("simple_object_size"), pytest.lazy_fixture("complex_object_size")],
ids=["simple object", "complex object"],
)
@pytest.mark.skip(reason="https://github.com/nspcc-dev/neofs-node/issues/2440")
def test_should_be_possible_to_lock_multiple_objects_at_once(
self,
request: FixtureRequest,
Expand Down Expand Up @@ -438,6 +440,7 @@ def test_already_outdated_lock_should_not_be_applied(
ids=["simple object", "complex object"],
)
@expect_not_raises()
@pytest.mark.skip(reason="https://github.com/nspcc-dev/neofs-node/issues/2440")
def test_after_lock_expiration_with_lifetime_user_should_be_able_to_delete_object(
self,
request: FixtureRequest,
Expand Down Expand Up @@ -588,6 +591,7 @@ def test_link_object_of_locked_complex_object_can_be_dropped(
[pytest.lazy_fixture("complex_object_size")],
indirect=True,
)
@pytest.mark.skip(reason="https://github.com/nspcc-dev/neofs-node/issues/2440")
def test_chunks_of_locked_complex_object_can_be_dropped(
self, new_locked_storage_object: StorageObjectInfo
):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ def test_unable_put_without_bearer_token(
[pytest.lazy_fixture("simple_object_size"), pytest.lazy_fixture("complex_object_size")],
ids=["simple object", "complex object"],
)
@pytest.mark.skip(reason="https://github.com/nspcc-dev/neofs-node/issues/2440")
def test_put_with_bearer_when_eacl_restrict(
self,
object_size: int,
Expand Down
5 changes: 5 additions & 0 deletions pytest_tests/testsuites/services/http_gate/test_http_gate.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ def prepare_wallet(self, default_wallet):
TestHttpGate.wallet = default_wallet

@allure.title("Test Put over gRPC, Get over HTTP")
@pytest.mark.skip(reason="https://github.com/nspcc-dev/neofs-node/issues/2440")
def test_put_grpc_get_http(self, complex_object_size, simple_object_size):
"""
Test that object can be put using gRPC interface and get using HTTP.
Expand Down Expand Up @@ -100,6 +101,7 @@ def test_put_grpc_get_http(self, complex_object_size, simple_object_size):
@allure.link("https://github.com/nspcc-dev/neofs-http-gw#uploading", name="uploading")
@allure.link("https://github.com/nspcc-dev/neofs-http-gw#downloading", name="downloading")
@allure.title("Test Put over HTTP, Get over HTTP")
@pytest.mark.skip(reason="https://github.com/nspcc-dev/neofs-node/issues/2440")
@pytest.mark.smoke
def test_put_http_get_http(self, complex_object_size, simple_object_size):
"""
Expand Down Expand Up @@ -248,6 +250,7 @@ def test_expiration_epoch_in_http(self, simple_object_size):
for oid in not_expired_objects:
get_via_http_gate(cid=cid, oid=oid, endpoint=http_endpoint)

@pytest.mark.skip(reason="https://github.com/nspcc-dev/neofs-node/issues/2440")
@allure.title("Test Zip in HTTP header")
def test_zip_in_http(self, complex_object_size, simple_object_size):
cid = create_container(
Expand Down Expand Up @@ -288,6 +291,7 @@ def test_zip_in_http(self, complex_object_size, simple_object_size):

@pytest.mark.long
@allure.title("Test Put over HTTP/Curl, Get over HTTP/Curl for large object")
@pytest.mark.skip(reason="https://github.com/nspcc-dev/neofs-node/issues/2440")
def test_put_http_get_http_large_file(self, complex_object_size):
"""
This test checks upload and download using curl with 'large' object.
Expand Down Expand Up @@ -335,6 +339,7 @@ def test_put_http_get_http_large_file(self, complex_object_size):
)

@allure.title("Test Put/Get over HTTP using Curl utility")
@pytest.mark.skip(reason="https://github.com/nspcc-dev/neofs-node/issues/2440")
def test_put_http_get_http_curl(self, complex_object_size, simple_object_size):
"""
Test checks upload and download over HTTP using curl utility.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ def storage_objects_with_attributes(self, request: FixtureRequest) -> list[Stora

yield storage_objects

@pytest.mark.skip(reason="https://github.com/nspcc-dev/neofs-node/issues/2440")
@allure.title("Get object1 by attribute")
def test_object1_can_be_get_by_attr(
self, storage_objects_with_attributes: list[StorageObjectInfo]
Expand All @@ -105,6 +106,7 @@ def test_object1_can_be_get_by_attr(
endpoint=self.cluster.default_http_gate_endpoint,
)

@pytest.mark.skip(reason="https://github.com/nspcc-dev/neofs-node/issues/2440")
@allure.title("Test get object2 with different attributes, then delete object2 and get object1")
def test_object2_can_be_get_by_attr(
self, storage_objects_with_attributes: list[StorageObjectInfo]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ def prepare_wallet(self, default_wallet):
[pytest.lazy_fixture("simple_object_size"), pytest.lazy_fixture("complex_object_size")],
ids=["simple object", "complex object"],
)
@pytest.mark.skip(reason="https://github.com/nspcc-dev/neofs-node/issues/2440")
def test_object_put_get_attributes(self, object_size: int):
"""
Test that object can be put using gRPC interface and get using HTTP.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ def prepare_wallet(self, default_wallet):
[pytest.lazy_fixture("complex_object_size")],
ids=["complex object"],
)
@pytest.mark.skip(reason="https://github.com/nspcc-dev/neofs-node/issues/2440")
def test_object_can_be_put_get_by_streaming(self, object_size: int):
"""
Test that object can be put using gRPC interface and get using HTTP.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ def test_unable_put_expired_rfc(self, user_container: str, simple_object_size: i
[pytest.lazy_fixture("simple_object_size"), pytest.lazy_fixture("complex_object_size")],
ids=["simple object", "complex object"],
)
@pytest.mark.skip(reason="https://github.com/nspcc-dev/neofs-node/issues/2440")
def test_http_attr_priority_epoch_duration(
self, user_container: str, object_size: int, epoch_duration: int
):
Expand Down Expand Up @@ -253,6 +254,7 @@ def test_http_attr_priority_epoch_duration(
[pytest.lazy_fixture("simple_object_size"), pytest.lazy_fixture("complex_object_size")],
ids=["simple object", "complex object"],
)
@pytest.mark.skip(reason="https://github.com/nspcc-dev/neofs-node/issues/2440")
def test_http_attr_priority_dur_timestamp(
self, user_container: str, object_size: int, epoch_duration: int
):
Expand Down Expand Up @@ -307,6 +309,7 @@ def test_http_attr_priority_dur_timestamp(
[pytest.lazy_fixture("simple_object_size"), pytest.lazy_fixture("complex_object_size")],
ids=["simple object", "complex object"],
)
@pytest.mark.skip(reason="https://github.com/nspcc-dev/neofs-node/issues/2440")
def test_http_attr_priority_timestamp_rfc(
self, user_container: str, object_size: int, epoch_duration: int
):
Expand Down Expand Up @@ -359,6 +362,7 @@ def test_http_attr_priority_timestamp_rfc(
[pytest.lazy_fixture("simple_object_size"), pytest.lazy_fixture("complex_object_size")],
ids=["simple object", "complex object"],
)
@pytest.mark.skip(reason="https://github.com/nspcc-dev/neofs-node/issues/2440")
def test_http_rfc_object_unavailable_after_expir(
self, user_container: str, object_size: int, epoch_duration: int
):
Expand Down
3 changes: 3 additions & 0 deletions pytest_tests/testsuites/services/s3_gate/test_s3_ACL.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from steps import s3_gate_bucket, s3_gate_object
from steps.s3_gate_base import TestS3GateBase

from aws_cli_client import AwsCliClient

def pytest_generate_tests(metafunc):
if "s3_client" in metafunc.fixturenames:
Expand All @@ -17,6 +18,7 @@ def pytest_generate_tests(metafunc):
class TestS3GateACL(TestS3GateBase):
@pytest.mark.sanity
@allure.title("Test S3: Object ACL")
@pytest.mark.skip(reason="https://github.com/nspcc-dev/neofs-s3-gw/issues/798")
def test_s3_object_ACL(self, bucket, simple_object_size):
file_path = generate_file(simple_object_size)
file_name = object_key_from_file_path(file_path)
Expand Down Expand Up @@ -48,6 +50,7 @@ def test_s3_object_ACL(self, bucket, simple_object_size):
obj_acl = s3_gate_object.get_object_acl_s3(self.s3_client, bucket, file_name)
assert_s3_acl(acl_grants=obj_acl, permitted_users="AllUsers")

@pytest.mark.skip(reason="https://github.com/nspcc-dev/neofs-s3-gw/issues/798")
@allure.title("Test S3: Bucket ACL")
def test_s3_bucket_ACL(self):
with allure.step("Create bucket with ACL = public-read-write"):
Expand Down
4 changes: 2 additions & 2 deletions pytest_tests/testsuites/services/s3_gate/test_s3_bucket.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,20 @@
from steps import s3_gate_bucket, s3_gate_object
from steps.s3_gate_base import TestS3GateBase

from aws_cli_client import AwsCliClient

def pytest_generate_tests(metafunc):
if "s3_client" in metafunc.fixturenames:
metafunc.parametrize("s3_client", ["aws cli", "boto3"], indirect=True)


@pytest.mark.skip(reason="https://github.com/nspcc-dev/neofs-s3-gw/issues/798")
@pytest.mark.s3_gate
@pytest.mark.s3_gate_bucket
class TestS3GateBucket(TestS3GateBase):
@pytest.mark.sanity
@allure.title("Test S3: Create Bucket with different ACL")
def test_s3_create_bucket_with_ACL(self):

with allure.step("Create bucket with ACL private"):
bucket = s3_gate_bucket.create_bucket_s3(self.s3_client, True, acl="private")
bucket_acl = s3_gate_bucket.get_bucket_acl(self.s3_client, bucket)
Expand All @@ -52,7 +53,6 @@ def test_s3_create_bucket_with_ACL(self):

@allure.title("Test S3: Create Bucket with different ACL by grand")
def test_s3_create_bucket_with_grands(self):

with allure.step("Create bucket with --grant-read"):
bucket = s3_gate_bucket.create_bucket_s3(
self.s3_client,
Expand Down
3 changes: 2 additions & 1 deletion pytest_tests/testsuites/services/s3_gate/test_s3_gate.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ def pytest_generate_tests(metafunc):
metafunc.parametrize("s3_client", ["aws cli", "boto3"], indirect=True)


@pytest.mark.skip(reason="https://github.com/nspcc-dev/neofs-s3-gw/issues/798")
@allure.link("https://github.com/nspcc-dev/neofs-s3-gw#neofs-s3-gateway", name="neofs-s3-gateway")
@pytest.mark.s3_gate
@pytest.mark.s3_gate_base
Expand All @@ -42,7 +43,6 @@ def test_s3_buckets(self, simple_object_size):
"""
Test base S3 Bucket API (Create/List/Head/Delete).
"""

file_path = generate_file(simple_object_size)
file_name = self.object_key_from_file_path(file_path)

Expand Down Expand Up @@ -248,6 +248,7 @@ def test_s3_api_versioning(self, bucket, simple_object_size):
), f"Expected object content is\n{version_2_content}\nGot\n{got_content}"

@pytest.mark.s3_gate_multipart
@pytest.mark.skip(reason="https://github.com/nspcc-dev/neofs-s3-gw/issues/800")
@allure.title("Test S3 Object Multipart API")
def test_s3_api_multipart(self, bucket, simple_object_size):
"""
Expand Down
4 changes: 4 additions & 0 deletions pytest_tests/testsuites/services/s3_gate/test_s3_locking.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,15 @@
from steps import s3_gate_bucket, s3_gate_object
from steps.s3_gate_base import TestS3GateBase

from aws_cli_client import AwsCliClient


def pytest_generate_tests(metafunc):
if "s3_client" in metafunc.fixturenames:
metafunc.parametrize("s3_client", ["aws cli", "boto3"], indirect=True)


@pytest.mark.skip(reason="https://github.com/nspcc-dev/neofs-s3-gw/issues/798")
@pytest.mark.s3_gate
@pytest.mark.s3_gate_locking
@pytest.mark.parametrize("version_id", [None, "second"])
Expand Down Expand Up @@ -201,6 +204,7 @@ def test_s3_legal_hold(self, version_id, simple_object_size):
)


@pytest.mark.skip(reason="https://github.com/nspcc-dev/neofs-s3-gw/issues/798")
@pytest.mark.s3_gate
class TestS3GateLockingBucket(TestS3GateBase):
@allure.title("Test S3: Bucket Lock")
Expand Down
Loading

0 comments on commit f9bd0d0

Please sign in to comment.