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
912a7b47
Commit
912a7b47
authored
4 years ago
by
Dariusz Kędzierski
Browse files
Options
Downloads
Patches
Plain Diff
Fixed readme file
- Fixed examples: added directory option. - Fixed markdown.
parent
29f1d442
No related branches found
Branches containing commit
No related tags found
1 merge request
!7
Fixed readme file
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+23
-15
23 additions, 15 deletions
README.md
with
23 additions
and
15 deletions
README.md
+
23
−
15
View file @
912a7b47
*
Abstract
:
*
This repository contains tests for API. All API tests are currently
*
*
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
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
have flat list of the tests and start their subsets separatly by hived and
hivemind CI processes.
hivemind CI processes.
= Usage:
# Usage:
== Usage with
`hived`
:
=== Python API tests:
## Usage with `hived`:
### Python API tests:
Runnable with
`ctest`
(TODO)
Runnable with
`ctest`
(TODO)
=== PyRest API tests:
### PyRest API tests:
Node address is defined inside bash script.
Node address is defined inside bash script.
a) API tests with
`equal`
comparator (using strict equal on query result and pattern):
a) API tests with
`equal`
comparator (using strict equal on query result and pattern):
`./run_api_tests.sh equal`
`./run_api_tests.sh equal`
b) API tests with
`contain`
comparator (check if result contain pattern):
b) API tests with
`contain`
comparator (check if result contain pattern):
`./run_api_tests.sh contain`
`./run_api_tests.sh contain`
==
Usage with
`hivemind`
:
##
Usage with `hivemind`:
===
Python API tests:
###
Python API tests:
Runnable with
`ctest`
(TODO)
Runnable with
`ctest`
(TODO)
=== PyRest API tests:
## PyRest API tests:
In tests directory we have two bash scripts
`run_api_tests.sh`
and
`run_api_benchmarks.sh`
.
In tests directory we have two bash scripts:
Examples of running scripts:
*
`run_api_tests.sh`
- for running api tests,
a) API tests with
`equal`
comparator (using strict equal on query result and pattern):
*
`run_api_benchmarks.sh`
- for running benchmarks
`./run_api_tests.sh https://api.hive.blog equal`
b) API tests with
`contain`
comparator (check if result contain pattern):
Examples of running tests:
`./run_api_tests.sh https://api.hive.blog contain`
a) API tests in directory
`full_sync`
with
`equal`
comparator (using strict equal on query result and pattern):
`./run_api_tests.sh https://api.hive.blog full_sync equal`
b) API tests in directory
`full_sync`
with
`contain`
comparator (check if result contain pattern):
`./run_api_tests.sh https://api.hive.blog full_sync contain`
Examples of running benchmarks:
c) Benchmarks:
`./run_api_benchmarks.sh https://api.hive.blog`
`./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