Skip to content

Conversation

@matthewrobertson
Copy link
Member

There are multiple legacy Pub/Sub payload schemas. For example, see:

  • legacy_pubsub-legacy-output.json
  • pubsub_text-legacy-output.json

When converting Cloud Events to legacy events there is no information
in the CE that enables us to infer which schema to use for the conversion.
Unfortunately, this tool assumes the converted output will always match
a corresponding unconverted payload, which isn't necessarily possible.

This commit adds a mechanism to override the expected output when
converting between event types and creates an override for converting
the legacy_pubsub test case.

@matthewrobertson matthewrobertson force-pushed the override-expected-pubsub-conversion branch from ed4580b to 66ac9e6 Compare April 27, 2021 18:36
Copy link
Contributor

@mtraver mtraver left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like this overall but I'm not sure about the term "converted". The conformance tests are testing event conversion, but there's this other notion of converted events now and I think those unfamiliar will be confused. I don't have an alternative suggestion yet but I'll think on it.

@matthewrobertson matthewrobertson force-pushed the override-expected-pubsub-conversion branch from 66ac9e6 to 45a28d9 Compare April 28, 2021 01:48
There are multiple legacy Pub/Sub payload schemas. For example, see:

- legacy_pubsub-legacy-output.json
- pubsub_text-legacy-output.json

When converting Cloud Events to legacy events there is no information
in the CE that enables us to infer which schema to convert to.
Unfortunately, this tool assumes the converted output will always match
a corresponding unconverted payload, which isn't necessarily possible.

This commit adds a mechanism to override the exepcted output when
converting between event types and creates an override for converting
legacy_pubsub test case
Copy link
Contributor

@mtraver mtraver left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alright looks good. I think the terminology is fine.

@matthewrobertson matthewrobertson merged commit 7ba062f into master Apr 30, 2021
@matthewrobertson matthewrobertson deleted the override-expected-pubsub-conversion branch April 30, 2021 05:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants