[#330] Automation of PATCH method in GRPC #330
Labels
No labels
P0
P1
P2
P3
good first issue
Infrastructure
blocked
bug
config
discussion
documentation
duplicate
enhancement
go
help wanted
internal
invalid
kludge
observability
perfomance
question
refactoring
wontfix
No milestone
No project
No assignees
4 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-testcases#330
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "Kiriruso/frostfs-testcases:feature-patch-testsuite-part-one"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Signed-off-by: Kirill Sosnovskikh k.sosnovskikh@yadro.com
ae34590ebe
to1d19576dbb
@ -0,0 +11,4 @@
from frostfs_testlib.testing.cluster_test_base import ClusterTestBase
from frostfs_testlib.utils.file_utils import generate_file, generate_file_with_content, get_file_content, get_file_hash
from workspace.frostfs_testcases.pytest_tests.helpers.container_creation import create_container_with_ape
from workspace.frostfs_testcases.pytest_tests.helpers.container_request import APE_EVERYONE_ALLOW_ALL, ContainerRequest
please use relative imports, f.e.
from ...helpers.container_request import APE_EVERYONE_ALLOW_ALL
@ -0,0 +22,4 @@
@pytest.mark.grpc_api
class TestObjectApiPatch(ClusterTestBase):
@allure.title("[Class] Create container with all operations allowed")
@pytest.fixture(scope="class")
why is fixture scope 'class'? maybe
scope='function'
?I assume it's because we can use same container for any test in this class
yes, that's right, I don't want to create containers every time, since we are interested in working with objects
1d19576dbb
to4dc7198ce0
@ -0,0 +192,4 @@
simple_object_size: ObjectSize,
complex_object_size: ObjectSize,
):
simple_file = generate_file(simple_object_size.value)
Add
with reporter.step(f"Generate {simple_object_size} and {complex_object_size} objects")
@ -0,0 +371,4 @@
payload_sizes: list[int | str],
):
patch_sizes = [self._get_bytes_relative_to_object(size, object_size.value) for size in payload_sizes]
patch_payloads = [generate_file(size) for size in patch_sizes]
with reporter.step("Generate multiple test objects")
4dc7198ce0
tob60e84ee48
b60e84ee48
to92aadcf9d3