Jason Army
09/21/2022, 11:30 PMpact-protobuf-plugin
and junit5:4.4.0-beta.4
library and enum field. The proto contains the following:
message AdBreakRequest {
delivery.dispatch.DeviceContext device_context = 1;
delivery.dispatch.ListenerContext listener_context = 2;
delivery.dispatch.StationContext station_context = 3;
AdBreakAdType ad_break_type = 5;
enum AdBreakAdType {
MISSING_AD_BREAK_AD_TYPE = 0;
AUDIO_AD_BREAK = 1;
VIDEO_AD_BREAK = 2;
}
When I try to use this in the request "ad_break_type", "AUDIO_AD_BREAK"
I get the following error:
Failed to set the interaction: Failed to process protobuf: Protobuf enum value .delivery.dispatch.AdBreakAdType has no value AUDIO_AD_BREAK
au.com.dius.pact.consumer.dsl.InteractionConfigurationError: Failed to set the interaction: Failed to process protobuf: Protobuf enum value .delivery.dispatch.AdBreakAdType has no value AUDIO_AD_BREAK
at app//au.com.dius.pact.consumer.dsl.PactBuilder.setupMessageContents(PactBuilder.kt:266)
at app//au.com.dius.pact.consumer.dsl.PactBuilder.with(PactBuilder.kt:190)
I've tried a bunch of combinations using matchers to no avail.