Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
tests_api
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hive
tests_api
Commits
a8cd6ce9
Commit
a8cd6ce9
authored
4 years ago
by
Andrzej Lisak
Browse files
Options
Downloads
Patches
Plain Diff
[ABW] second experiment with automatic line ending normalization
parent
9d5298d4
No related branches found
No related tags found
1 merge request
!11
Tags api patterns
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitattributes
+2
-1
2 additions, 1 deletion
.gitattributes
hivemind/pyrest_tests/5000000/tags_api/tags_api_test.yaml
+153
-153
153 additions, 153 deletions
hivemind/pyrest_tests/5000000/tags_api/tags_api_test.yaml
with
155 additions
and
154 deletions
.gitattributes
+
2
−
1
View file @
a8cd6ce9
* text=lf
\ No newline at end of file
* text=auto eol=lf
*.pat.json -text
\ No newline at end of file
This diff is collapsed.
Click to expand it.
hivemind/pyrest_tests/5000000/tags_api/tags_api_test.yaml
+
153
−
153
View file @
a8cd6ce9
---
- 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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment