Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Separated mock for each url mapping #16

Merged
merged 9 commits into from
May 27, 2023

Conversation

evg4b
Copy link
Owner

@evg4b evg4b commented May 21, 2023

After refactoring mocks will be configured linke this:

mapping:
  - from: http://localhost
    to: http://localhost
    mocks:
      - path: /demo
        method: GET
        response:
          code: 201
          delay: 110s
          raw-content: demo

@evg4b evg4b changed the title Created draft Separated mock for each url mapping May 21, 2023
@evg4b evg4b force-pushed the separated-mock-for-each-url-mapping branch 3 times, most recently from 405c432 to 8e2b5c9 Compare May 21, 2023 15:31
@evg4b evg4b force-pushed the separated-mock-for-each-url-mapping branch from ebb76f6 to 227ee21 Compare May 27, 2023 12:45
@evg4b evg4b force-pushed the separated-mock-for-each-url-mapping branch from d19ec59 to 5a5acad Compare May 27, 2023 14:35
@sonarcloud
Copy link

sonarcloud bot commented May 27, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 15 Code Smells

91.0% 91.0% Coverage
0.0% 0.0% Duplication

@evg4b evg4b merged commit c3fcd5b into develop May 27, 2023
4 checks passed
@evg4b evg4b deleted the separated-mock-for-each-url-mapping branch May 27, 2023 14:39
@evg4b evg4b added the enhancement New feature or request label May 27, 2023
evg4b pushed a commit that referenced this pull request Jun 3, 2023
* Update dependencies

* Custom config mapping (#13)

* Created config mapping draft

* Reafactoring

* Simplify

* Use new url mapping in applocation

* Fixed method name

* Updated readme

* Reafactoring

* Move all structures to configuration

* Static file serving (#15)

* Created configuration structure

* Covered decoding by tests

* Fixed configuration decoding issues

* Created static directory mapping

* Fixed cloning issue

* Added tests for static serving

* Added static dirs pringing

* Changed handler structure

* Added static middleware draft

* Fixed index file serving

* Added base tests for static middleware

* Fixed mapping tests

* Fixed middelware tesrs

* Added tests fro normalise helper

* Added tests for uncors handler

* Added tests for index file

* Added tests for mocks

* Enabled skipped tests

* Added fir for prefix cutting

* Fixed error handling

* Added tests for mocks handler registration

* Fixed sonar issues

* Updated readme

* Update README.md

* Added new error page

* Update roadmap

* Rename configuration module to config

* Rename infrastructure module to infra

* Updated Roadmap

* Updated README.md

* Separated mock for each url mapping (#16)

* Created draft

* Fixed tests

* Reorganised structure

* Fixed lint issues

* Updated mapping formatting

* Fixed tests

* Added CloneMap helper

* Move NormaliseMappings to config package

* Added tests for config models

* Cleanup code

* Cleanup code

* Changed correct errors message ordering

* Added helpers.CloseSafe method

* Fixed mock waiting issue

* Updated packages

* Refactor debug output for logger

* Refactored code

* Added tests for sfmt package

* Added short commands

* Renamed config property raw-content to raw

* Cleared test output

* Cleanup code: WIP 1

* Cleanup code: WIP 2

* Cleanup code: WIP 3

* Cleanup code: WIP 4

* Updated README.md

* Cleanup code: WIP 4
@evg4b evg4b modified the milestone: demo Oct 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant