Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ replace (
k8s.io/client-go => k8s.io/client-go v0.19.7
k8s.io/code-generator => k8s.io/code-generator v0.19.7
k8s.io/kube-openapi => k8s.io/kube-openapi v0.0.0-20200805222855-6aeccd4b50c6
knative.dev/eventing => github.com/openshift/knative-eventing v0.99.1-0.20210406161751-80f49379d45d
knative.dev/eventing-kafka => github.com/openshift-knative/eventing-kafka v0.19.1-0.20210420075609-dbcba4bee3ce
knative.dev/eventing => github.com/openshift/knative-eventing v0.99.1-0.20210531143233-6e76ef9f2ce0
knative.dev/eventing-kafka => github.com/openshift-knative/eventing-kafka v0.21.1-0.20210526142120-91eb12066b84
knative.dev/serving => github.com/openshift/knative-serving v0.10.1-0.20210420084308-e1193e08522a
)
127 changes: 35 additions & 92 deletions go.sum

Large diffs are not rendered by default.

3 changes: 0 additions & 3 deletions test/eventing.bash
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
# For SC2164
set -e

readonly EVENTING_READY_FILE="/tmp/eventing-prober-ready"
readonly EVENTING_PROBER_FILE="/tmp/eventing-prober-signal"

function upstream_knative_eventing_e2e {
logger.info 'Running eventing tests'

Expand Down
10 changes: 4 additions & 6 deletions test/lib.bash
Original file line number Diff line number Diff line change
Expand Up @@ -198,12 +198,10 @@ function run_rolling_upgrade_tests {
channels=messaging.knative.dev/v1beta1:KafkaChannel,messaging.knative.dev/v1:InMemoryChannel

# Test configuration. See https://github.com/knative/eventing/tree/main/test/upgrade#probe-test-configuration
# TODO(ksuszyns): remove E2E_UPGRADE_TESTS_SERVING_SCALETOZERO when knative/operator#297 is fixed.
E2E_UPGRADE_TESTS_SERVING_SCALETOZERO=false \
E2E_UPGRADE_TESTS_SERVING_USE=true \
E2E_UPGRADE_TESTS_CONFIGMOUNTPOINT=/.config/wathola \
E2E_UPGRADE_TESTS_INTERVAL="50ms" \
E2E_UPGRADE_TESTS_FAILONERRORS=true \
# TODO(ksuszyns): remove EVENTING_UPGRADE_TESTS_SERVING_SCALETOZERO when knative/operator#297 is fixed.
EVENTING_UPGRADE_TESTS_SERVING_SCALETOZERO=false \
EVENTING_UPGRADE_TESTS_SERVING_USE=true \
EVENTING_UPGRADE_TESTS_CONFIGMOUNTPOINT=/.config/wathola \
GO_TEST_VERBOSITY=standard-verbose \
SYSTEM_NAMESPACE=knative-serving \
go_test_e2e -tags=upgrade -timeout=30m \
Expand Down
1 change: 0 additions & 1 deletion test/upgrade/config.toml

This file was deleted.

1 change: 1 addition & 0 deletions test/upgrade/continual/channel-config.toml
1 change: 1 addition & 0 deletions test/upgrade/continual/source-config.toml
34 changes: 25 additions & 9 deletions test/upgrade/upgrade_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import (

"github.com/openshift-knative/serverless-operator/test"
"github.com/openshift-knative/serverless-operator/test/upgrade/installation"
"knative.dev/eventing-kafka/test/upgrade/continual"

"go.uber.org/zap"
kafkaupgrade "knative.dev/eventing-kafka/test/upgrade"
Expand All @@ -32,7 +33,8 @@ import (
servingupgrade "knative.dev/serving/test/upgrade"
)

// FIXME: https://github.com/knative/eventing/issues/5176 `config.toml` in this directory is required
// FIXME: https://github.com/knative/eventing/issues/5176 `*-config.toml` in
// this directory are required, so that kafkaupgrade tests will see them.

func TestServerlessUpgrade(t *testing.T) {
ctx := test.SetupClusterAdmin(t)
Expand All @@ -42,14 +44,16 @@ func TestServerlessUpgrade(t *testing.T) {
Tests: pkgupgrade.Tests{
PreUpgrade: preUpgradeTests(),
PostUpgrade: postUpgradeTests(ctx),
Continual: []pkgupgrade.BackgroundOperation{
servingupgrade.ProbeTest(),
servingupgrade.AutoscaleSustainingWithTBCTest(),
servingupgrade.AutoscaleSustainingTest(),
eventingupgrade.ContinualTest(),
kafkaupgrade.ChannelContinualTest(),
kafkaupgrade.SourceContinualTest(),
},
Continual: merge(
[]pkgupgrade.BackgroundOperation{
servingupgrade.ProbeTest(),
servingupgrade.AutoscaleSustainingWithTBCTest(),
servingupgrade.AutoscaleSustainingTest(),
eventingupgrade.ContinualTest(),
},
kafkaupgrade.ChannelContinualTests(continual.ChannelTestOptions{}),
Comment thread
cardil marked this conversation as resolved.
kafkaupgrade.SourceContinualTests(continual.SourceTestOptions{}),
),
},
Installations: pkgupgrade.Installations{
UpgradeWith: []pkgupgrade.Operation{
Expand Down Expand Up @@ -89,6 +93,18 @@ func TestClusterUpgrade(t *testing.T) {
suite.Execute(cfg)
}

func merge(slices ...[]pkgupgrade.BackgroundOperation) []pkgupgrade.BackgroundOperation {
l := 0
for _, slice := range slices {
l += len(slice)
}
result := make([]pkgupgrade.BackgroundOperation, 0, l)
for _, slice := range slices {
result = append(result, slice...)
}
return result
}

func preUpgradeTests() []pkgupgrade.Operation {
tests := []pkgupgrade.Operation{
eventingupgrade.PreUpgradeTest(),
Expand Down
29 changes: 29 additions & 0 deletions vendor/github.com/Shopify/sarama/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

77 changes: 77 additions & 0 deletions vendor/github.com/Shopify/sarama/.golangci.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading