Skip to content

Opus-Software/disguise

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
e2e
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Disguise

Disguise is a project made with Angular CLI version 9 that provides a user interface for the Mountebank server, facilitating the usage and interactions with the API.

Demonstration

A demonstration of the Disguise application can be found at https://opus-software.github.io/disguise. The UI in this URL only listens to the Mountebank server hosted at http://localhost:2525. If you need to change the server location, you will have to setup the application locally.

Install and Setup

Requirements

Installation

After installing the Node.js, install the Angular-CLI using the npm package manager:

npm install -g @angular/cli

Clone the project's repository and in the cloned folder run the command to install the dependencies of the project:

npm install

Then serve the project with the Angular-CLI and it's ready to use:

ng serve

Setup

The UI will be hosted in http://localhost:4200 and the default port considered for the Mountebank server is 2525. To change the Mountebank location, modify the target property in the src/proxy.conf.json file:

{
    "/api": {
        "target": "http://localhost:2525",
        ...
    }
}

Usage

Imposters Page

This is the page where you can manage the imposters present in the Mountebank server. You can visualize the informations of all the imposters and their stubs, add new imposters and delete existing ones. You can also add new singular stubs to imposters, edit and delete existing ones.

You can export the actual state of the Mountebank server, saving all the current imposters and stubs, to a json file. It is also possible to import a configuration json file, adding the imposters and stubs defined in it to the running Mountebank server.

If an imposter has the attribute recordRequests set to true, you can visualize all their recorded requests. The requests are shown in a list with their respective informations like timestamp, headers and request body.

Logs Page

This is the page where you can visualize the logs returned by the Mountebank server. The logs are presented in a table where you can filter them by the port number, the type of the log, the imposter related to the log and the log message.

Copyright

Copyright © 2020 Opus Software

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

UI for interaction and usage of the Mountebank server.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published