Skip to content

Add Gateway test for each currently supported Gateway API version #2479

Description

@richturner
No description provided.

Activity

  1. MartinaeyNL commented on Feb 12, 2026

    @MartinaeyNL
    Member

    This needs a bit more context on;

    • What the "currently supported Gateway API versions" are? (and how to configure them like that)
    • How to setup the environment for testing these gateways?
    • Is testing using any type of gateway OK, or should we try these tests with for example network throttling as well?

    and the other acceptance criteria that belong to this issue.

  2. richturner commented on Feb 16, 2026

    @richturner
    MemberAuthor

    So this issue covers getting the existing tests to work again provided they still make sense, but also to adapt to cover each version of the gateway API that the manager should still support so we can have confidence that any changes maintain this compatibility.

    There is already test code that simulates a gateway by sending/receiving the individual events to complete initialisation of the gateway see GatewayTest::Gateway asset provisioning and local manager logic test.

    The Gateway API versions are explained in the javadoc here

    The idea is to then use JSON strings to represent event classes for old gateway API versions and to simulate the initialisation process for those old event classes. Easiest way to create those JSON strings would be to checkout code at a commit that uses that API version and to then see the payload that gets sent copy these into string variables in the test, repeat this for each API version including the current one.

    Each API version should be in its' own test.

  3. richturner commented on Feb 16, 2026

    @richturner
    MemberAuthor

    Happy to discuss on a call for further clarification and pointers

  4. MartinaeyNL commented on Feb 17, 2026

    @MartinaeyNL
    Member

    I've taken a quick look at the code, hoping that I could easily pick this issue up myself.
    But for me it would be quite a lot of hassle to get it all set up, and to write tests without proper knowledge of the gateway spec.
    I wouldn't like to spend a full week of my time iterating on this, knowing that others like @pankalog would be more suitable.

    Unassigning myself from this issue.
    (I'll unassign Rich as well as he clarified the issue above)

  5. changed the title [-]Reinstate GatewayTests with a test for each currently supported Gateway API version[/-] [+]Add Gateway test for each currently supported Gateway API version[/+] on Mar 17, 2026
  6. removed their assignment
    on Mar 17, 2026
  7. richturner commented on Mar 17, 2026

    @richturner
    MemberAuthor

    I have now reinstated the gateway tests and updated this issue accordingly

  8. added
    GatewaysTopic Gateways: all features related to gateway features
    on Aug 26, 2026
  9. richturner commented on Sep 4, 2026

    @richturner
    MemberAuthor

    @wborn I've updated my comment above

  10. linked a pull request that will close this issueAdd gateway API compatibility tests #3281on Sep 7, 2026
  11. self-assigned this
    on Sep 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

EnhancementImprovement of an existing featureGatewaysTopic Gateways: all features related to gateway features

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions