Skip to content

Conformance testing for channel data plane #1845

@aslom

Description

@aslom

Problem
We need conformance tests for channel data plane.

From channel specification
Extracted testable statements about HTTP transport:

  • “Every Channel must expose either an HTTP or HTTPS endpoint.
  • “The endpoint(s) MUST conform to HTTP Transport Binding for CloudEvents - Version 0.3.
  • “It MUST support both Binary Content mode and Structured Content mode.
  • “Channels MUST reject all HTTP event queueing requests with a method other than
    POST responding with HTTP status code 405 Method Not Supported
  • “The Channel MUST respond with 202 Accepted if the event queueing request is accepted by the server.
  • “If a Channel receives an event queueing request and is unable to parse a valid CloudEvent, then it MUST respond with 400 Bad Request.
  • “Channels MUST output CloudEvents. The output MUST be via a binding specified in the CloudEvents specification.
  • Every Channel MUST support sending events via Structured Content Mode HTTP Transport Binding.
  • “Channels MUST NOT alter an event that goes through them. All CloudEvent attributes, including the data attribute, MUST be received at the subscriber identical to how they were received by the Channel. The only exception is the Distributed Tracing Extension Attribute, which is expected to change as the span id will be altered at every network hop.

Persona:
Which persona is this feature for?

Exit Criteria
A measurable (binary) test that would indicate that the problem has been resolved.

System Integrator, Contributors

Time Estimate (optional):
How many developer-days do you think this may take to resolve?
2-5d

Additional context (optional)

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions