Skip to content

Commit

Permalink
ci: skip emqx broker test case
Browse files Browse the repository at this point in the history
Signed-off-by: Rory Z <[email protected]>
  • Loading branch information
Rory-Z committed Jan 7, 2024
1 parent 9e100a3 commit a599efd
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 40 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ jobs:
- static
- helm
emqx:
- [EmqxBroker, emqx, "config/samples/emqx/v1beta3/emqxbroker-slim.yaml"]
# - [EmqxBroker, emqx, "config/samples/emqx/v1beta3/emqxbroker-slim.yaml"]
# - [EmqxBroker, emqx, "config/samples/emqx/v1beta3/emqxbroker-full.yaml"]
- [EmqxEnterprise, emqx-ee, "config/samples/emqx/v1beta3/emqxenterprise-slim.yaml"]
# - [EmqxEnterprise, emqx-ee, "config/samples/emqx/v1beta3/emqxenterprise-full.yaml"]

- [EmqxBroker, emqx, "config/samples/emqx/v1beta4/emqxbroker-slim.yaml"]
- [EmqxBroker, emqx, "config/samples/emqx/v1beta4/emqxbroker-full.yaml"]
# - [EmqxBroker, emqx, "config/samples/emqx/v1beta4/emqxbroker-slim.yaml"]
# - [EmqxBroker, emqx, "config/samples/emqx/v1beta4/emqxbroker-full.yaml"]
- [EmqxEnterprise, emqx-ee, "config/samples/emqx/v1beta4/emqxenterprise-slim.yaml"]
- [EmqxEnterprise, emqx-ee, "config/samples/emqx/v1beta4/emqxenterprise-full.yaml"]

Expand Down
74 changes: 38 additions & 36 deletions e2e/v1beta4/e2e_base_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,41 +37,42 @@ import (
"sigs.k8s.io/controller-runtime/pkg/controller/controllerutil"
)

var emqxBroker = &appsv1beta4.EmqxBroker{
TypeMeta: metav1.TypeMeta{
Kind: "EmqxBroker",
APIVersion: "apps.emqx.io/v1beta4",
},
ObjectMeta: metav1.ObjectMeta{
Name: "emqx",
Namespace: "e2e-test-v1beta4",
Labels: map[string]string{
"test": "e2e",
},
},
Spec: appsv1beta4.EmqxBrokerSpec{
Replicas: pointer.Int32Ptr(1),
Template: appsv1beta4.EmqxTemplate{
Spec: appsv1beta4.EmqxTemplateSpec{
EmqxContainer: appsv1beta4.EmqxContainer{
Image: appsv1beta4.EmqxImage{
Repository: "emqx",
Version: "4.4.15",
},
EmqxConfig: appsv1beta4.EmqxConfig{
"sysmon.long_schedule": "240h",
},
BootstrapAPIKeys: []appsv1beta4.BootstrapAPIKey{
{
Key: "test_key",
Secret: "secret",
},
},
},
},
},
},
}
// EMQX 4 open source edition is no longer supported
// var emqxBroker = &appsv1beta4.EmqxBroker{
// TypeMeta: metav1.TypeMeta{
// Kind: "EmqxBroker",
// APIVersion: "apps.emqx.io/v1beta4",
// },
// ObjectMeta: metav1.ObjectMeta{
// Name: "emqx",
// Namespace: "e2e-test-v1beta4",
// Labels: map[string]string{
// "test": "e2e",
// },
// },
// Spec: appsv1beta4.EmqxBrokerSpec{
// Replicas: pointer.Int32Ptr(1),
// Template: appsv1beta4.EmqxTemplate{
// Spec: appsv1beta4.EmqxTemplateSpec{
// EmqxContainer: appsv1beta4.EmqxContainer{
// Image: appsv1beta4.EmqxImage{
// Repository: "emqx",
// Version: "4.4.15",
// },
// EmqxConfig: appsv1beta4.EmqxConfig{
// "sysmon.long_schedule": "240h",
// },
// BootstrapAPIKeys: []appsv1beta4.BootstrapAPIKey{
// {
// Key: "test_key",
// Secret: "secret",
// },
// },
// },
// },
// },
// },
// }

var emqxEnterprise = &appsv1beta4.EmqxEnterprise{
TypeMeta: metav1.TypeMeta{
Expand Down Expand Up @@ -346,7 +347,8 @@ var _ = Describe("Base E2E Test", Label("base"), func() {
By("delete EMQX CR and EMQX Plugin")
deleteEmqx(emqx)
},
Entry(nil, emqxBroker.DeepCopy(), lwm2m.DeepCopy()),
// EMQX 4 open source edition is no longer supported
// Entry(nil, emqxBroker.DeepCopy(), lwm2m.DeepCopy()),
Entry(nil, emqxEnterprise.DeepCopy(), lwm2m.DeepCopy()),
)
})
Expand Down
3 changes: 2 additions & 1 deletion e2e/v1beta4/e2e_upgrade_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ var _ = Describe("Upgrade Test", Label("upgrade"), func() {
deleteEmqx(emqx)
})
},
Entry(nil, emqxBroker.DeepCopy()),
// EMQX 4 open source edition is no longer supported
// Entry(nil, emqxBroker.DeepCopy()),
Entry(nil, emqxEnterprise.DeepCopy()),
)
})

0 comments on commit a599efd

Please sign in to comment.