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
4cab1ab8
Commit
4cab1ab8
authored
4 years ago
by
Dariusz Kędzierski
Browse files
Options
Downloads
Patches
Plain Diff
Updated readme.
parent
a5c6c43b
No related branches found
No related tags found
1 merge request
!6
Updated readme.
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+33
-3
33 additions, 3 deletions
README.md
with
33 additions
and
3 deletions
README.md
+
33
−
3
View file @
4cab1ab8
Contains tests for API. All API tests are currently grouped for these served by hived
and these served by hivemind. The goal is to have flat list of the tests and start
their subsets separatly by hived and hivemind CI processes.
\ No newline at end of file
*
Abstract:
*
This repository contains tests for API. All API tests are currently
grouped for these served by hived and these served by hivemind. The goal is to
have flat list of the tests and start their subsets separatly by hived and
hivemind CI processes.
= Usage:
== Usage with
`hived`
:
=== Python API tests:
Runnable with
`ctest`
(TODO)
=== PyRest API tests:
Node address is defined inside bash script.
a) API tests with
`equal`
comparator (using strict equal on query result and pattern):
`./run_api_tests.sh equal`
b) API tests with
`contain`
comparator (check if result contain pattern):
`./run_api_tests.sh contain`
== Usage with
`hivemind`
:
=== Python API tests:
Runnable with
`ctest`
(TODO)
=== PyRest API tests:
In tests directory we have two bash scripts
`run_api_tests.sh`
and
`run_api_benchmarks.sh`
.
Examples of running scripts:
a) API tests with
`equal`
comparator (using strict equal on query result and pattern):
`./run_api_tests.sh https://api.hive.blog equal`
b) API tests with
`contain`
comparator (check if result contain pattern):
`./run_api_tests.sh https://api.hive.blog contain`
c) Benchmarks:
`./run_api_benchmarks.sh https://api.hive.blog`
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