Skip to content
This repository was archived by the owner on Mar 24, 2025. It is now read-only.
This repository was archived by the owner on Mar 24, 2025. It is now read-only.

Feature request: be able to specify localhost with port as endpoint using config #29

Open
@robpridham-bbc

Description

@robpridham-bbc

As a developer, I would like to be able to direct the ATI library's network requests to e.g. https://localhost:9000/endpoint so that I can write instrumented end-to-end tests that use a mock HTTP server on the device and verify that the right calls are made.

In the documentation for Configuration, it appears that we can set subdomain, domain and path in order to achieve this.

However:

  • It would be good to be able to omit subdomain, perhaps by specifiying an empty string as log or logSSL. Currently this seems to stop production of all requests, and it looks like the code in Builder will always add a period separator, so that's probably why. To send to localhost we would therefore have to use a workaround with a subdomain of 127 and a domain of 0.0.1.

  • It would be good to be able to specify a port. This is not currently a documented option in config.

Thanks!

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