How To Install python-gabbi-doc on Kali Linux

In this tutorial we learn how to install python-gabbi-doc on Kali Linux. python-gabbi-doc is declarative HTTP testing library - doc

Introduction

In this tutorial we learn how to install python-gabbi-doc on Kali Linux.

What is python-gabbi-doc

python-gabbi-doc is:

Gabbi is a tool for running HTTP tests where requests and responses are represented in a declarative form.

Gabbi works to bridge the gap between human readable YAML files that represent HTTP requests and expected responses and the obscured realm of Python-based, object-oriented unit tests in the style of the unittest module and its derivatives.

Each YAML file represents an ordered list of HTTP requests along with the expected responses. This allows a single file to represent a process in the API being tested. For example:

  • Create a resource.
  • Retrieve a resource.
  • Delete a resource.
  • Retrieve a resource again to confirm it is gone.

At the same time it is still possible to ask gabbi to run just one request. If it is in a sequence of tests, those tests prior to it in the YAML file will be run (in order). In any single process any test will only be run once. Concurrency is handled such that one file runs in one process.

These features mean that it is possible to create tests that are useful for both humans (as tools for improving and developing APIs) and automated CI systems.

This package contains the documentation.

There are three methods to install python-gabbi-doc on Kali Linux. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install python-gabbi-doc Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install python-gabbi-doc using apt-get by running the following command:

sudo apt-get -y install python-gabbi-doc

Install python-gabbi-doc Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install python-gabbi-doc using apt by running the following command:

sudo apt -y install python-gabbi-doc

Install python-gabbi-doc Using aptitude

If you want to follow this method, you might need to install aptitude on Kali Linux first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install python-gabbi-doc using aptitude by running the following command:

sudo aptitude -y install python-gabbi-doc

How To Uninstall python-gabbi-doc on Kali Linux

To uninstall only the python-gabbi-doc package we can use the following command:

sudo apt-get remove python-gabbi-doc

Uninstall python-gabbi-doc And Its Dependencies

To uninstall python-gabbi-doc and its dependencies that are no longer needed by Kali Linux, we can use the command below:

sudo apt-get -y autoremove python-gabbi-doc

Remove python-gabbi-doc Configurations and Data

To remove python-gabbi-doc configuration and data from Kali Linux we can use the following command:

sudo apt-get -y purge python-gabbi-doc

Remove python-gabbi-doc configuration, data, and all of its dependencies

We can use the following command to remove python-gabbi-doc configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge python-gabbi-doc

Dependencies

python-gabbi-doc have the following dependencies:

References

Summary

In this tutorial we learn how to install python-gabbi-doc package on Kali Linux using different package management tools: apt, apt-get and aptitude.