Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • hive/tests_api
1 result
Show changes
Showing
with 29324 additions and 6 deletions
Source diff could not be displayed: it is too large. Options to address this: view the blob.
Source diff could not be displayed: it is too large. Options to address this: view the blob.
---
test_name: Hivemind condenser_api.get_state patterns test # Deprecated
marks:
- patterntest
includes:
- !include ../../common.yaml
stages:
- name: get_state
request:
url: "{service.proto:s}://{service.server:s}:{service.port}/"
method: POST
headers:
content-type: application/json
json:
jsonrpc: "2.0"
id: 1
method: "condenser_api.get_state"
params: ["/hot/news"]
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "hot_news"
directory: "condenser_api_patterns/get_state"
\ No newline at end of file
{
"accounts": {},
"content": {},
"discussion_idx": {
"": {}
},
"feed_price": {
"base": "0.637 HBD",
"quote": "1.000 HIVE"
},
"props": {
"head_block_number": 5000000,
"last_irreversible_block_num": 4999980,
"sbd_interest_rate": 1000,
"sbd_print_rate": 10000,
"time": "2016-09-15T19:47:21",
"total_vesting_fund_steem": "149190428.013 HIVE",
"total_vesting_shares": "448144916705.468384 VESTS"
},
"tag_idx": {
"trending": []
},
"tags": {}
}
{
"accounts": {},
"content": {},
"discussion_idx": {
"": {}
},
"feed_price": {
"base": "0.637 HBD",
"quote": "1.000 HIVE"
},
"props": {
"hbd_interest_rate": 1000,
"hbd_print_rate": 10000,
"head_block_number": 5000000,
"last_irreversible_block_num": 4999980,
"time": "2016-09-15T19:47:21",
"total_vesting_fund_hive": "149190428.013 HIVE",
"total_vesting_shares": "448144916705.468384 VESTS"
},
"tag_idx": {
"trending": []
},
"tags": {}
}
---
test_name: Hivemind condenser_api.get_state patterns test # Deprecated
marks:
- patterntest
includes:
- !include ../../common.yaml
stages:
- name: get_state
request:
url: "{service.proto:s}://{service.server:s}:{service.port}/"
method: POST
headers:
content-type: application/json
json:
jsonrpc: "2.0"
id: 1
method: "condenser_api.get_state"
params: ["market"]
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "market"
directory: "condenser_api_patterns/get_state"
\ No newline at end of file
......@@ -666,9 +666,9 @@
"props": {
"hbd_interest_rate": 1000,
"hbd_print_rate": 10000,
"head_block_number": 5000017,
"head_block_number": 5000000,
"last_irreversible_block_num": 4999980,
"time": "2016-09-15T19:48:12",
"time": "2016-09-15T19:47:21",
"total_vesting_fund_hive": "149190428.013 HIVE",
"total_vesting_shares": "448144916705.468384 VESTS"
},
......
......@@ -666,9 +666,9 @@
"props": {
"hbd_interest_rate": 1000,
"hbd_print_rate": 10000,
"head_block_number": 5000017,
"head_block_number": 5000000,
"last_irreversible_block_num": 4999980,
"time": "2016-09-15T19:48:12",
"time": "2016-09-15T19:47:21",
"total_vesting_fund_hive": "149190428.013 HIVE",
"total_vesting_shares": "448144916705.468384 VESTS"
},
......
......@@ -2675,9 +2675,9 @@
"props": {
"hbd_interest_rate": 1000,
"hbd_print_rate": 10000,
"head_block_number": 5000017,
"head_block_number": 5000000,
"last_irreversible_block_num": 4999980,
"time": "2016-09-15T19:48:12",
"time": "2016-09-15T19:47:21",
"total_vesting_fund_hive": "149190428.013 HIVE",
"total_vesting_shares": "448144916705.468384 VESTS"
},
......
---
test_name: Hivemind condenser_api.get_state patterns test # Deprecated
marks:
- patterntest
includes:
- !include ../../common.yaml
stages:
- name: get_state
request:
url: "{service.proto:s}://{service.server:s}:{service.port}/"
method: POST
headers:
content-type: application/json
json:
jsonrpc: "2.0"
id: 1
method: "condenser_api.get_state"
params: ["tags"]
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "tags"
directory: "condenser_api_patterns/get_state"
\ No newline at end of file
---
test_name: Hivemind condenser_api.get_state patterns test # Deprecated
marks:
- patterntest
includes:
- !include ../../common.yaml
stages:
- name: get_state
request:
url: "{service.proto:s}://{service.server:s}:{service.port}/"
method: POST
headers:
content-type: application/json
json:
jsonrpc: "2.0"
id: 1
method: "condenser_api.get_state"
params: ["/trending/asia"]
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "trending_asia"
directory: "condenser_api_patterns/get_state"
\ No newline at end of file