7fcbdb6c34
Rename bearer_token to bearer
...
Signed-off-by: Vladimir Avdeev <v.avdeev@yadro.com>
2022-10-18 13:52:28 +03:00
8e8a5b6efd
Pass shell where it was missed
...
Signed-off-by: Vladimir Domnich <v.domnich@yadro.com>
2022-10-17 14:04:53 +04:00
48e53b3d86
Switch failover test to hosting from testlib
...
Signed-off-by: Vladimir Domnich <v.domnich@yadro.com>
2022-10-14 20:35:26 +04:00
bfd02531ef
Integrate with hosting from testlib
...
Replace service_helper with hosting class from the testlib.
Instead of invoking commands on remote via ssh_helper, we now use
shell from the hosting.
Signed-off-by: Vladimir Domnich <v.domnich@yadro.com>
2022-10-14 20:35:26 +04:00
e63db788c5
Use neofs-testlib
...
Signed-off-by: Vladimir Avdeev <v.avdeev@yadro.com>
2022-10-13 21:59:26 +03:00
31d43fbba9
Fix timeout for node returned wait
...
Signed-off-by: anikeev-yadro <a.anikeev@yadro.com>
2022-10-13 13:17:54 +03:00
7e30006623
Fix code formatting in json transformers
...
Signed-off-by: Vladimir Domnich <v.domnich@yadro.com>
2022-10-12 13:07:16 +04:00
3eadf934e0
Fix decode_session_token after API was changed
...
Signed-off-by: anikeev-yadro <a.anikeev@yadro.com>
2022-10-12 11:06:41 +03:00
0aeb998be9
[ #350 ] Cleanup utility keywords
...
Signed-off-by: Vladimir Domnich <v.domnich@yadro.com>
2022-10-11 18:14:58 +04:00
6b04663dee
[ #341 ] Remove duplication of wallet passwords in configs
...
Signed-off-by: Vladimir Domnich <v.domnich@yadro.com>
2022-10-06 12:53:47 +04:00
147cac0ebc
[ #314 ] Format all files with black and isort
...
Signed-off-by: Vladimir Domnich <v.domnich@yadro.com>
2022-09-30 13:45:25 +04:00
26032a67ec
[ #330 ] Switch to new command netmap snapshot
...
1. Add netmap command to NeofsCli wrapper.
2. Update node_management steps to use netmap.snapshot method instead of
deprecated "neofs-cli control netmap-snapshot" command.
3. Switch node's public key in netmap from base58-encoding to hex-encoding.
Signed-off-by: Vladimir Domnich <v.domnich@yadro.com>
2022-09-30 13:22:52 +04:00
588292dfb5
[ #314 ] Fix tools config
...
Signed-off-by: Vladimir Domnich <v.domnich@yadro.com>
2022-09-26 17:33:42 +04:00
02c859796f
Fix parameter in allure step message
...
Signed-off-by: anikeev-yadro <a.anikeev@yadro.com>
2022-09-23 17:56:36 +03:00
ee2ed667c6
[ #312 ] add new test for s3
...
Signed-off-by: Yulia Kovshova <y.kovshova@yadro.com>
2022-09-23 15:54:57 +03:00
a8a00c1c53
[ #297 ] remove robot.logger
...
Signed-off-by: Yulia Kovshova <y.kovshova@yadro.com>
2022-09-22 15:33:42 +03:00
035175894d
[ #297 ] Replace @keyword decorator with allure.step
2022-09-21 14:02:09 +03:00
9eb33465f9
Change sleeps from MAINNET_BLOCK_TIME to MORPH_BLOCK_TIME
...
Our tests sleeps should based on MORPH_BLOCK_TIME
Signed-off-by: anikeev-yadro <a.anikeev@yadro.com>
2022-09-19 17:26:29 +03:00
Elizaveta Chichindaeva
37f73af11e
Test: balance accounting test -> pytest
...
Signed-off-by: Elizaveta Chichindaeva <elizaveta@nspcc.ru>
2022-09-07 14:44:37 +03:00
Elizaveta Chichindaeva
38a177107e
HOTFIX: FREE_STORAGE condition
...
FREE_STORAGE may be false or true and it affects GAS transfer.
Signed-off-by: Elizaveta Chichindaeva <elizaveta@nspcc.ru>
2022-09-07 13:47:51 +03:00
Elizaveta Chichindaeva
92cbc2e11b
[226] Tests: test for session token for object
...
A test for session token for object rewritten in pytest.
Signed-off-by: Elizaveta Chichindaeva <elizaveta@nspcc.ru>
2022-09-05 14:36:01 +03:00
Elizaveta Chichindaeva
3f6ba19a8b
Tests: Storagegroup tests into pytest
...
Tests for Storagegroups rewritten in pytest
Signed-off-by: Elizaveta Chichindaeva <elizaveta@nspcc.ru>
2022-09-05 12:12:26 +03:00
f7bbce1912
Fix misprints
...
Signed-off-by: Vladimir Domnich <v.domnich@yadro.com>
2022-09-02 10:10:26 +04:00
f40111dc4a
Implemented neofs-adm lib
...
Signed-off-by: Vladimir Avdeev <v.avdeev@yadro.com>
2022-08-31 23:52:02 +03:00
6d040c6834
Add ACL and eACL PyTest tests
...
Signed-off-by: Vladimir Avdeev <v.avdeev@yadro.com>
2022-08-25 14:06:21 +03:00
3294299612
Implement neofs-cli lib for container and object
...
Signed-off-by: Vladimir Avdeev <v.avdeev@yadro.com>
2022-08-19 09:47:19 +03:00
d935c2cafa
Remove step for iptables installation
...
Installation of iptables was implemented in environment preparation pipeline and tests
do not need to worry about it.
Removed conditions that were checking pytest mode vs robot mode, because we got rid of
robot tests in this branch of codebase.
Signed-off-by: Vladimir Domnich <v.domnich@yadro.com>
2022-08-18 14:01:33 +04:00
b270f39387
Fix node transition to online state
...
Node hangs up if we attempt to transfer it to online state immediately after start.
Signed-off-by: Vladimir Domnich <v.domnich@yadro.com>
2022-08-18 14:01:33 +04:00
a76614b40d
Add asserts for error status codes in grpc responses
...
Signed-off-by: Vladimir Domnich <v.domnich@yadro.com>
2022-08-18 14:01:33 +04:00
f9ba463d2e
Refactor container tests
...
Use wellknown ACL constants.
Remove 0x prefix from ACL, because neofs CLI changed formatting.
Remove redundant comments.
Signed-off-by: Vladimir Domnich <v.domnich@yadro.com>
2022-08-18 14:01:33 +04:00
anastasia prasolova
b6cbd7c07c
removed robot tests
...
Signed-off-by: anastasia prasolova <anastasia@nspcc.ru>
2022-08-17 14:20:41 +03:00
c131bb04ba
Fix node cleanup step
...
The intention of the test was not to delete node entirely, but just to erase it's data.
Signed-off-by: Vladimir Domnich <v.domnich@yadro.com>
2022-08-15 18:49:05 +04:00
ce099c61a4
Move node deletion logic to service helper
...
Signed-off-by: Vladimir Domnich <v.domnich@yadro.com>
2022-08-15 18:49:05 +04:00
91197335ba
Add tests that start or stop services on remote vm
...
Signed-off-by: Vladimir Domnich <v.domnich@yadro.com>
2022-08-15 18:49:05 +04:00
a.y.volkov
f97bfed183
Add test for adding node to cluster
...
Signed-off-by: a.y.volkov <a.y.volkov@yadro.com>
2022-08-15 18:49:05 +04:00
448570afa0
Fix get_range usage in acl tests
...
Signed-off-by: Vladimir Domnich <v.domnich@yadro.com>
2022-08-05 13:31:22 +03:00
47c55f0060
Remove redundant variables
...
Small refactoring that includes:
- Removed variables that are not used any more.
- Cleanup in helper functions' names.
Signed-off-by: Vladimir Domnich <v.domnich@yadro.com>
2022-08-05 13:31:17 +03:00
a.y.volkov
642af0a888
Add test for network failover
...
Signed-off-by: a.y.volkov <a.y.volkov@yadro.com>
2022-08-05 13:29:31 +03:00
5f53e80f93
Fixes in tests to enable them to run in a cloud environment
...
Few small fixes were made:
- Fix path to binaries on storage node in cloud env.
- Add logic to prepend ssh command with sudo.
- Make re-encoding of homomorphic hash conditional.
- Increase ssh timeout.
Signed-off-by: Vladimir Domnich <v.domnich@yadro.com>
2022-08-05 13:29:31 +03:00
892b8f227a
Add helper function to wait for GC pass on storage nodes
...
Signed-off-by: Vladimir Domnich <v.domnich@yadro.com>
2022-08-05 13:29:31 +03:00
8a7d8f7c39
Disable automatic pagination in aws cli client
...
This should prevent output truncation if response contains too many items.
Signed-off-by: Vladimir Domnich <v.domnich@yadro.com>
2022-08-05 13:29:31 +03:00
d8911f2490
Fix parsing of CLI output
...
Formatting has been changed in CLI tools in version v0.30 and it required us to
change logic in tests:
- Fix authmate output parsing.
- Fix format of container name in assert.
Signed-off-by: Vladimir Domnich <v.domnich@yadro.com>
2022-08-05 13:29:31 +03:00
279bb3dedd
Add delays after s3 operations
...
Delays were added after:
- S3 container create/delete.
- S3 object create/delete.
Signed-off-by: Vladimir Domnich <v.domnich@yadro.com>
2022-08-05 13:29:31 +03:00
46b593b02e
Fix endpoint parameter
...
Signed-off-by: Vladimir Domnich <v.domnich@yadro.com>
2022-08-05 13:29:31 +03:00
d701e2cb62
Remove redundant environment variables
...
Along with that few tweaks were made:
- Increase wait time as it seems to take more time for complex object.
- Increase timeout for create_bucket as it fails periodically.
Signed-off-by: Vladimir Domnich <v.domnich@yadro.com>
2022-08-05 13:29:31 +03:00
08081a8629
Fix cleanup of versioned s3 bucket
...
Add logic that deletes all objects versions from the bucket before attempting to
delete the bucket itself. This is required per AWS S3 specification.
Signed-off-by: Vladimir Domnich <v.domnich@yadro.com>
2022-08-05 13:29:31 +03:00
2c232c222c
Fix node management tests
...
When we call storage node's control endpoint we need to override storage wallet path.
Signed-off-by: Vladimir Domnich <v.domnich@yadro.com>
2022-08-05 13:29:31 +03:00
eb5532c08e
Extend allure logging for failover tests
...
Signed-off-by: Vladimir Avdeev <v.avdeev@yadro.com>
2022-08-05 13:29:31 +03:00
ab85389d59
Use neofs-adm to tick epoch
...
This is a more convenient way to tick epoch when we have multiple moprh blockchain nodes.
Approach that we use in devenv would require multi-signed transaction which is cumbersome.
Signed-off-by: Vladimir Domnich <v.domnich@yadro.com>
2022-08-05 13:29:31 +03:00
93a52b4a66
Add failover tests for storage nodes
...
The tests are aimed to work on cloud infrastructure (SberCloud VMs)
Signed-off-by: Vladimir Avdeev <v.avdeev@yadro.com>
2022-08-05 13:29:31 +03:00