Skip to content

jllopez/basic-restapi-testfwk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Basic REST API Testing Framework

Naive solution for a basic REST API testing framework. This framework was designed to interact with the Basic RestAPI App. Make sure you run the Basic RestAPI App before setting up this project.

This project is used for educational purposes. It encourages users to enhanced it and adapt it to their needs. The idea is to start with the most simple solution and build on top of it.

The framework was designed to run inside a Docker container to strip out the complexity of setting virtual environments, facilitate its distribution and avoid the infamous but it works on my machine conversation.

Prerequisites

Setup

  1. Open a terminal

  2. Change to your favorite local directory (i.e. cd /opt)

  3. Clone the repository

git clone git@github.com:jllopez/basic-restapi-testfwk.git
  1. Change to the project root directory
cd /opt/basic-restapi-testfwk
  1. Create a new file, name it secrets.ini and add the following contents
APP_URL=http://host.docker.internal:8080
ADMIN_USER=admin
ADMIN_PASSWORD=admin
  1. Start development environment
make dev

This command will remove any existing restapi_testfwk containers, build a new test/restapi_testfwk image, start a container, mount local code under /opt/restapi_testfwk and provide a /bin/bash terminal.