Skip to content

Support for multiple mock clients #346

Closed
@localheinz

Description

@localheinz
Q A
Bug? no
New Feature? yes
Version Specific version or SHA of a commit

Actual Behavior

Currently there is a single service with the identifier 'httplug.client.mock' available, which can be retrieved in functional tests to configure matchers for requests and responses.

This is fine when working

  • with an application where only a single client is configured
  • in a context where it doesn't matter which client is sending requests

When we are working with an application where that's not the case, that is, when working

  • with an application where multiple clients are configured
  • in a context where it it matters which client is sending requests

it seems to be quite an effort to set up mock clients in such a way that they can be retrieved in functional tests to set up expectations.

Do you have an idea for how to make that easier?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions