Downloads:

747

Downloads of v 1.5.1:

22

Last Update:

10/17/2019

Package Maintainer(s):

Software Author(s):

  • Guillaume Monnet

Tags:

mockoon rest api rest-api mock foss cross-platfrom

mockoon

1.5.1 | Updated: 10/17/2019

Downloads:

747

Downloads of v 1.5.1:

22

Maintainer(s):

Software Author(s):

  • Guillaume Monnet

mockoon 1.5.1

All Checks are Passing

2 Passing Test


Validation Testing Passed


Verification Testing Passed

Details

To install mockoon, run the following command from the command line or from PowerShell:

>

To upgrade mockoon, run the following command from the command line or from PowerShell:

>

To uninstall mockoon, run the following command from the command line or from PowerShell:

>

NOTE: This applies to both open source and commercial editions of Chocolatey.

1. Ensure you are set for organizational deployment

Please see the organizational deployment guide

  • Open Source or Commercial:
    • Proxy Repository - Create a proxy nuget repository on Nexus, Artifactory Pro, or a proxy Chocolatey repository on ProGet. Point your upstream to https://chocolatey.org/api/v2. Packages cache on first access automatically. Make sure your choco clients are using your proxy repository as a source and NOT the default community repository. See source command for more information.
    • You can also just download the package and push it to a repository Download

3. Enter your internal repository url

(this should look similar to https://chocolatey.org/api/v2)

4. Choose your deployment method:


choco upgrade mockoon -y --source="'STEP 3 URL'" [other options]

See options you can pass to upgrade.

See best practices for scripting.

Add this to a PowerShell script or use a Batch script with tools and in places where you are calling directly to Chocolatey. If you are integrating, keep in mind enhanced exit codes.

If you do use a PowerShell script, use the following to ensure bad exit codes are shown as failures:


choco upgrade mockoon -y --source="'STEP 3 URL'" 
$exitCode = $LASTEXITCODE

Write-Verbose "Exit code was $exitCode"
$validExitCodes = @(0, 1605, 1614, 1641, 3010)
if ($validExitCodes -contains $exitCode) {
  Exit 0
}

Exit $exitCode

- name: Ensure mockoon installed
  win_chocolatey:
    name: mockoon
    state: present
    version: 1.5.1
    source: STEP 3 URL

See docs at https://docs.ansible.com/ansible/latest/modules/win_chocolatey_module.html.

Coming early 2020! Central Managment Reporting available now! More information...


chocolatey_package 'mockoon' do
  action    :install
  version  '1.5.1'
  source   'STEP 3 URL'
end

See docs at https://docs.chef.io/resource_chocolatey_package.html.


Chocolatey::Ensure-Package
(
    Name: mockoon,
    Version: 1.5.1,
    Source: STEP 3 URL
);

Requires Otter Chocolatey Extension. See docs at https://inedo.com/den/otter/chocolatey.


cChocoPackageInstaller mockoon
{
   Name     = 'mockoon'
   Ensure   = 'Present'
   Version  = '1.5.1'
   Source   = 'STEP 3 URL'
}

Requires cChoco DSC Resource. See docs at https://github.com/chocolatey/cChoco.


package { 'mockoon':
  provider => 'chocolatey',
  ensure   => '1.5.1',
  source   => 'STEP 3 URL',
}

Requires Puppet Chocolatey Provider module. See docs at https://forge.puppet.com/puppetlabs/chocolatey.


salt '*' chocolatey.install mockoon version="1.5.1" source="STEP 3 URL"

See docs at https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.chocolatey.html.

5. If applicable - Chocolatey configuration/installation

See infrastructure management matrix for Chocolatey configuration elements and examples.

This package was approved as a trusted package on 10/17/2019.

Description

What is it?

Mockoon is an open source server/API mocking tool built with Electron and available on Windows, Linux and MacOS.

screenshot

Unlimited fast mocking

Create an unlimited number of mock local servers and routes, and run them in parallel.

Complete control

customize routes: HTTP methods, regex paths, HTTP status, file serving, custom headers...

... and more

Import / export, JSON templating, auto save, proxy mode, HTTPS, latency simulation, CORS support...

Complete list of features

  • Mock an unlimited number of environments with unlimited number of routes
  • Environment import / export (from file or clipboard)
  • Run multiple mock local servers in parallel
  • Route regex supported (/.*, /[a-z]{3}, ...)
  • Support all HTTP codes and methods
  • Automatic CORS headers for OPTIONS requests
  • HTTPS support (self signed certificate)
  • Unlimited custom headers with autocompletion
  • Environment / route level latency simulation
  • Incoming request logs
  • Proxy mode: redirect all non-defined routes to an URL
  • File serving with automatic mime type detection
  • Rich text editor for body content with JSON templating
  • JSON templating supports request parameters (URL and route params, query string...)
  • Real-time auto save
  • No account required

legal\LICENSE.txt
The MIT License (MIT)

Copyright (c) 2017-present Guillaume Monnet

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.
legal\VERIFICATION.txt
VERIFICATION

Verification is intended to assist the Chocolatey moderators and community
in verifying that this package's contents are trustworthy.

Package can be verified like this:

1. Go to

   URL: https://github.com/mockoon/mockoon/releases/download/v1.5.1/mockoon.setup.1.5.1.exe

   to download the installer.

2. You can use one of the following methods to obtain the SHA256 checksum: 8998C6E17720786E2EB465C97D1EE93B48F544F2169E5BCFF1CF02A93059EB84
   - Use powershell function 'Get-FileHash'
   - Use Chocolatey utility 'checksum.exe'

   checksum: 8998C6E17720786E2EB465C97D1EE93B48F544F2169E5BCFF1CF02A93059EB84

File 'LICENSE.txt' obtained from:
   https://github.com/255kb/mockoon/blob/master/LICENSE.md
tools\chocolateyInstall.ps1

$ErrorActionPreference = 'Stop';
$toolsDir   = "$(Split-Path -Parent $MyInvocation.MyCommand.Definition)"
$fileLocation = Get-Item "$toolsDir\mockoon*.exe"

$packageArgs = @{
  packageName   = $env:ChocolateyPackageName
  fileType      = 'EXE'
  file          = $fileLocation
  silentArgs    = "/S"
  validExitCodes= @(0)
  softwareName  = 'mockoon*'
}

Install-ChocolateyInstallPackage @packageArgs
tools\mockoon.setup.1.5.1_x32.exe
md5: 7DB60473A99736B85A3E0FBDFF695862 | sha1: 8F96A0D4461E08E1774506D769A034828CB2FE79 | sha256: 8998C6E17720786E2EB465C97D1EE93B48F544F2169E5BCFF1CF02A93059EB84 | sha512: 6BC836CE914598F504CE3E21760F4FD2ECA511C0DEB5EAA9F0BE50C7E95DA42250B21F4A2E21B689DB572F3F28F1DDF5BD0D5848BD15FE07BE9C071BB9ABB9D1

In cases where actual malware is found, the packages are subject to removal. Software sometimes has false positives. Moderators do not necessarily validate the safety of the underlying software, only that a package retrieves software from the official distribution point and/or validate embedded software against official distribution point (where distribution rights allow redistribution).

Chocolatey Pro provides runtime protection from possible malware.

Version Downloads Last Updated Status
mockoon 1.5.0 66 Tuesday, October 8, 2019 Approved
mockoon 1.4.0 310 Wednesday, May 15, 2019 Approved
mockoon 1.3.0 197 Sunday, December 16, 2018 Approved
mockoon 1.2.0 67 Sunday, October 28, 2018 Approved
mockoon 1.1.0 85 Thursday, October 4, 2018 Approved

This package has no dependencies.

Discussion for the mockoon Package

Ground Rules:

  • This discussion is only about mockoon and the mockoon package. If you have feedback for Chocolatey, please contact the Google Group.
  • This discussion will carry over multiple versions. If you have a comment about a particular version, please note that in your comments.
  • The maintainers of this Chocolatey Package will be notified about new comments that are posted to this Disqus thread, however, it is NOT a guarantee that you will get a response. If you do not hear back from the maintainers after posting a message below, please follow up by using the link on the left side of this page or follow this link to contact maintainers. If you still hear nothing back, please follow the package triage process.
  • Tell us what you love about the package or mockoon, or tell us what needs improvement.
  • Share your experiences with the package, or extra configuration or gotchas that you've found.
  • If you use a url, the comment will be flagged for moderation until you've been whitelisted. Disqus moderated comments are approved on a weekly schedule if not sooner. It could take between 1-5 days for your comment to show up.
comments powered by Disqus