Skip to content

Commit 1759820

Browse files
committed
fix
1 parent 6289455 commit 1759820

4 files changed

Lines changed: 23 additions & 5 deletions

File tree

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

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,20 @@ jobs:
5555
chmod 700 get_helm.sh
5656
./get_helm.sh
5757
58+
- name: Login to Registry
59+
uses: docker/login-action@v3
60+
with:
61+
registry: ${{ secrets.DOCKER_REGISTRY }}
62+
username: ${{ secrets.DOCKER_USERNAME }}
63+
password: ${{ secrets.DOCKER_PASSWORD }}
64+
65+
- name: Login to Private Registry
66+
uses: docker/login-action@v3
67+
with:
68+
registry: hkccr.ccs.tencentyun.com
69+
username: ${{ secrets.PRIVATE_DOCKER_USERNAME }}
70+
password: ${{ secrets.PRIVATE_DOCKER_PASSWORD }}
71+
5872
- name: Launch Kind Cluster
5973
env:
6074
KIND_NODE_IMAGE: kindest/node:v1.18.15
@@ -98,10 +112,13 @@ jobs:
98112
node $(pwd)/adc.js -v
99113
echo "ADC_BIN=node $(pwd)/adc.js" >> $GITHUB_ENV
100114
115+
- name: Start OpenLDAP server
116+
run: make e2e-ldap
117+
101118
- name: Run E2E test suite
102119
shell: bash
103120
env:
104-
#API7_EE_LICENSE: ${{ secrets.API7_EE_LICENSE }}
121+
API7_EE_LICENSE: ${{ secrets.API7_EE_LICENSE }}
105122
PROVIDER_TYPE: api7ee
106123
TEST_LABEL: ${{ matrix.cases_subset }}
107124
INGRESS_VERSION: v1beta1

test/e2e/crds/v2/consumer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -609,7 +609,7 @@ spec:
609609
request := func(path string, username, password string) int {
610610
return s.NewAPISIXClient().GET(path).WithBasicAuth(username, password).WithHost("httpbin").Expect().Raw().StatusCode
611611
}
612-
It("ApisixRoute with ldapAuth consumer using secret", func() {
612+
FIt("ApisixRoute with ldapAuth consumer using secret", func() {
613613
secret := `
614614
apiVersion: v1
615615
kind: Secret

test/e2e/crds/v2/route.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1358,7 +1358,7 @@ spec:
13581358
})
13591359

13601360
Context("Test ApisixRoute WebSocket Support", func() {
1361-
It("basic websocket functionality", func() {
1361+
FIt("basic websocket functionality", func() {
13621362
const websocketServerResources = `
13631363
apiVersion: v1
13641364
kind: Pod

test/e2e/crds/v2/tls.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ spec:
169169
}).WithTimeout(30*time.Second).ProbeEvery(1*time.Second).ShouldNot(HaveOccurred(), "tls secret updated in dataplane")
170170
})
171171

172-
It("ApisixTls with mTLS test", func() {
172+
FIt("ApisixTls with mTLS test", func() {
173173
const host = "api6.com"
174174

175175
By("generate mTLS certificates")
@@ -328,7 +328,8 @@ spec:
328328
assert.NotNil(GinkgoT(), tls[0].Client, "client configuration should not be nil")
329329
assert.NotEmpty(GinkgoT(), tls[0].Client.CA, "client CA should not be empty")
330330
assert.Equal(GinkgoT(), caCert, tls[0].Client.CA, "client CA should match")
331-
assert.Equal(GinkgoT(), int64(10), *tls[0].Client.Depth, "client depth should be 10")
331+
// dashboard allows depth to be 1.
332+
assert.Equal(GinkgoT(), int64(1), *tls[0].Client.Depth, "client depth should be 1")
332333
assert.Contains(GinkgoT(), tls[0].Client.SkipMtlsURIRegex, skipMtlsUriRegex, "skip_mtls_uri_regex should be set")
333334
})
334335

0 commit comments

Comments
 (0)