From 3d0d9cf1296b756bcd0668010f059ca622db7d27 Mon Sep 17 00:00:00 2001 From: ABW <andrzejl@syncad.com> Date: Sun, 24 Jul 2022 02:49:33 +0200 Subject: [PATCH] rename all instances of sps into dhf --- hived/dhf_api_plugin.py | 14 +++++++------- .../condenser_api/dhf_via_condenser_test.yaml | 2 +- .../pyresttest_api_tests/dhf_api/dhf_api_test.yaml | 4 ++-- hived/pyresttest_api_tests/run_api_tests.sh | 4 ++-- hived/reference/condenser_api/README.md | 2 +- 5 files changed, 13 insertions(+), 13 deletions(-) diff --git a/hived/dhf_api_plugin.py b/hived/dhf_api_plugin.py index 57384c93..e8b33d8d 100755 --- a/hived/dhf_api_plugin.py +++ b/hived/dhf_api_plugin.py @@ -10,7 +10,7 @@ LOG_LEVEL = logging.INFO LOG_FORMAT = "%(asctime)-15s - %(name)s - %(levelname)s - %(message)s" MAIN_LOG_PATH = "hdf_rpc_api_test.log" -MODULE_NAME = "SPS API Tester" +MODULE_NAME = "DHF API Tester" logger = logging.getLogger(MODULE_NAME) logger.setLevel(LOG_LEVEL) @@ -33,7 +33,7 @@ def list_voter_proposals(start, order_by, order_direction, limit, status): payload = { "jsonrpc" : "2.0", "id" : get_random_id(), - "method" : "sps_api.list_voter_proposals", + "method" : "dhf_api.list_voter_proposals", "params" : { "start" : start, "order_by" : order_by, @@ -50,7 +50,7 @@ def find_proposals(id_set): payload = { "jsonrpc" : "2.0", "id" : get_random_id(), - "method" : "sps_api.find_proposals", + "method" : "dhf_api.find_proposals", "params" : { "id_set" : id_set } @@ -63,7 +63,7 @@ def list_proposals(start, order_by, order_direction, limit, status): payload = { "jsonrpc" : "2.0", "id" : get_random_id(), - "method" : "sps_api.list_proposals", + "method" : "dhf_api.list_proposals", "params" : { "start" : start, "order_by" : order_by, @@ -118,7 +118,7 @@ def run_test(test_name, expected_result, url, payload): logger.error("Exception during processing request: {0}".format(ex)) if __name__ == '__main__': - logger.info("Performing SPS RPC API plugin tests") + logger.info("Performing DHF RPC API plugin tests") import argparse parser = argparse.ArgumentParser() parser.add_argument("--node-ip", help = "IP address of steem node", default = "http://127.0.0.1", dest = "node_ip") @@ -129,7 +129,7 @@ if __name__ == '__main__': url = "{0}:{1}".format(args.node_ip, args.node_port) logger.info("Using node at: {}".format(url)) - logger.info("Running SPS RPC API tests") + logger.info("Running DHF RPC API tests") payload = find_proposals([1234, 2, 3, 4]) run_test("Basic find_proposal test", None, url, payload) @@ -139,7 +139,7 @@ if __name__ == '__main__': payload = list_voter_proposals("blocktrades", "by_creator", "direction_ascending", 1, "all") run_test("Basic list_voter_proposals test", None, url, payload) - logger.info("Running SPS API tests via condeser API") + logger.info("Running DHF API tests via condeser API") payload = condenser_find_proposals([1234, 2, 3, 4]) run_test("Basic find_proposal test", None, url, payload) diff --git a/hived/pyresttest_api_tests/condenser_api/dhf_via_condenser_test.yaml b/hived/pyresttest_api_tests/condenser_api/dhf_via_condenser_test.yaml index 1fa692f9..4303f5c7 100644 --- a/hived/pyresttest_api_tests/condenser_api/dhf_via_condenser_test.yaml +++ b/hived/pyresttest_api_tests/condenser_api/dhf_via_condenser_test.yaml @@ -1,6 +1,6 @@ --- - config: - - testset: "SPS via Condenser API Tests" + - testset: "DHF via Condenser API Tests" - api: &api "condenser_api" - variable_binds: - api: *api diff --git a/hived/pyresttest_api_tests/dhf_api/dhf_api_test.yaml b/hived/pyresttest_api_tests/dhf_api/dhf_api_test.yaml index 838b73e1..f64f54ea 100644 --- a/hived/pyresttest_api_tests/dhf_api/dhf_api_test.yaml +++ b/hived/pyresttest_api_tests/dhf_api/dhf_api_test.yaml @@ -1,7 +1,7 @@ --- - config: - - testset: "SPS API Tests" - - api: &api "sps_api" + - testset: "DHF API Tests" + - api: &api "dhf_api" - variable_binds: - api: *api - generators: diff --git a/hived/pyresttest_api_tests/run_api_tests.sh b/hived/pyresttest_api_tests/run_api_tests.sh index d3d5fffe..0df17427 100755 --- a/hived/pyresttest_api_tests/run_api_tests.sh +++ b/hived/pyresttest_api_tests/run_api_tests.sh @@ -29,10 +29,10 @@ pyresttest $NODE:$RPC_PORT ./database_api/database_api_test.yaml --import_extens pyresttest $NODE:$RPC_PORT ./account_history_api/account_history_api_test.yaml --import_extensions='validator_ex;'$COMPARATOR [ $? -ne 0 ] && EXIT_CODE=-1 -pyresttest $NODE:$RPC_PORT ./sps_api/sps_api_test.yaml --import_extensions='validator_ex;'$COMPARATOR +pyresttest $NODE:$RPC_PORT ./dhf_api/dhf_api_test.yaml --import_extensions='validator_ex;'$COMPARATOR [ $? -ne 0 ] && EXIT_CODE=-1 -pyresttest $NODE:$RPC_PORT ./condenser_api/sps_via_condenser_test.yaml --import_extensions='validator_ex;'$COMPARATOR +pyresttest $NODE:$RPC_PORT ./condenser_api/dhf_via_condenser_test.yaml --import_extensions='validator_ex;'$COMPARATOR [ $? -ne 0 ] && EXIT_CODE=-1 exit $EXIT_CODE diff --git a/hived/reference/condenser_api/README.md b/hived/reference/condenser_api/README.md index 6e9e5602..8e2469fb 100644 --- a/hived/reference/condenser_api/README.md +++ b/hived/reference/condenser_api/README.md @@ -648,7 +648,7 @@ At first look it works good but sometimes output differs in: `head_block_id `head_block_number `last_irreversible_block_num -`sps_interval_ledger +`dhf_interval_ledger `time `total_vesting_fund_hive `total_vesting_shares -- GitLab