Skip to content

Commit 2ef6c2a

Browse files
authored
ci: run e2e group by resource api group (#180)
1 parent ecc8016 commit 2ef6c2a

20 files changed

+22
-76
lines changed

.github/workflows/apisix-conformance-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ jobs:
105105
- name: Format Conformance Test Report
106106
if: ${{ github.event_name == 'pull_request' }}
107107
run: |
108-
echo '# conformance test report' > report.md
108+
echo '# conformance test report - ${{ matrix.provider_type }} mode' > report.md
109109
echo '```yaml' >> report.md
110110
cat apisix-ingress-controller-conformance-report.yaml >> report.md
111111
echo '```' >> report.md

.github/workflows/apisix-e2e-test.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ jobs:
4040
provider_type:
4141
- apisix-standalone
4242
- apisix
43+
cases_subset:
44+
- apisix.apache.org
45+
- networking.k8s.io
4346
fail-fast: false
4447
runs-on: buildjet-2vcpu-ubuntu-2204
4548
steps:
@@ -90,5 +93,6 @@ jobs:
9093
env:
9194
TEST_DIR: "./test/e2e/apisix/"
9295
PROVIDER_TYPE: ${{ matrix.provider_type }}
96+
TEST_LABEL: ${{ matrix.cases_subset }}
9397
run: |
9498
make e2e-test

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ kind-e2e-test: kind-up build-image kind-load-images e2e-test
111111
.PHONY: e2e-test
112112
e2e-test:
113113
@kind get kubeconfig --name $(KIND_NAME) > $$KUBECONFIG
114-
DASHBOARD_VERSION=$(DASHBOARD_VERSION) go test $(TEST_DIR) -test.timeout=$(TEST_TIMEOUT) -v -ginkgo.v -ginkgo.focus="$(TEST_FOCUS)"
114+
DASHBOARD_VERSION=$(DASHBOARD_VERSION) go test $(TEST_DIR) -test.timeout=$(TEST_TIMEOUT) -v -ginkgo.v -ginkgo.focus="$(TEST_FOCUS)" -ginkgo.label-filter="$(TEST_LABEL)"
115115

116116
.PHONY: download-api7ee3-chart
117117
download-api7ee3-chart:

config/rbac/gatewayproxy_editor_role.yaml

Lines changed: 0 additions & 31 deletions
This file was deleted.

config/rbac/gatewayproxy_viewer_role.yaml

Lines changed: 0 additions & 27 deletions
This file was deleted.

test/e2e/api7/gatewayproxy.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import (
2323
"github.com/apache/apisix-ingress-controller/test/e2e/scaffold"
2424
)
2525

26-
var _ = Describe("Test GatewayProxy", func() {
26+
var _ = Describe("Test GatewayProxy", Label("apisix.apache.org", "v1alpha1", "gatewayproxy"), func() {
2727
s := scaffold.NewDefaultScaffold()
2828

2929
var defaultGatewayClass = `

test/e2e/apisix/basic.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import (
1919
"github.com/apache/apisix-ingress-controller/test/e2e/scaffold"
2020
)
2121

22-
var _ = Describe("APISIX Standalone Basic Tests", func() {
22+
var _ = Describe("APISIX Standalone Basic Tests", Label("apisix.apache.org", "v2", "basic"), func() {
2323
s := scaffold.NewScaffold(&scaffold.Options{
2424
ControllerName: "apisix.apache.org/apisix-ingress-controller",
2525
})

test/e2e/apisix/consumer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import (
2828

2929
type Headers map[string]string
3030

31-
var _ = Describe("Test ApisixConsumer", func() {
31+
var _ = Describe("Test ApisixConsumer", Label("apisix.apache.org", "v2", "apisixconsumer"), func() {
3232
var (
3333
s = scaffold.NewScaffold(&scaffold.Options{
3434
ControllerName: "apisix.apache.org/apisix-ingress-controller",

test/e2e/apisix/globalrule.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ spec:
5656
scope: "Namespace"
5757
`
5858

59-
var _ = Describe("Test GlobalRule", func() {
59+
var _ = Describe("Test GlobalRule", Label("apisix.apache.org", "v2", "apisixglobalrule"), func() {
6060
s := scaffold.NewScaffold(&scaffold.Options{
6161
ControllerName: "apisix.apache.org/apisix-ingress-controller",
6262
})

test/e2e/apisix/pluginconfig.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ spec:
5959
scope: "Namespace"
6060
`
6161

62-
var _ = Describe("Test ApisixPluginConfig", func() {
62+
var _ = Describe("Test ApisixPluginConfig", Label("apisix.apache.org", "v2", "apisixpluginconfig"), func() {
6363
var (
6464
s = scaffold.NewScaffold(&scaffold.Options{
6565
ControllerName: "apisix.apache.org/apisix-ingress-controller",

0 commit comments

Comments
 (0)