Skip to content
Snippets Groups Projects
Commit 17d60f65 authored by Mariusz Trela's avatar Mariusz Trela Committed by Mariusz Trela
Browse files

Added tests for `get_discussions_by_feed` group, when reblogs are taken

parent ba07926d
No related branches found
No related tags found
1 merge request!172New tests
Showing
with 95534 additions and 0 deletions
Check `readme.txt` first
post_id author permlink
------- --------------- ------------------------------------------------------------------------------------------------
The result is empty, because the account `jamesc` hasn't any reblog. The clause `HAVING` excludes whole result,
because doesn't exist any feed for any followings and for ["gavvet","telescopic-tour-featuring-luision-as-author"].
---
test_name: Hivemind condenser_api.get_discussions_by_feed patterns test
marks:
- patterntest # tag is not a tag but account whose feed we are looking at (set of posts created/reblogged by those followed by selected account)
# there can be no nonempty results for not-up-to-date HM because it only gives posts that were created/reblogged within last month (no param to change it)
# there are 4 reblogs done by 'jamesc` account
includes:
- !include ../../common.yaml
stages:
- name: get_discussions_by_feed
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_discussions_by_feed"
params: {"tag":"bartcant","start_author":"churdtzu","start_permlink":"impossible-a-conversation-with-a-statist-about-starting-a-business","limit":20}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "bartcant"
directory: "condenser_api_patterns/get_discussions_by_feed"
\ No newline at end of file
Check `readme.txt` first
post_id author permlink
------- ------------- ----------------------------------------------------------------------------------------------------
834376 gavvet telescopic-tour-featuring-luision-as-author
823675 gavvet chronicles-of-alan-army-day-s-final
823386 gavvet selfie-with-the-partial-solar-eclipse-featuring-tim-beck-as-author
815301 berniesanders please-stop-sending-sbd-asking-me-to-look-at-your-links
814031 gavvet re-evaluating-the-star-of-bethlehem-part-1-featuring-new-author-vuyusile
811048 gavvet the-state-of-steemit-com-growth
802704 ratel what-is-smart-lens
799582 gavvet maybe-my-daughter-just-doesn-t-like-me-featuring-hanshotfirst-as-author
788913 gavvet anger-a-self-administered-poison
788251 gavvet chronicles-of-alan-another-reason-i-do-not-drink-featuring-awgbibb-as-author
787754 gavvet journey-to-the-tolbachik-the-story-with-original-pictures-part-1-puteshestvie-na-tolbachik-featuring
779009 ratel kak-ya-stal-zhertvoi-moshennikov-dvazhdy-za-den
765614 btcturbo pazl-wings-seriya-3-kak-rabotayut-zayavki-na-sozdanie-dao
765193 gavvet fire-walking-i-ve-done-it
764951 gavvet knights-of-the-sea-greates-battleships-of-ww-ii-rycari-morya-linkory-vtoroi-mirovoi-featuring-burmik
757009 gavvet lyrics-from-alan-stalker-featuring-awgbibb-as-author
756589 gavvet the-life-of-an-ambivert-featuring-sauravrungta-as-author
744234 gavvet steel-birds-the-main-planes-fighters-of-ww-ii-part-ii-eng-rus-featuring-burmik123-as-author
743882 gavvet i-think-you-re-crazy-for-making-me-write-an-essay-telling-you-who-i-think-i-am-featuring-author-john
733930 gavvet i-always-had-a-fantasy-of-being-a-chef-jeg-har-alltid-hatt-en-fantasi-om-a-vaere-en-kokk-featuring-n
Following records don't exist in pattern.
[`gavvet`, `i-think-you-re-crazy-for-making-me-write-an-essay-telling-you-who-i-think-i-am-featuring-author-john`]
[`gavvet`, `i-always-had-a-fantasy-of-being-a-chef-jeg-har-alltid-hatt-en-fantasi-om-a-vaere-en-kokk-featuring-n`]
It's caused by lack of reblog for the account `jamesc`, therefore instead of above records, there are following records in pattern
[`charleshosk`, 'my-thoughts-on-ross`]
[`dantheman`, `why-do-we-fight-to-change-the-world`]
---
test_name: Hivemind condenser_api.get_discussions_by_feed patterns test
marks:
- patterntest # tag is not a tag but account whose feed we are looking at (set of posts created/reblogged by those followed by selected account)
# there can be no nonempty results for not-up-to-date HM because it only gives posts that were created/reblogged within last month (no param to change it)
# there are 2 reblogs done by 'jamesc` account
includes:
- !include ../../common.yaml
stages:
- name: get_discussions_by_feed
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_discussions_by_feed"
params: {"tag":"funthing","start_author":"gavvet","start_permlink":"telescopic-tour-featuring-luision-as-author","limit":20}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "funthing"
directory: "condenser_api_patterns/get_discussions_by_feed"
\ No newline at end of file
Check `readme.txt` first
post_id author permlink
------- -------------- ----------------------------------------------------------------------------------------------------
816377 the-alien we-have-competition-so-what
816010 hilarski social-media-tip-4-quality-plus-consistency-for-success
815582 timsaid the-steemit-crypto-challenge-4
815451 blueorgy magic-eye-challenge-002-riddle-me-this
815359 dana-edwards z-cash-is-it-possible-to-be-too-anonymous-new-truly-anonymous-cryptocurrency-z-cash-is-about-to-have
815222 dwinblood gamedev-007-so-the-game-was-greenlit-what-have-we-been-up-to-since-then-wormhole-ventures
814971 thecryptofiend things-i-wish-i-d-known-when-i-was-18
814792 phenom the-internet-of-things-our-better-future
814307 sean-king reading-the-bible-is-like-picking-out-diamonds-from-dunghills-part-2
814300 stephthegeek i-was-picking-up-something-from-my-storage-room
814210 dwinblood have-any-of-you-recently-used-steemshovel-com-it-works-much-better-i-found-some-things-i-missed-befo
814200 tuck-fheman steemocracy-a-steem-comic-or-volume-12-or-stellaaaaa-and-the-viking
814142 reneenouveau protect-yourself-because-no-one-else-is-going-to-blockchains-versus-palimpsests
814096 sean-king reading-the-bible-is-like-picking-out-diamonds-from-dunghills
813961 mikemacintire you-can-see-my-reflection-in-this-iguana-s-eye
813729 blueorgy the-upvote-multiplier-more-curation-power-at-the-cost-of-voting-power-ui-design
813500 nexusdev dapp-a-day-18-erc20-token-vault
813330 reneenouveau wilder-ranch-coastal-archaeology-and-seals
813079 blakemiles84 blake-s-mix-1015-porter-robinson-and-mat-zp-easy
812987 timelapse colors-of-agra
Following records don't exist in pattern.
[`blakemiles84`, `blake-s-mix-1015-porter-robinson-and-mat-zp-easy`]
[`timelapse`, `colors-of-agra`]
It's caused by lack of correct reblogs for the account `test-safari`, therefore instead of above records, there are following records in pattern
[`charlieshrem`, 'a-geek-in-prison-a-life-series-by-charlie-shrem-part-3-i-m-actually-in-prison`]
[`rossulbricht`, `lyn-ulbricht-mother-of-silk-road-political-prisoner-ross-ulbricht-is-now-on-steemit`]
---
test_name: Hivemind condenser_api.get_discussions_by_feed patterns test
marks:
- patterntest # tag is not a tag but account whose feed we are looking at (set of posts created/reblogged by those followed by selected account)
# there can be no nonempty results for not-up-to-date HM because it only gives posts that were created/reblogged within last month (no param to change it)
# there are 2 reblogs done by 'test-safari` account
includes:
- !include ../../common.yaml
stages:
- name: get_discussions_by_feed
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_discussions_by_feed"
params: {"tag":"roadscape","start_author":"the-alien","start_permlink":"we-have-competition-so-what","limit":20}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "roadscape"
directory: "condenser_api_patterns/get_discussions_by_feed"
\ No newline at end of file
Check `readme.txt` first
post_id author permlink
------- --------------- ------------------------------------------------------------------------------------------------
The result is empty, because the account `jamesc` hasn't any reblog. The result for `val-a` account consist of 5 records and every record is a reblog.
This diff is collapsed.
---
test_name: Hivemind condenser_api.get_discussions_by_feed patterns test
marks:
- patterntest # tag is not a tag but account whose feed we are looking at (set of posts created/reblogged by those followed by selected account)
# there can be no nonempty results for not-up-to-date HM because it only gives posts that were created/reblogged within last month (no param to change it)
# there are 5 reblogs done by 'jamesc` account
includes:
- !include ../../common.yaml
stages:
- name: get_discussions_by_feed
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_discussions_by_feed"
params: {"tag":"val-a","start_author":"","start_permlink":"","limit":10}
response:
status_code: 200
verify_response_with:
function: validate_response:compare_response_with_pattern
extra_kwargs:
method: "val-a"
directory: "condenser_api_patterns/get_discussions_by_feed"
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment