From 864aba9d84580f9111ecc0a3c2c077acbaac7532 Mon Sep 17 00:00:00 2001 From: Martin Gencur Date: Thu, 25 Jun 2020 13:37:40 +0200 Subject: [PATCH] Fix after rebase --- test/e2e/helpers/broker_test_helper.go | 38 +++++++++++++------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/test/e2e/helpers/broker_test_helper.go b/test/e2e/helpers/broker_test_helper.go index 17eb36c4170..880ca7b9024 100644 --- a/test/e2e/helpers/broker_test_helper.go +++ b/test/e2e/helpers/broker_test_helper.go @@ -160,10 +160,10 @@ func TestBrokerWithManyTriggers(t *testing.T, brokerCreator BrokerCreator, shoul {Type: eventType2, Source: eventSource2}, }, eventFilters: []eventTestCase{ - {Type: any, Source: any, NameSuffix: lib.RandomSuffix()}, - {Type: eventType1, Source: any, NameSuffix: lib.RandomSuffix()}, - {Type: any, Source: eventSource1, NameSuffix: lib.RandomSuffix()}, - {Type: eventType1, Source: eventSource1, NameSuffix: lib.RandomSuffix()}, + {Type: any, Source: any, NameSuffix:testlib.RandomSuffix()}, + {Type: eventType1, Source: any, NameSuffix:testlib.RandomSuffix()}, + {Type: any, Source: eventSource1, NameSuffix:testlib.RandomSuffix()}, + {Type: eventType1, Source: eventSource1, NameSuffix:testlib.RandomSuffix()}, }, deprecatedTriggerFilter: true, }, { @@ -175,10 +175,10 @@ func TestBrokerWithManyTriggers(t *testing.T, brokerCreator BrokerCreator, shoul {Type: eventType2, Source: eventSource2}, }, eventFilters: []eventTestCase{ - {Type: any, Source: any, NameSuffix: lib.RandomSuffix()}, - {Type: eventType1, Source: any, NameSuffix: lib.RandomSuffix()}, - {Type: any, Source: eventSource1, NameSuffix: lib.RandomSuffix()}, - {Type: eventType1, Source: eventSource1, NameSuffix: lib.RandomSuffix()}, + {Type: any, Source: any, NameSuffix:testlib.RandomSuffix()}, + {Type: eventType1, Source: any, NameSuffix:testlib.RandomSuffix()}, + {Type: any, Source: eventSource1, NameSuffix:testlib.RandomSuffix()}, + {Type: eventType1, Source: eventSource1, NameSuffix:testlib.RandomSuffix()}, }, deprecatedTriggerFilter: false, }, { @@ -190,10 +190,10 @@ func TestBrokerWithManyTriggers(t *testing.T, brokerCreator BrokerCreator, shoul {Type: eventType2, Source: eventSource2}, }, eventFilters: []eventTestCase{ - {Type: any, Source: any, NameSuffix: lib.RandomSuffix()}, - {Type: eventType1, Source: any, NameSuffix: lib.RandomSuffix()}, - {Type: any, Source: eventSource1, NameSuffix: lib.RandomSuffix()}, - {Type: eventType1, Source: eventSource1, NameSuffix: lib.RandomSuffix()}, + {Type: any, Source: any, NameSuffix:testlib.RandomSuffix()}, + {Type: eventType1, Source: any, NameSuffix:testlib.RandomSuffix()}, + {Type: any, Source: eventSource1, NameSuffix:testlib.RandomSuffix()}, + {Type: eventType1, Source: eventSource1, NameSuffix:testlib.RandomSuffix()}, }, deprecatedTriggerFilter: false, v1beta1: true, @@ -210,13 +210,13 @@ func TestBrokerWithManyTriggers(t *testing.T, brokerCreator BrokerCreator, shoul {Type: eventType2, Source: eventSource2, Extensions: map[string]interface{}{extensionName1: extensionValue1, nonMatchingExtensionName: extensionValue2}}, }, eventFilters: []eventTestCase{ - {Type: any, Source: any, Extensions: map[string]interface{}{extensionName1: extensionValue1}, NameSuffix: lib.RandomSuffix()}, - {Type: any, Source: any, Extensions: map[string]interface{}{extensionName1: extensionValue1, extensionName2: extensionValue2}, NameSuffix: lib.RandomSuffix()}, - {Type: any, Source: any, Extensions: map[string]interface{}{extensionName2: extensionValue2}, NameSuffix: lib.RandomSuffix()}, - {Type: eventType1, Source: any, Extensions: map[string]interface{}{extensionName1: extensionValue1}, NameSuffix: lib.RandomSuffix()}, - {Type: any, Source: any, Extensions: map[string]interface{}{extensionName1: any}, NameSuffix: lib.RandomSuffix()}, - {Type: any, Source: eventSource1, Extensions: map[string]interface{}{extensionName1: extensionValue1}, NameSuffix: lib.RandomSuffix()}, - {Type: any, Source: eventSource1, Extensions: map[string]interface{}{extensionName1: extensionValue1, extensionName2: extensionValue2}, NameSuffix: lib.RandomSuffix()}, + {Type: any, Source: any, Extensions: map[string]interface{}{extensionName1: extensionValue1}, NameSuffix:testlib.RandomSuffix()}, + {Type: any, Source: any, Extensions: map[string]interface{}{extensionName1: extensionValue1, extensionName2: extensionValue2}, NameSuffix:testlib.RandomSuffix()}, + {Type: any, Source: any, Extensions: map[string]interface{}{extensionName2: extensionValue2}, NameSuffix:testlib.RandomSuffix()}, + {Type: eventType1, Source: any, Extensions: map[string]interface{}{extensionName1: extensionValue1}, NameSuffix:testlib.RandomSuffix()}, + {Type: any, Source: any, Extensions: map[string]interface{}{extensionName1: any}, NameSuffix:testlib.RandomSuffix()}, + {Type: any, Source: eventSource1, Extensions: map[string]interface{}{extensionName1: extensionValue1}, NameSuffix:testlib.RandomSuffix()}, + {Type: any, Source: eventSource1, Extensions: map[string]interface{}{extensionName1: extensionValue1, extensionName2: extensionValue2}, NameSuffix:testlib.RandomSuffix()}, }, deprecatedTriggerFilter: false, },