Giter Site home page Giter Site logo

spring-boot-wiremock's Introduction

Twitter Follow

Hi there ๐Ÿ‘‹

spring-boot-wiremock's People

Contributors

skuzzle avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

spring-boot-wiremock's Issues

Get rid of DirtiesContext annotation

It wasn't required when we were still initializing the stuff with the ContextInitializer. Now that we use the TestExecutionListener context caching gets us in the way, possiblx because we are manually registering the WireMockServer bean.

This could possibky be worked around by properly registering the server using @Bean in a configuration class. However, we need to find out how to pass the instance from our TestExecutionListener into the @Configuration class

Introduce ApiGuard

Let's try ApiGuard to properly distinguish between maintained,experimental and internal API

bug: fails to initialize because keystore can not be loaded from jar location

The problem is this:

        final Resource resource = resourceLoader.getResource(location);
        try {
            return resource.getFile().toString();
        } catch (final IOException e) {
            throw new IllegalArgumentException("Error resolving location for property " + key, e);
        }

getFile() will throw an exception when loading from jar

ALso hard to detect in local tests because these file are always available from filesystem in src/main/resources

Response.withBodyFile should use spring resource loading

Currently we use Wiremock's default resource locating. We should use spring resoruce loading instead because most users will be more familiar with it. Also it should be consistent with respect to keystore/truststore location resolving

Change: new attributes to configure ports

Instead of @WithWiremock(port = 0, httpsPort = 0) we should support @WithWiremock(randomHttpPort = true, randomHttpsPort=true) instead. The existing attributes should hence be renamed to fixedHttp(s)Port. Setting randomXXXPort=true must be mutual exclusive with specifying fixedXXXPort>=0

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.