Skip to content

test#1

Open
joel-44 wants to merge 110 commits into
joel-44:masterfrom
jmartin82:master
Open

test#1
joel-44 wants to merge 110 commits into
joel-44:masterfrom
jmartin82:master

Conversation

@joel-44

@joel-44 joel-44 commented Aug 23, 2019

Copy link
Copy Markdown
Owner

No description provided.

joel-44 and others added 30 commits May 27, 2019 16:21
* Add support for comparing array of json objects

* Fix public function
* CC generation fixed +small code refactor

* Name refactor
* Add support for environment variables

* Added tests
Added data extraction support  for XML payloads
Signed-off-by: Marc Lopez <marc5.12@outlook.com>
* Added request-storage-capacity
Signed-off-by: Michael Irwin <mikesir87@gmail.com>
…#106)

* Added time unit on the delay field, the change is not breaking the BC

* Return error while parsing duration during unmarshalling (#108)

* return error while parsing duration during unmarshalling

* correct example to match the old delay value definition

Co-authored-by: Hilari Moragrega <hilari@hilarimoragrega.com>
* Add MVP support for callback (#110)

This commit adds support for a callback in config. This allows mocking an API which will asynchronously make another API request as part of its contract.

A callback consists of a delay, a URL, a Content-Type and a Body. After the Delay, a POST request is made to the given URL, with the Content-Type + Body. The same substitutions are supported in the callback body as a response body, so eg. request values/fake data can be part of the API call made.

Limitations for callbacks in this MVP:

- Only POST is supported
- Custom headers aren't supported (only Content-Type is)
- Custom cookies aren't supported

* Add support for callback method and headers (#110)

- Use Go http.Client instead of http.Post
- Support any method
- Support arbitrary headers, instead of just Content-Type
- Improve logging, in particular where the statusCode from the callback is 4xx or 5xx

* Extract HandleCallback and add tests (#110)

- Move the callback body eval call to the dispatcher
- Move the rest into a new handle_callback.go
- Change to return resp, err to make it easier to test
- Add handle_callback_test.go

* Add Callback to README (#110)
joschi and others added 30 commits September 5, 2024 16:53
…#185)

Use httptest.Server to provide local test server in TestHTTPContent()

https://pkg.go.dev/net/http/httptest#Server

---------

Co-authored-by: Jonathan C. Dietrich <jcdietrich@gmail.com>
Co-authored-by: Jonathan Dietrich <105676949+jdietrich-tc@users.noreply.github.com>
Co-authored-by: Jordi Martin <jordimartin@gmail.com>
Bumps [nanoid](https://github.com/ai/nanoid) from 3.3.7 to 3.3.8.
- [Release notes](https://github.com/ai/nanoid/releases)
- [Changelog](https://github.com/ai/nanoid/blob/main/CHANGELOG.md)
- [Commits](ai/nanoid@3.3.7...3.3.8)

---
updated-dependencies:
- dependency-name: nanoid
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 5.4.2 to 5.4.6.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/v5.4.6/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v5.4.6/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.22.0 to 0.31.0.
- [Commits](golang/crypto@v0.22.0...v0.31.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [esbuild](https://github.com/evanw/esbuild) to 0.25.5 and updates ancestor dependencies [esbuild](https://github.com/evanw/esbuild), [@vitejs/plugin-vue](https://github.com/vitejs/vite-plugin-vue/tree/HEAD/packages/plugin-vue) and [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite). These dependencies need to be updated together.


Updates `esbuild` from 0.21.5 to 0.25.5
- [Release notes](https://github.com/evanw/esbuild/releases)
- [Changelog](https://github.com/evanw/esbuild/blob/main/CHANGELOG-2024.md)
- [Commits](evanw/esbuild@v0.21.5...v0.25.5)

Updates `@vitejs/plugin-vue` from 5.1.2 to 5.2.4
- [Release notes](https://github.com/vitejs/vite-plugin-vue/releases)
- [Changelog](https://github.com/vitejs/vite-plugin-vue/blob/main/packages/plugin-vue/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite-plugin-vue/commits/plugin-vue@5.2.4/packages/plugin-vue)

Updates `vite` from 5.4.6 to 6.3.5
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/main/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v6.3.5/packages/vite)

---
updated-dependencies:
- dependency-name: esbuild
  dependency-version: 0.25.5
  dependency-type: indirect
- dependency-name: "@vitejs/plugin-vue"
  dependency-version: 5.2.4
  dependency-type: direct:development
- dependency-name: vite
  dependency-version: 6.3.5
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.24.0 to 0.38.0.
- [Commits](golang/net@v0.24.0...v0.38.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-version: 0.38.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Added the mapping view

* Improve UI
* Implement mock definition validation and enhance error handling

* Refactor mappingCreateHandler to validate mock definition directly

* Add request path validation to Definition struct
* Implement mock definition validation and enhance error handling

* Refactor mappingCreateHandler to validate mock definition directly

* Add request path validation to Definition struct

* Fix Validate method receiver type

Change from pointer receiver to value receiver to fix compilation error
in mapping.go where mock.Validate() is called on a value type.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: Claude <noreply@anthropic.com>
* Implement mock definition validation and enhance error handling

* Refactor mappingCreateHandler to validate mock definition directly

* Add request path validation to Definition struct

* Fix Validate method receiver type

Change from pointer receiver to value receiver to fix compilation error
in mapping.go where mock.Validate() is called on a value type.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

* Add support for password-protected TLS private keys

Resolves #116

This feature allows mmock to work with encrypted TLS private key files
by adding support for password authentication.

Features added:
- New --tls-key-password command line flag for specifying key password
- Environment variable MMOCK_TLS_KEY_PASSWORD for secure password input
- Automatic fallback to standard loading for unencrypted keys
- Support for multiple private key formats (PKCS#1, PKCS#8, EC)
- Comprehensive error handling with descriptive messages

Usage examples:
  mmock --tls-key-password mypassword
  MMOCK_TLS_KEY_PASSWORD=mypassword mmock

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: Claude <noreply@anthropic.com>
* Implement gzip compression for HTTP responses and add tests for gzip functionality

* Remove coverage testing steps from CI workflow
* Implement gzip compression for HTTP responses and add tests for gzip functionality

* Remove coverage testing steps from CI workflow

* Add environment specification for release job in workflow
* Implement gzip compression for HTTP responses and add tests for gzip functionality

* Remove coverage testing steps from CI workflow

* Add environment specification for release job in workflow

* Refactor Dockerfile to support multi-platform builds by using TARGETPLATFORM argument
* Remove redundant ARM64 Docker configuration from .goreleaser.yml

* Add Docker Buildx verification and test workflow for multi-platform images
* Remove redundant ARM64 Docker configuration from .goreleaser.yml

* Add Docker Buildx verification and test workflow for multi-platform images

* Enhance Docker and GoReleaser configurations for multi-platform support
Bumps [js-yaml](https://github.com/nodeca/js-yaml) from 4.1.0 to 4.1.1.
- [Changelog](https://github.com/nodeca/js-yaml/blob/master/CHANGELOG.md)
- [Commits](nodeca/js-yaml@4.1.0...4.1.1)

---
updated-dependencies:
- dependency-name: js-yaml
  dependency-version: 4.1.1
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [react-router](https://github.com/remix-run/react-router/tree/HEAD/packages/react-router) to 6.30.3 and updates ancestor dependency [react-router-dom](https://github.com/remix-run/react-router/tree/HEAD/packages/react-router-dom). These dependencies need to be updated together.


Updates `react-router` from 6.30.1 to 6.30.3
- [Release notes](https://github.com/remix-run/react-router/releases)
- [Changelog](https://github.com/remix-run/react-router/blob/main/CHANGELOG.md)
- [Commits](https://github.com/remix-run/react-router/commits/react-router@6.30.3/packages/react-router)

Updates `react-router-dom` from 6.30.1 to 6.30.3
- [Release notes](https://github.com/remix-run/react-router/releases)
- [Changelog](https://github.com/remix-run/react-router/blob/main/CHANGELOG.md)
- [Commits](https://github.com/remix-run/react-router/commits/react-router-dom@6.30.3/packages/react-router-dom)

---
updated-dependencies:
- dependency-name: react-router
  dependency-version: 6.30.3
  dependency-type: indirect
- dependency-name: react-router-dom
  dependency-version: 6.30.3
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.21 to 4.17.23.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](lodash/lodash@4.17.21...4.17.23)

---
updated-dependencies:
- dependency-name: lodash
  dependency-version: 4.17.23
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.