updated readme; misprints fixed

Signed-off-by: anastasia prasolova <anastasia@nspcc.ru>
This commit is contained in:
anastasia prasolova 2021-09-03 14:51:57 +03:00 committed by Anastasia Prasolova
parent be281428b5
commit 694c31330e
4 changed files with 48 additions and 33 deletions

View file

@ -6,43 +6,59 @@
- `git clone git@github.com:nspcc-dev/neofs-node.git` - `git clone git@github.com:nspcc-dev/neofs-node.git`
- `cd neofs-node` - `cd neofs-node`
- `make` - `make`
- `sudo cp bin/neofs-cli /usr/local/bin/neofs-cli`, add alias path to - `sudo cp bin/neofs-cli /usr/local/bin/neofs-cli`
bin/neofs-cli or run `export NEOFS_EXECUTABLE=<path_to_binary>`
or download binary from releases: https://github.com/nspcc-dev/neofs-node/releases 2. Install neofs-authmate
- `git clone git@github.com:nspcc-dev/neofs-s3-gw.git`
2. Install cdn-authmate - `cd neofs-s3-gw`
- `git clone git@github.com:nspcc-dev/cdn-authmate.git` - `make`
- `cd cdn-authmate` - `sudo cp bin/neofs-authmate /usr/local/bin/neofs-authmate`
- `make build`
- `sudo cp bin/cdn-authmate /usr/local/bin/cdn-authmate`, add alias path to
bin/cdn-authmate or run `export CDNAUTH_EXEC=<path_to_binary>`
3. Install neo-go 3. Install neo-go
- `git clone git@github.com:nspcc-dev/neo-go.git` - `git clone git@github.com:nspcc-dev/neo-go.git`
- `cd neo-go` - `cd neo-go`
- `git checkout v0.92.0` (or the current version in the neofs-dev-env) - `git checkout v0.92.0` (or the current version in the neofs-dev-env)
- `make` - `make`
- `sudo cp bin/neo-go /usr/local/bin/neo-go`, add alias path to bin/neo-go - `sudo cp bin/neo-go /usr/local/bin/neo-go`
or run `export NEOGO_EXECUTABLE=<path_to_binary>`
or download binary from releases: https://github.com/nspcc-dev/neo-go/releases or download binary from releases: https://github.com/nspcc-dev/neo-go/releases
4. Install Testcases dependencies 4. Install Testcases dependencies
- `pip3 install -r requirements.txt` - `pip3.8 install -r requirements.txt`
- `make deps` - `make deps`
(replace pip3 with the appropriate python package manager on the system). Test cases are designed to run on Python 3.8.
Test cases are designed to run on Python 3.7+
### Run ### Run
0. Add keywords repo to PYTHONPATH `export PYTHONPATH=${PYTHONPATH}:~/neofs-keywords/lib::~/neofs-keywords/robot` 0. Add keywords repo to PYTHONPATH `export PYTHONPATH=${PYTHONPATH}:~/neofs-keywords/lib::~/neofs-keywords/robot`
1. Execute the command `make run` 1. Clone neofs-dev-env and prepare it
2. Logs will be available in the artifacts/ directory after tests with any of the statuses are completed. ```
# clean up obsolete volumes
make down
# restart
make clean
make up
# decrease maximum object size to 1000 bytes
make update.max_object_size val=1000
```
Also disable Storage Nodes Morph cache
```
export NEOFS_MORPH_DISABLE_CACHE=true
```
2. Export neofs-dev-env variables into the shell where you are going to run tests
```
cd neofs-dev-env
export `make env`
```
3. Execute the command `make run`
4. Logs will be available in the artifacts/ directory after tests with any of the statuses are completed.
### Running an arbitrary test case ### Running an arbitrary test case

View file

@ -1,15 +1,13 @@
#!/usr/bin/python3.8 #!/usr/bin/python3.8
import logging import boto3
import os import os
import pexpect
import re import re
import requests import requests
import shutil import shutil
import subprocess import subprocess
import boto3
import uuid import uuid
import io
import pexpect
from robot.api.deco import keyword from robot.api.deco import keyword
from robot.api import logger from robot.api import logger

View file

@ -13,6 +13,7 @@ Resource ../${RESOURCES}/setup_teardown.robot
${PLACEMENT_RULE} = REP 1 IN X CBF 1 SELECT 1 FROM * AS X ${PLACEMENT_RULE} = REP 1 IN X CBF 1 SELECT 1 FROM * AS X
${TRANSFER_AMOUNT} = ${6} ${TRANSFER_AMOUNT} = ${6}
${DEPOSIT_AMOUNT} = ${5} ${DEPOSIT_AMOUNT} = ${5}
${CONTAINER_WAIT_INTERVAL} = 1 min
*** Test cases *** *** Test cases ***
@ -35,7 +36,7 @@ NeoFS HTTP Gateway
... Transaction accepted in block ${TX_DEPOSIT} ... Transaction accepted in block ${TX_DEPOSIT}
${CID} = Create container ${WIF} 0x0FFFFFFF ${PLACEMENT_RULE} ${CID} = Create container ${WIF} 0x0FFFFFFF ${PLACEMENT_RULE}
Wait Until Keyword Succeeds 2 min 30 sec Wait Until Keyword Succeeds ${MORPH_BLOCK_TIME} ${CONTAINER_WAIT_INTERVAL}
... Container Existing ${WIF} ${CID} ... Container Existing ${WIF} ${CID}
${FILE} = Generate file of bytes ${SIMPLE_OBJ_SIZE} ${FILE} = Generate file of bytes ${SIMPLE_OBJ_SIZE}