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 @@ -41,7 +41,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.20210607061742-4ca24dc7b424
knative.dev/eventing-kafka => github.com/openshift-knative/eventing-kafka v0.19.1-0.20210608134610-b6f1e2aed71e
knative.dev/eventing => github.com/openshift/knative-eventing v0.99.1-0.20210610143215-480365c6cb7c
knative.dev/eventing-kafka => github.com/openshift-knative/eventing-kafka v0.19.1-0.20210610191316-8ce9b2e6d6c5
knative.dev/serving => github.com/openshift/knative-serving v0.10.1-0.20210526160136-40b6f2a655b1
)
37 changes: 31 additions & 6 deletions go.sum

Large diffs are not rendered by default.

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.ContinualTestOptions{}),
kafkaupgrade.SourceContinualTest(kafkaupgrade.ContinualTestOptions{}),
},
Continual: merge(
[]pkgupgrade.BackgroundOperation{
servingupgrade.ProbeTest(),
servingupgrade.AutoscaleSustainingWithTBCTest(),
servingupgrade.AutoscaleSustainingTest(),
eventingupgrade.ContinualTest(),
},
kafkaupgrade.ChannelContinualTests(continual.ChannelTestOptions{}),
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