move to python3.8
Signed-off-by: anastasia prasolova <anastasia@nspcc.ru>
This commit is contained in:
parent
1f0749a561
commit
0736cae28c
3 changed files with 5 additions and 33 deletions
|
@ -7,7 +7,7 @@
|
|||
- `cd neofs-node`
|
||||
- `make`
|
||||
- `sudo cp bin/neofs-cli /usr/local/bin/neofs-cli`, add alias path to
|
||||
bin/neofs-cli or run `export NEOFS_CLI_EXEC=<path_to_binary>`
|
||||
bin/neofs-cli or run `export NEOFS_EXECUTABLE=<path_to_binary>`
|
||||
|
||||
or download binary from releases: https://github.com/nspcc-dev/neofs-node/releases
|
||||
|
||||
|
@ -24,7 +24,7 @@
|
|||
- `git checkout v0.92.0` (or the current version in the neofs-dev-env)
|
||||
- `make`
|
||||
- `sudo cp bin/neo-go /usr/local/bin/neo-go`, add alias path to bin/neo-go
|
||||
or run `export NEOGO_CLI_EXEC=<path_to_binary>`
|
||||
or run `export NEOGO_EXECUTABLE=<path_to_binary>`
|
||||
|
||||
or download binary from releases: https://github.com/nspcc-dev/neo-go/releases
|
||||
|
||||
|
@ -38,7 +38,7 @@ Test cases are designed to run on Python 3.7+
|
|||
|
||||
### Run
|
||||
|
||||
0. Add keywords repo to PYTHONPATH `export PYTHONPATH=${PYTHONPATH}:~/neofs-keywords`
|
||||
0. Add keywords repo to PYTHONPATH `export PYTHONPATH=${PYTHONPATH}:~/neofs-keywords/lib::~/neofs-keywords/robot`
|
||||
|
||||
1. Execute the command `make run`
|
||||
|
||||
|
|
|
@ -4,16 +4,9 @@ import subprocess
|
|||
import pexpect
|
||||
import re
|
||||
import uuid
|
||||
import logging
|
||||
import requests
|
||||
import json
|
||||
import os
|
||||
import tarfile
|
||||
import sys
|
||||
|
||||
sys.path.insert(0,'../neofs-keywords')
|
||||
import converters
|
||||
import wallet
|
||||
|
||||
from robot.api.deco import keyword
|
||||
from robot.api import logger
|
||||
|
@ -26,7 +19,6 @@ ROBOT_AUTO_KEYWORDS = False
|
|||
|
||||
# path to neofs-cli executable
|
||||
NEOFS_CLI_EXEC = os.getenv('NEOFS_CLI_EXEC', 'neofs-cli')
|
||||
NEOGO_CLI_EXEC = os.getenv('NEOGO_CLI_EXEC', 'neo-go')
|
||||
|
||||
|
||||
@keyword('Withdraw Mainnet Gas')
|
||||
|
@ -74,26 +66,6 @@ def transaction_accepted_in_block(tx_id):
|
|||
logger.info("Transaction has been found in the block %s." % response.text )
|
||||
return response.text
|
||||
|
||||
@keyword('Get Transaction')
|
||||
def get_transaction(tx_id: str):
|
||||
"""
|
||||
This function return information about TX.
|
||||
Parameters:
|
||||
:param tx_id: transaction id
|
||||
"""
|
||||
|
||||
headers = {'Content-type': 'application/json'}
|
||||
data = { "jsonrpc": "2.0", "id": 5, "method": "getapplicationlog", "params": [ tx_id ] }
|
||||
response = requests.post(NEO_MAINNET_ENDPOINT, json=data, headers=headers, verify=False)
|
||||
|
||||
if not response.ok:
|
||||
raise Exception(f"""Failed:
|
||||
request: {data},
|
||||
response: {response.text},
|
||||
status code: {response.status_code} {response.reason}""")
|
||||
else:
|
||||
logger.info(response.text)
|
||||
|
||||
|
||||
@keyword('Get NeoFS Balance')
|
||||
def get_balance(privkey: str):
|
||||
|
|
|
@ -4,7 +4,7 @@ ROOT='../..'
|
|||
|
||||
RESOURCES="%s/resources/lib" % ROOT
|
||||
CERT="%s/../../ca" % ROOT
|
||||
KEYWORDS="%s/../../../neofs-keywords/" % ROOT
|
||||
KEYWORDS="%s/../../../neofs-keywords/robot/" % ROOT
|
||||
|
||||
# path from repo root is required for object put and get
|
||||
# in case when test is run from root in docker
|
||||
|
@ -29,7 +29,7 @@ NEOFS_SN_WIF = os.getenv("NEOFS_SN_WIF", "Kwk6k2eC3L3QuPvD8aiaNyoSXgQ2YL1bwS5CP1
|
|||
MAINNET_WALLET_WIF = os.getenv("MAINNET_WALLET_WIF", "KxDgvEKzgSBPPfuVfw67oPQBSjidEiqTHURKSDL1R7yGaGYAeYnr")
|
||||
|
||||
NEOFS_ENDPOINT = os.getenv("NEOFS_ENDPOINT", "s01.neofs.devenv:8080")
|
||||
NEOGO_CLI_EXEC = os.getenv("NEOGO_CLI_EXEC", "neo-go")
|
||||
NEOGO_CLI_EXEC = os.getenv("NEOGO_EXECUTABLE", "neo-go")
|
||||
|
||||
NEO_MAINNET_ENDPOINT = os.getenv("NEO_MAINNET_ENDPOINT", 'http://main_chain.neofs.devenv:30333')
|
||||
NEOFS_NEO_API_ENDPOINT = os.getenv("NEOFS_NEO_API_ENDPOINT", 'http://morph_chain.neofs.devenv:30333')
|
||||
|
|
Loading…
Reference in a new issue