Skip to content
Snippets Groups Projects
Commit 4deb22f6 authored by Dariusz Kędzierski's avatar Dariusz Kędzierski
Browse files

[WIP] More work on pyrest tests for hivemind

- test definitions are now complete,
- benchmark definitions are now complete,

Now we need to add reference json data for tests (in next commits).
parent 5ab85726
No related branches found
No related tags found
4 merge requests!456Release candidate v1 24,!230Setup monitoring with pghero,!135Enable postgres monitoring on CI server,!20Dk issue 3 pyresttests
...@@ -20,4 +20,74 @@ ...@@ -20,4 +20,74 @@
- metrics: - metrics:
- total_time - total_time
- total_time: mean - total_time: mean
- total_time: median - total_time: median
\ No newline at end of file
- benchmark:
- name: "get_followers"
- variable_binds:
- method: "get_followers"
- args: {"account":"steemit","start":null,"type":"blog","limit":10}
- <<: *base_benchmark
- benchmark:
- name: "get_following"
- variable_binds:
- method: "get_following"
- args: {"account":"steemit","start":null,"type":"blog","limit":10}
- <<: *base_benchmark
- benchmark:
- name: "get_follow_count"
- variable_binds:
- method: "get_follow_count"
- args: {"account":"steemit"}
- <<: *base_benchmark
- benchmark:
- name: "get_account_reputations"
- variable_binds:
- method: "get_account_reputations"
- args: {"account_lower_bound": "steem"}
- <<: *base_benchmark
- benchmark:
- name: "get_blog"
- variable_binds:
- method: "get_blog"
- args: {"account":"steemit","start_entry_id":0,"limit":1}
- <<: *base_benchmark
- benchmark:
- name: "get_blog_entries"
- variable_binds:
- method: "get_blog_entries"
- args: {"account":"steemit","start_entry_id":0,"limit":1}
- <<: *base_benchmark
- benchmark:
- name: "get_reblogged_by"
- variable_binds:
- method: "get_reblogged_by"
- args: {"author":"steemit","permlink":"firstpost"}
- <<: *base_benchmark
- benchmark:
- name: "get_feed_entries"
- variable_binds:
- method: "get_feed_entries"
- args: {"account":"steemit","start_entry_id":0,"limit":1}
- <<: *base_benchmark
- benchmark:
- name: "get_feed"
- variable_binds:
- method: "get_feed"
- args: {"account":"steemit","start_entry_id":0,"limit":1}
- <<: *base_benchmark
- benchmark:
- name: "get_blog_authors"
- variable_binds:
- method: "get_blog_authors"
- args: {"blog_account":"steemit"}
- <<: *base_benchmark
\ No newline at end of file
...@@ -24,68 +24,68 @@ ...@@ -24,68 +24,68 @@
- name: "get_followers" - name: "get_followers"
- variable_binds: - variable_binds:
- method: "get_followers" - method: "get_followers"
- args: {} - args: {"account":"steemit","start":null,"type":"blog","limit":10}
- <<: *base_test - <<: *base_test
- test: - test:
- name: "get_following" - name: "get_following"
- variable_binds: - variable_binds:
- method: "get_following" - method: "get_following"
- args: {} - args: {"account":"steemit","start":null,"type":"blog","limit":10}
- <<: *base_test - <<: *base_test
- test: - test:
- name: "get_follow_count" - name: "get_follow_count"
- variable_binds: - variable_binds:
- method: "get_follow_count" - method: "get_follow_count"
- args: {} - args: {"account":"steemit"}
- <<: *base_test - <<: *base_test
- test: - test:
- name: "get_account_reputations" - name: "get_account_reputations"
- variable_binds: - variable_binds:
- method: "get_account_reputations" - method: "get_account_reputations"
- args: {} - args: {"account_lower_bound": "steem"}
- <<: *base_test - <<: *base_test
- test: - test:
- name: "get_blog" - name: "get_blog"
- variable_binds: - variable_binds:
- method: "get_blog" - method: "get_blog"
- args: {} - args: {"account":"steemit","start_entry_id":0,"limit":1}
- <<: *base_test - <<: *base_test
- test: - test:
- name: "get_blog_entries" - name: "get_blog_entries"
- variable_binds: - variable_binds:
- method: "get_blog_entries" - method: "get_blog_entries"
- args: {} - args: {"account":"steemit","start_entry_id":0,"limit":1}
- <<: *base_test - <<: *base_test
- test: - test:
- name: "get_reblogged_by" - name: "get_reblogged_by"
- variable_binds: - variable_binds:
- method: "get_reblogged_by" - method: "get_reblogged_by"
- args: {} - args: {"author":"steemit","permlink":"firstpost"}
- <<: *base_test - <<: *base_test
- test: - test:
- name: "get_feed_entries" - name: "get_feed_entries"
- variable_binds: - variable_binds:
- method: "get_feed_entries" - method: "get_feed_entries"
- args: {} - args: {"account":"steemit","start_entry_id":0,"limit":1}
- <<: *base_test - <<: *base_test
- test: - test:
- name: "get_feed" - name: "get_feed"
- variable_binds: - variable_binds:
- method: "get_feed" - method: "get_feed"
- args: {} - args: {"account":"steemit","start_entry_id":0,"limit":1}
- <<: *base_test - <<: *base_test
- test: - test:
- name: "get_blog_authors" - name: "get_blog_authors"
- variable_binds: - variable_binds:
- method: "get_blog_authors" - method: "get_blog_authors"
- args: {} - args: {"blog_account":"steemit"}
- <<: *base_test - <<: *base_test
\ No newline at end of file
...@@ -20,4 +20,130 @@ ...@@ -20,4 +20,130 @@
- metrics: - metrics:
- total_time - total_time
- total_time: mean - total_time: mean
- total_time: median - total_time: median
\ No newline at end of file
- benchmark:
- name: "get_discussion"
- variable_binds:
- method: "get_discussion"
- args: {"author":"steemit", "permlink":"firstpost"}
- <<: *base_benchmark
- benchmark:
- name: "get_content_replies"
- variable_binds:
- method: "get_content_replies"
- args: {"author":"steemit", "permlink":"firstpost"}
- <<: *base_benchmark
- benchmark:
- name: "get_discussions_by_trending"
- variable_binds:
- method: "get_discussions_by_trending"
- args: {"tag":"steem","limit":1}
- <<: *base_benchmark
- benchmark:
- name: "get_discussions_by_hot"
- variable_binds:
- method: "get_discussions_by_hot"
- args: {"tag":"steem","limit":1}
- <<: *base_benchmark
- benchmark:
- name: "get_discussions_by_promoted"
- variable_binds:
- method: "get_discussions_by_promoted"
- args: {"tag":"steem","limit":1}
- <<: *base_benchmark
- benchmark:
- name: "get_discussions_by_created"
- variable_binds:
- method: "get_discussions_by_created"
- args: {"tag":"steem","limit":1}
- <<: *base_benchmark
- benchmark:
- name: "get_discussions_by_blog"
- variable_binds:
- method: "get_discussions_by_blog"
- args: {"tag":"steemit","limit":1}
- <<: *base_benchmark
- benchmark:
- name: "get_discussions_by_comments"
- variable_binds:
- method: "get_discussions_by_comments"
- args: {"start_author":"steemit","start_permlink":"firstpost","limit":1}
- <<: *base_benchmark
- benchmark:
- name: "get_discussions_by_author_before_date"
- variable_binds:
- method: "get_discussions_by_author_before_date"
- args: {"author":"steemit","start_permlink":"firstpost","before_date":"2016-04-19T22:49:43","limit":1}
- <<: *base_benchmark
- benchmark:
- name: "get_post_discussions_by_payout"
- variable_binds:
- method: "get_post_discussions_by_payout"
- args: {"tag":"steem","limit":1}
- <<: *base_benchmark
- benchmark:
- name: "get_comment_discussions_by_payout"
- variable_binds:
- method: "get_comment_discussions_by_payout"
- args: {"tag":"steem","limit":1}
- <<: *base_benchmark
- benchmark:
- name: "get_active_votes"
- variable_binds:
- method: "get_active_votes"
- args: {"author":"steemit", "permlink":"firstpost"}
- <<: *base_benchmark
- benchmark:
- name: "get_tags_used_by_author"
- variable_binds:
- method: "get_tags_used_by_author"
- args: {"author":"steemit"}
- <<: *base_benchmark
- benchmark:
- name: "get_discussions_by_active"
- variable_binds:
- method: "get_discussions_by_active"
- args: {"tag":"steem","limit":1}
- <<: *base_benchmark
- benchmark:
- name: "get_discussions_by_cashout"
- variable_binds:
- method: "get_discussions_by_cashout"
- args: {"tag":"steem","limit":1}
- <<: *base_benchmark
- benchmark:
- name: "get_discussions_by_votes"
- variable_binds:
- method: "get_discussions_by_votes"
- args: {"tag":"steem","limit":1}
- <<: *base_benchmark
- benchmark:
- name: "get_discussions_by_children"
- variable_binds:
- method: "get_discussions_by_children"
- args: {"tag":"steem","limit":1}
- <<: *base_benchmark
- benchmark:
- name: "get_account_votes"
- variable_binds:
- method: "get_account_votes"
- args: {"account":"steemit"}
- <<: *base_benchmark
\ No newline at end of file
...@@ -24,124 +24,124 @@ ...@@ -24,124 +24,124 @@
- name: "get_discussion" - name: "get_discussion"
- variable_binds: - variable_binds:
- method: "get_discussion" - method: "get_discussion"
- args: {} - args: {"author":"steemit", "permlink":"firstpost"}
- <<: *base_test - <<: *base_test
- test: - test:
- name: "get_content_replies" - name: "get_content_replies"
- variable_binds: - variable_binds:
- method: "get_content_replies" - method: "get_content_replies"
- args: {} - args: {"author":"steemit", "permlink":"firstpost"}
- <<: *base_test - <<: *base_test
- test: - test:
- name: "get_discussions_by_trending" - name: "get_discussions_by_trending"
- variable_binds: - variable_binds:
- method: "get_discussions_by_trending" - method: "get_discussions_by_trending"
- args: {} - args: {"tag":"steem","limit":1}
- <<: *base_test - <<: *base_test
- test: - test:
- name: "get_discussions_by_hot" - name: "get_discussions_by_hot"
- variable_binds: - variable_binds:
- method: "get_discussions_by_hot" - method: "get_discussions_by_hot"
- args: {} - args: {"tag":"steem","limit":1}
- <<: *base_test - <<: *base_test
- test: - test:
- name: "get_discussions_by_promoted" - name: "get_discussions_by_promoted"
- variable_binds: - variable_binds:
- method: "get_discussions_by_promoted" - method: "get_discussions_by_promoted"
- args: {} - args: {"tag":"steem","limit":1}
- <<: *base_test - <<: *base_test
- test: - test:
- name: "get_discussions_by_created" - name: "get_discussions_by_created"
- variable_binds: - variable_binds:
- method: "get_discussions_by_created" - method: "get_discussions_by_created"
- args: {} - args: {"tag":"steem","limit":1}
- <<: *base_test - <<: *base_test
- test: - test:
- name: "get_discussions_by_blog" - name: "get_discussions_by_blog"
- variable_binds: - variable_binds:
- method: "get_discussions_by_blog" - method: "get_discussions_by_blog"
- args: {} - args: {"tag":"steemit","limit":1}
- <<: *base_test - <<: *base_test
- test: - test:
- name: "get_discussions_by_comments" - name: "get_discussions_by_comments"
- variable_binds: - variable_binds:
- method: "get_discussions_by_comments" - method: "get_discussions_by_comments"
- args: {} - args: {"start_author":"steemit","start_permlink":"firstpost","limit":1}
- <<: *base_test - <<: *base_test
- test: - test:
- name: "get_discussions_by_author_before_date" - name: "get_discussions_by_author_before_date"
- variable_binds: - variable_binds:
- method: "get_discussions_by_author_before_date" - method: "get_discussions_by_author_before_date"
- args: {} - args: {"author":"steemit","start_permlink":"firstpost","before_date":"2016-04-19T22:49:43","limit":1}
- <<: *base_test - <<: *base_test
- test: - test:
- name: "get_post_discussions_by_payout" - name: "get_post_discussions_by_payout"
- variable_binds: - variable_binds:
- method: "get_post_discussions_by_payout" - method: "get_post_discussions_by_payout"
- args: {} - args: {"tag":"steem","limit":1}
- <<: *base_test - <<: *base_test
- test: - test:
- name: "get_comment_discussions_by_payout" - name: "get_comment_discussions_by_payout"
- variable_binds: - variable_binds:
- method: "get_comment_discussions_by_payout" - method: "get_comment_discussions_by_payout"
- args: {} - args: {"tag":"steem","limit":1}
- <<: *base_test - <<: *base_test
- test: - test:
- name: "get_active_votes" - name: "get_active_votes"
- variable_binds: - variable_binds:
- method: "get_active_votes" - method: "get_active_votes"
- args: {} - args: {"author":"steemit", "permlink":"firstpost"}
- <<: *base_test - <<: *base_test
- test: - test:
- name: "get_tags_used_by_author" - name: "get_tags_used_by_author"
- variable_binds: - variable_binds:
- method: "get_tags_used_by_author" - method: "get_tags_used_by_author"
- args: {} - args: {"author":"steemit"}
- <<: *base_test - <<: *base_test
- test: - test:
- name: "get_discussions_by_active" - name: "get_discussions_by_active"
- variable_binds: - variable_binds:
- method: "get_discussions_by_active" - method: "get_discussions_by_active"
- args: {} - args: {"tag":"steem","limit":1}
- <<: *base_test - <<: *base_test
- test: - test:
- name: "get_discussions_by_cashout" - name: "get_discussions_by_cashout"
- variable_binds: - variable_binds:
- method: "get_discussions_by_cashout" - method: "get_discussions_by_cashout"
- args: {} - args: {"tag":"steem","limit":1}
- <<: *base_test - <<: *base_test
- test: - test:
- name: "get_discussions_by_votes" - name: "get_discussions_by_votes"
- variable_binds: - variable_binds:
- method: "get_discussions_by_votes" - method: "get_discussions_by_votes"
- args: {} - args: {"tag":"steem","limit":1}
- <<: *base_test - <<: *base_test
- test: - test:
- name: "get_discussions_by_children" - name: "get_discussions_by_children"
- variable_binds: - variable_binds:
- method: "get_discussions_by_children" - method: "get_discussions_by_children"
- args: {} - args: {"tag":"steem","limit":1}
- <<: *base_test - <<: *base_test
- test: - test:
- name: "get_account_votes" - name: "get_account_votes"
- variable_binds: - variable_binds:
- method: "get_account_votes" - method: "get_account_votes"
- args: {} - args: {"account":"steemit"}
- <<: *base_test - <<: *base_test
\ 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