From b4318ec4ba674f6f8a08f9f1cccdf89b39fe94a0 Mon Sep 17 00:00:00 2001
From: techcoderx <engtianxi@outlook.com>
Date: Thu, 26 Nov 2020 18:18:45 +0800
Subject: [PATCH] make test work again & update readme

---
 Makefile                                     |  2 +-
 README.md                                    | 10 +++++-----
 contrib/async_http_client.py                 |  2 +-
 contrib/http_client.py                       |  2 +-
 tests/conftest.py                            | 12 ++++++------
 tests/data/configs/TEST_UPSTREAM_CONFIG.json |  2 +-
 6 files changed, 15 insertions(+), 15 deletions(-)

diff --git a/Makefile b/Makefile
index a1ffc3c..44a0b16 100644
--- a/Makefile
+++ b/Makefile
@@ -154,7 +154,7 @@ test-live-staging-appbase-calls:
 
 .PHONY: test-live-prod-appbase-calls
 test-live-prod-appbase-calls:
-	pipenv run pytest --maxfail=1 tests/test_responses.py::test_appbase_responses --jussiurl https://api.hive.blog
+	pipenv run pytest --maxfail=1 tests/test_responses.py::test_appbase_responses --jussiurl https://api.steemit.com
 
 
 ./perf:
diff --git a/README.md b/README.md
index e024941..50ae8db 100644
--- a/README.md
+++ b/README.md
@@ -74,7 +74,7 @@ Each urls key can have multiple endpoints for each namespace. For example:
 ```
 {
   "urls":[
-    ["appbase", "https://api.steemitdev.com"]
+    ["appbase", "https://api.hive.blog"]
   ]
 }
 ```
@@ -84,9 +84,9 @@ Each urls key can have multiple endpoints for each namespace. For example:
 ```
 {
   "urls":[
-    ["appbase","https://api.steemitdev.com"],
-    ["appbase.condenser_api.get_account_history","https://api-for-account-history.steemitdev.com"],
-    ["appbase.condenser_api.get_ops_in_block","https://api-for-get-ops-in-block.steemitdev.com"]
+    ["appbase","https://api.hive.blog"],
+    ["appbase.condenser_api.get_account_history","https://api-for-account-history.hive.blog"],
+    ["appbase.condenser_api.get_ops_in_block","https://api-for-get-ops-in-block.hive.blog"]
   ]
 }
 ```
@@ -147,4 +147,4 @@ Certain features of jussi can be configured using environment variables. If you
 
 ## Additional documentation
 
-For more indepth documentation on jussi including examples, check out the section on it in the steem dev portal: https://developers.steem.io/services/#services-jussi
+For more indepth documentation on jussi including examples, check out the section on it in the Hive dev portal: https://developers.hive.io/services/#services-jussi
diff --git a/contrib/async_http_client.py b/contrib/async_http_client.py
index 9e97d5c..288c8af 100644
--- a/contrib/async_http_client.py
+++ b/contrib/async_http_client.py
@@ -93,7 +93,7 @@ def chunkify(iterable, chunksize=3000):
 class AsyncClient(object):
     def __init__(self, *, url=None, **kwargs):
         self.url = url or os.environ.get(
-            'STEEMD_HTTP_URL', 'https://api.hive.blog')
+            'STEEMD_HTTP_URL', 'https://steemd.steemitdev.com')
         self.kwargs = kwargs
         self.session = kwargs.get('session', None)
         self.connector = get_in(kwargs, ['session', 'connector'])
diff --git a/contrib/http_client.py b/contrib/http_client.py
index 178b0e1..23f03aa 100644
--- a/contrib/http_client.py
+++ b/contrib/http_client.py
@@ -80,7 +80,7 @@ class SimpleSteemAPIClient(object):
                  tcp_keepalive=True,
                  **kwargs):
         url = url or os.environ.get('STEEMD_HTTP_URL',
-                                    'https://api.hive.blog')
+                                    'https://steemd.steemitdev.com')
         self.url = url
         self.hostname = urlparse(url).hostname
         self.return_with_args = kwargs.get('return_with_args', False)
diff --git a/tests/conftest.py b/tests/conftest.py
index 550e6d8..46a0d91 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -1139,7 +1139,7 @@ URN_TEST_REQUEST_DICTS = [
         'params': _empty
     },
         'hived.database_api.get_dynamic_global_properties',
-        'https://api.hive.blog',
+        'wss://steemd.steemitdev.com',
         1,
         3
     ),
@@ -1157,7 +1157,7 @@ URN_TEST_REQUEST_DICTS = [
         'params': []
     },
         'hived.database_api.get_dynamic_global_properties.params=[]',
-        'https://api.hive.blog',
+        'wss://steemd.steemitdev.com',
         1,
         3
     ),
@@ -1175,7 +1175,7 @@ URN_TEST_REQUEST_DICTS = [
         'params': [1]
     },
         'hived.database_api.get_block.params=[1]',
-        'https://api.hive.blog',
+        'wss://steemd.steemitdev.com',
         -2,
         3
     ),
@@ -1217,7 +1217,7 @@ URN_TEST_REQUEST_DICTS = [
         'params': []
     },
         'hived.database_api.get_account_count.params=[]',
-        'https://api.hive.blog',
+        'wss://steemd.steemitdev.com',
         3,
         3
     ),
@@ -1235,7 +1235,7 @@ URN_TEST_REQUEST_DICTS = [
         'params': ["", ""]
     },
         'hived.login_api.login.params=["",""]',
-        'https://api.hive.blog',
+        'wss://steemd.steemitdev.com',
         -1,
         3
     ),
@@ -1252,7 +1252,7 @@ URN_TEST_REQUEST_DICTS = [
         'params': []
     },
         'hived.database_api.find_accounts.params=[]',
-        'https://api.hive.blog',
+        'wss://steemd.steemitdev.com',
         3,
         3
     ),
diff --git a/tests/data/configs/TEST_UPSTREAM_CONFIG.json b/tests/data/configs/TEST_UPSTREAM_CONFIG.json
index 1ed9529..3aca04d 100644
--- a/tests/data/configs/TEST_UPSTREAM_CONFIG.json
+++ b/tests/data/configs/TEST_UPSTREAM_CONFIG.json
@@ -8,7 +8,7 @@
       "urls": [
         [
           "hived",
-          "https://api.hive.blog"
+          "wss://steemd.steemitdev.com"
         ]
       ],
       "ttls": [
-- 
GitLab