Hi,

Just filed JIRA https://issues.apache.org/jira/browse/BEAM-2644

Many transforms that take ValueProvider's have different codepaths for when
the provider is accessible or not. However, as far as I can tell, there is
no good way to construct a pipeline with PipelineOptions containing an
inaccessible ValueProvider, and then test how it would run as a template
invocation with an actual value supplied.

The only way I could come up with is mimicking
https://github.com/apache/beam/blob/master/sdks/java/core/src/test/java/org/apache/beam/sdk/options/ValueProviderTest.java#L202
, which is very ugly.

Am I missing something? Is there already a good way to do this?

Reply via email to