Skip to content

(VEN) Return EventResponse/OadrCreatedEvent with specific responseCode #165

@alexcarnero97

Description

@alexcarnero97

Hi, I am using the OpenADR Test Tool to test my VEN and I am running some tests related to the EiEvent service. In some of them, the tool expects me to return an EventResponse/OadrCreatedEvent message with a specific error code in case of an event with a wrong ID or invalid signal type. According to this, I understand that the supposed VTN could receive an 'optIn' response to an event even though some of the above failures occur. However, I can't find how I can do this as in all the examples the event handler simply returns an 'optIn' or 'optOut' string. If, on the other hand, I throw a SignalNotSupportedError exception, for example, the handler detects the error and returns an 'optOut' directly. How could I manage to do this? Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions