[#278] Add object operation tests with -g
flag #278
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
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-testcases#278
Loading…
Reference in a new issue
No description provided.
Delete branch "Kiriruso/frostfs-testcases:feature/add-object-api-tests-without-user"
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?
The tests check the result of an 'anonymous' user interacting with a gRPC API object.
Signed-off-by: Kirill Sosnovskikh k.sosnovskikh@yadro.com
-g
flag[#XX] Add object operation tests withto [#278] Add object operation tests with-g
flag-g
flag6f569fc757
to76d83c7925
@ -0,0 +35,4 @@
return tombstone.strip()
@pytest.fixture(scope="function")
def public_container(self, default_wallet: WalletInfo) -> Generator[str, None, None]:
Generator[str, None, None]:
=>str
, since fixtures cannot be used directly@ -0,0 +46,4 @@
yield cid_public
with reporter.step("Delete public container"):
Redundant. We decided to skip cleanups
@ -0,0 +60,4 @@
return FrostfsCli(client_shell, FROSTFS_CLI_EXEC)
@pytest.fixture(scope="function")
def test_file(self) -> TestFile:
instead, use this
https://git.frostfs.info/TrueCloudLab/frostfs-testcases/src/branch/master/pytest_tests/testsuites/conftest.py#L163
@ -0,0 +64,4 @@
write_object = str(uuid.uuid4())
return TestFile(os.path.join(ASSETS_DIR, write_object))
@allure.title("Get public container")
Make titles richer :)
<Get public container/.../.../> with generated key
Done, but not sure if it's detailed enough. Give an example if the new option is not suitable.
@ -0,0 +77,4 @@
with expect_not_raises():
result = frostfs_cli.container.get(rpc_endpoint, cid, generate_key=True, timeout=CLI_DEFAULT_TIMEOUT)
assert result.return_code == 0, result.stderr
looks like redundant check
@ -0,0 +88,4 @@
rpc_endpoint = self.cluster.default_rpc_endpoint
owner = default_wallet.get_address_from_json(0)
with reporter.step("Get list containers with generate key"):
Get list
=>List
@ -0,0 +94,4 @@
assert result.return_code == 0, result.stderr
containers = result.stdout.split()
Under the steps please :)
[#278] Add object operation tests withto WIP: [#278] Add object operation tests with-g
flag-g
flagWIP: [#278] Add object operation tests withto WIP: [#278] Add object operation tests with-g
flag-g
flagWIP: [#278] Add object operation tests withto [#278] Add object operation tests with-g
flag-g
flag76d83c7925
toba90395f99
ba90395f99
to626409af78