https://github.com/apiwatcher/apilisk
A private agent for Apiwatcher platform
https://github.com/apiwatcher/apilisk
Last synced: over 1 year ago
JSON representation
A private agent for Apiwatcher platform
- Host: GitHub
- URL: https://github.com/apiwatcher/apilisk
- Owner: apiwatcher
- License: mit
- Created: 2017-05-09T14:49:16.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2021-03-29T17:07:44.000Z (over 5 years ago)
- Last Synced: 2025-03-09T14:02:25.419Z (over 1 year ago)
- Language: Python
- Size: 21.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
Apilisk
================================
Standalone rest client for Apiwatcher platform.
It can run testcases defined in Apiwatcher locally on you machine or on
CI server.
Installation
=================================
Currently Apilisk is distributed using Pypi, more options for download
are comming soon.
Linux
********************************
The best way is to create a virtual environment and then use *pip*.
.. code-block:: shell
virtualenv env
. env/bin/activate
pip install Apilisk
You must have libcurl installed.
OS X
*********************************
On Mac we suggest to use *easy_install*, although *pip* should work as well.
.. code-block:: shell
sudo easy_install Apilisk
Run
==================================
At first you need to have a team in Apiwatcher, so sign/log in.
You need to create a project and some testcases, otherwise there is nothing to
run. :) And finally you need to have a credentials (Client ID and
Client secret). This you can find under team settings - create a new pair and
download the configuration file for Apilisk or copy paste the command with
apilisk init, which will create the file for you.
.. code-block:: python
apilisk init --client-secret SECRET --client-id ID --agent-id "My agent"
Example file:
.. code-block::
{
"host": "https://api2.apiwatcher.com",
"port": 443,
"client_id": "YOUR_CLIENT_ID",
"client_secret": "YOUR_CLIENT_SECRET",
"agent_id": "My local agent"
}
And now just run it :)
.. code-block:: shell
apilisk run -c apilisk.json -u -v 1 -d YOUR_DATASET_ID -p YOUR_PROJECT_HASH