Skip to content
Snippets Groups Projects
Commit a8cd6ce9 authored by Andrzej Lisak's avatar Andrzej Lisak
Browse files

[ABW] second experiment with automatic line ending normalization

parent 9d5298d4
No related branches found
No related tags found
1 merge request!11Tags api patterns
* text=lf
\ No newline at end of file
* text=auto eol=lf
*.pat.json -text
\ No newline at end of file
---
- config:
- testset: "Tags API Tests"
- api: &api "tags_api"
- variable_binds:
- api: *api
- generators:
- test_id: {type: 'number_sequence', start: 1}
- base_test: &base_test
- generator_binds:
- test_id: test_id
- group: *api
- url: "/"
- method: "POST"
- body: {template: {file: "../../templates/request_template.json"}}
- validators:
- extract_test: {jsonpath_mini: "error", test: "not_exists"}
- extract_test: {jsonpath_mini: "result", test: "exists"}
- compare: {jsonpath_mini: "id", comparator: "str_eq", expected: {template: $test_id}}
- json_file_validator: {jsonpath_mini: "result", comparator: "json_compare", expected: {template: '5000000/$api/$method'}}
- test:
- name: "get_discussion"
- variable_binds:
- method: "get_discussion"
- args: '{"author":"steemit", "permlink":"firstpost"}'
- <<: *base_test
- test:
- name: "get_content_replies"
- variable_binds:
- method: "get_content_replies"
- args: '{"author":"admin", "permlink":"firstpost"}'
- <<: *base_test
- test:
- name: "get_discussions_by_trending"
- variable_binds:
- method: "get_discussions_by_trending"
- args: '{"tag":"polska","limit":1}'
- <<: *base_test
- test:
- name: "get_discussions_by_hot"
- variable_binds:
- method: "get_discussions_by_hot"
- args: '{"tag":"polska","limit":1}'
- <<: *base_test
- test:
- name: "get_discussions_by_promoted"
- variable_binds:
- method: "get_discussions_by_promoted"
- args: '{"tag":"steem","limit":1}'
- <<: *base_test
- test:
- name: "get_discussions_by_created"
- variable_binds:
- method: "get_discussions_by_created"
- args: '{"tag":"polska","limit":1}'
- <<: *base_test
- test:
- name: "get_discussions_by_blog"
- variable_binds:
- method: "get_discussions_by_blog"
- args: '{"tag":"steemit","limit":1}'
- <<: *base_test
- test:
- name: "get_discussions_by_comments"
- variable_binds:
- method: "get_discussions_by_comments"
- args: '{"start_author":"admin","start_permlink":"firstpost","limit":1}'
- <<: *base_test
- test:
- 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_test
- test:
- name: "get_post_discussions_by_payout"
- variable_binds:
- method: "get_post_discussions_by_payout"
- args: '{"tag":"polska","limit":1}'
- <<: *base_test
- test:
- name: "get_comment_discussions_by_payout"
- variable_binds:
- method: "get_comment_discussions_by_payout"
- args: '{"tag":"polska","limit":1}'
- <<: *base_test
# Not found
# - test:
# - name: "get_active_votes"
# - variable_binds:
# - method: "get_active_votes"
# - args: '{"author":"steemit", "permlink":"firstpost"}'
# - <<: *base_test
# Not found
# - test:
# - name: "get_tags_used_by_author"
# - variable_binds:
# - method: "get_tags_used_by_author"
# - args: '{"author":"steemit"}'
# - <<: *base_test
# Not found
# - test:
# - name: "get_discussions_by_active"
# - variable_binds:
# - method: "get_discussions_by_active"
# - args: '{"tag":"steem","limit":1}'
# - <<: *base_test
# Not found
# - test:
# - name: "get_discussions_by_cashout"
# - variable_binds:
# - method: "get_discussions_by_cashout"
# - args: '{"tag":"steem","limit":1}'
# - <<: *base_test
# Not found
# - test:
# - name: "get_discussions_by_votes"
# - variable_binds:
# - method: "get_discussions_by_votes"
# - args: '{"tag":"steem","limit":1}'
# - <<: *base_test
# Not found
# - test:
# - name: "get_discussions_by_children"
# - variable_binds:
# - method: "get_discussions_by_children"
# - args: '{"tag":"steem","limit":1}'
# - <<: *base_test
# No longer supported
# - test:
# - name: "get_account_votes"
# - variable_binds:
# - method: "get_account_votes"
# - args: '{"account":"steemit"}'
---
- config:
- testset: "Tags API Tests"
- api: &api "tags_api"
- variable_binds:
- api: *api
- generators:
- test_id: {type: 'number_sequence', start: 1}
- base_test: &base_test
- generator_binds:
- test_id: test_id
- group: *api
- url: "/"
- method: "POST"
- body: {template: {file: "../../templates/request_template.json"}}
- validators:
- extract_test: {jsonpath_mini: "error", test: "not_exists"}
- extract_test: {jsonpath_mini: "result", test: "exists"}
- compare: {jsonpath_mini: "id", comparator: "str_eq", expected: {template: $test_id}}
- json_file_validator: {jsonpath_mini: "result", comparator: "json_compare", expected: {template: '5000000/$api/$method'}}
- test:
- name: "get_discussion"
- variable_binds:
- method: "get_discussion"
- args: '{"author":"steemit", "permlink":"firstpost"}'
- <<: *base_test
- test:
- name: "get_content_replies"
- variable_binds:
- method: "get_content_replies"
- args: '{"author":"admin", "permlink":"firstpost"}'
- <<: *base_test
- test:
- name: "get_discussions_by_trending"
- variable_binds:
- method: "get_discussions_by_trending"
- args: '{"tag":"polska","limit":1}'
- <<: *base_test
- test:
- name: "get_discussions_by_hot"
- variable_binds:
- method: "get_discussions_by_hot"
- args: '{"tag":"polska","limit":1}'
- <<: *base_test
- test:
- name: "get_discussions_by_promoted"
- variable_binds:
- method: "get_discussions_by_promoted"
- args: '{"tag":"steem","limit":1}'
- <<: *base_test
- test:
- name: "get_discussions_by_created"
- variable_binds:
- method: "get_discussions_by_created"
- args: '{"tag":"polska","limit":1}'
- <<: *base_test
- test:
- name: "get_discussions_by_blog"
- variable_binds:
- method: "get_discussions_by_blog"
- args: '{"tag":"steemit","limit":1}'
- <<: *base_test
- test:
- name: "get_discussions_by_comments"
- variable_binds:
- method: "get_discussions_by_comments"
- args: '{"start_author":"admin","start_permlink":"firstpost","limit":1}'
- <<: *base_test
- test:
- 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_test
- test:
- name: "get_post_discussions_by_payout"
- variable_binds:
- method: "get_post_discussions_by_payout"
- args: '{"tag":"polska","limit":1}'
- <<: *base_test
- test:
- name: "get_comment_discussions_by_payout"
- variable_binds:
- method: "get_comment_discussions_by_payout"
- args: '{"tag":"polska","limit":1}'
- <<: *base_test
# Not found
# - test:
# - name: "get_active_votes"
# - variable_binds:
# - method: "get_active_votes"
# - args: '{"author":"steemit", "permlink":"firstpost"}'
# - <<: *base_test
# Not found
# - test:
# - name: "get_tags_used_by_author"
# - variable_binds:
# - method: "get_tags_used_by_author"
# - args: '{"author":"steemit"}'
# - <<: *base_test
# Not found
# - test:
# - name: "get_discussions_by_active"
# - variable_binds:
# - method: "get_discussions_by_active"
# - args: '{"tag":"steem","limit":1}'
# - <<: *base_test
# Not found
# - test:
# - name: "get_discussions_by_cashout"
# - variable_binds:
# - method: "get_discussions_by_cashout"
# - args: '{"tag":"steem","limit":1}'
# - <<: *base_test
# Not found
# - test:
# - name: "get_discussions_by_votes"
# - variable_binds:
# - method: "get_discussions_by_votes"
# - args: '{"tag":"steem","limit":1}'
# - <<: *base_test
# Not found
# - test:
# - name: "get_discussions_by_children"
# - variable_binds:
# - method: "get_discussions_by_children"
# - args: '{"tag":"steem","limit":1}'
# - <<: *base_test
# No longer supported
# - test:
# - name: "get_account_votes"
# - variable_binds:
# - method: "get_account_votes"
# - args: '{"account":"steemit"}'
# - <<: *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