komock-core

Komock - mocker framework for REST

Лицензия

Лицензия

APACHE-2.0
Группа

Группа

ua.com.lavi
Идентификатор

Идентификатор

komock-core
Последняя версия

Последняя версия

1.10.0
Дата

Дата

Тип

Тип

aar
Описание

Описание

komock-core
Komock - mocker framework for REST
Ссылка на сайт

Ссылка на сайт

https://github.com/laviua/komock
Система контроля версий

Система контроля версий

https://github.com/laviua/komock

Скачать komock-core

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/ua.com.lavi/komock-core/ -->
<dependency>
    <groupId>ua.com.lavi</groupId>
    <artifactId>komock-core</artifactId>
    <version>1.10.0</version>
    <type>aar</type>
</dependency>
// https://jarcasting.com/artifacts/ua.com.lavi/komock-core/
implementation 'ua.com.lavi:komock-core:1.10.0'
// https://jarcasting.com/artifacts/ua.com.lavi/komock-core/
implementation ("ua.com.lavi:komock-core:1.10.0")
'ua.com.lavi:komock-core:aar:1.10.0'
<dependency org="ua.com.lavi" name="komock-core" rev="1.10.0">
  <artifact name="komock-core" type="aar" />
</dependency>
@Grapes(
@Grab(group='ua.com.lavi', module='komock-core', version='1.10.0')
)
libraryDependencies += "ua.com.lavi" % "komock-core" % "1.10.0"
[ua.com.lavi/komock-core "1.10.0"]

Зависимости

compile (8)

Идентификатор библиотеки Тип Версия
org.slf4j : slf4j-api jar 1.7.22
org.yaml : snakeyaml jar 1.17
com.google.code.gson : gson jar 2.8.0
com.ecwid.consul : consul-api jar 1.1.10
org.eclipse.jetty : jetty-server jar 9.4.0.v20161208
org.eclipse.jetty : jetty-servlet jar 9.4.0.v20161208
org.jetbrains.kotlin : kotlin-stdlib-jdk8 jar 1.2.51
com.mashape.unirest : unirest-java jar 1.4.9

test (3)

Идентификатор библиотеки Тип Версия
junit : junit jar 4.12
org.jetbrains.kotlin : kotlin-test-junit jar 1.2.51
ch.qos.logback : logback-classic jar 1.1.7

Модули Проекта

Данный проект не имеет модулей.

Komock Build Status GitHub license Maven Central Code Climate

Here is HTTP/Consul/SpringConfig mocker framework written in Kotlin.

This tiny framework is very useful if you need to create REST based client for API service.
We use this framework for develop microservices or API integration with third party systems.

Main features:

  • Configurable response for any kind of HTTP request/response with wildcards, cookies and custom headers.
  • SSL support
  • Virtual Host support
  • Consul discovery service support.
  • Ability to work like a simple Spring Configuration Server
  • Header based security
  • Variables in the response by request parameters
  • Callback support

Download

Binaries are available at https://github.com/laviua/komock/releases/latest

Changelog

Maven Central repository

<dependency>
    <groupId>ua.com.lavi</groupId>
    <artifactId>komock-core</artifactId>
    <version>RELEASE</version>
</dependency>

How to use

Run standalone application:

  1. Extract release version from https://github.com/laviua/komock/releases/latest :

     komock-app-x.x.x.zip
    
  2. Run

     bin\komock-app /path/your_config.yaml
    

Examples

Simple http server https://github.com/laviua/komock/wiki/Simple-http-server-(Java)

Oauth2 server https://github.com/laviua/komock/wiki/Oauth2-server

Consul service registration https://github.com/laviua/komock/wiki/Consul

Spring config server https://github.com/laviua/komock/wiki/Spring-config-server

Unit testing https://github.com/laviua/komock/wiki/Unit-Testing-with-request-capturing-(Java)

Full config Callbacks, Mask patterns, cookies, virtualhosts, etc Look at self-describable configuration file Link:

HTTPS / SSL:

You can use your personal keystore. Just create it by the following command and set filename with password in the configuration file (secure section):

keytool -genkey -alias replserver -keyalg RSA -keystore mock_keystore.jks -dname "CN=Mark Smith, OU=JavaSoft, O=Sun, L=Cupertino, S=California, C=US" -storepass mockpassword -keypass mockpassword

ssl:
  enabled: true
  keyStoreLocation: mock_keystore.jks
  keyStorePassword: mockpassword

License

Licensed under Apache 2 License

Версии библиотеки

Версия
1.10.0
1.9.0
1.8.1
1.8.0
1.7
1.6.3
1.6.2
1.6.1
1.6
1.5.8
1.5.7
1.5.6
1.5.5
1.5.4
1.5.3
1.5.2
1.5.1
1.5
1.4
1.3.1
1.3
1.2.6
1.2.5
1.2.4
1.2.3
1.2.2
1.2.1
1.2
1.1.2
1.1.1
1.1