Skip to content

Commit 1a0b12b

Browse files
authored
feat: upstream support FQDN (#2118)
1 parent 00d80bb commit 1a0b12b

29 files changed

+132
-106
lines changed

web/cypress/fixtures/selector.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818
"checkedSwitcher": ".ant-switch-checked",
1919
"deleteButton": ".ant-btn-dangerous",
2020
"name": "#name",
21-
"nodes_0_host": "#nodes_0_host",
22-
"nodes_0_port": "#nodes_0_port",
23-
"nodes_0_weight": "#nodes_0_weight",
21+
"nodes_0_host": "#submitNodes_0_host",
22+
"nodes_0_port": "#submitNodes_0_port",
23+
"nodes_0_weight": "#submitNodes_0_weight",
2424
"upstream_id": "#upstream_id",
2525
"input": ":input",
2626
"nameSelector": "[title=Name]",

web/cypress/integration/plugin/create-route-with-plugin-orchestration.spec.js

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ context('Create and delete route with plugin orchestration', () => {
2121
empty: '.ant-empty-normal',
2222
name: '#name',
2323
description: '#desc',
24-
nodes_0_host: '#nodes_0_host',
25-
nodes_0_port: '#nodes_0_port',
26-
nodes_0_weight: '#nodes_0_weight',
24+
nodes_0_host: '#submitNodes_0_host',
25+
nodes_0_port: '#submitNodes_0_port',
26+
nodes_0_weight: '#submitNodes_0_weight',
2727
groupButton: '.ant-radio-group',
2828
canvas: '.x6-graph-svg',
2929
startNode:
@@ -78,9 +78,6 @@ context('Create and delete route with plugin orchestration', () => {
7878
cy.get(selector.canvasNode)
7979
.click()
8080
.then(() => {
81-
const node2 = cy
82-
.get('#container > svg > g > g.x6-graph-svg-stage > g:nth-child(2) > g > circle')
83-
.eq(0);
8481
const node1 = cy
8582
.get('#container > svg > g > g.x6-graph-svg-stage > g:nth-child(1) > g > circle')
8683
.eq(0);

web/cypress/integration/pluginTemplate/create-plugin-template-with-route.spec.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ context('Create PluginTemplate Binding To Route', () => {
2424
refresh: '.anticon-reload',
2525
descriptionSelector: '[title=Description]',
2626
name: '#name',
27-
nodes_0_host: '#nodes_0_host',
28-
nodes_0_port: '#nodes_0_port',
29-
nodes_0_weight: '#nodes_0_weight',
27+
nodes_0_host: '#submitNodes_0_host',
28+
nodes_0_port: '#submitNodes_0_port',
29+
nodes_0_weight: '#submitNodes_0_weight',
3030
customSelector: '[title=Custom]',
3131
notificationClose: '.anticon-close',
3232
nameSelector: '[title=Name]',

web/cypress/integration/route/can-skip-upstream-when-select-service-id.spec.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
context('Can select service_id skip upstream in route', () => {
2020
const selector = {
2121
name: '#name',
22-
nodes_0_host: '#nodes_0_host',
23-
nodes_0_port: '#nodes_0_port',
24-
nodes_0_weight: '#nodes_0_weight',
22+
nodes_0_host: '#submitNodes_0_host',
23+
nodes_0_port: '#submitNodes_0_port',
24+
nodes_0_weight: '#submitNodes_0_weight',
2525
notification: '.ant-notification-notice-message',
2626
upstreamSelector: '[data-cy=upstream_selector]',
2727
input: ':input',

web/cypress/integration/route/create-edit-duplicate-delete-route.spec.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ context('Create and Delete Route', () => {
3535
ruleCard: '.ant-modal',
3636
operator: '#operator',
3737
value: '#value',
38-
nodes_0_host: '#nodes_0_host',
39-
nodes_0_port: '#nodes_0_port',
40-
nodes_0_weight: '#nodes_0_weight',
38+
nodes_0_host: '#submitNodes_0_host',
39+
nodes_0_port: '#submitNodes_0_port',
40+
nodes_0_weight: '#submitNodes_0_weight',
4141
pluginCardBordered: '.ant-card-bordered',
4242
disabledSwitcher: '#disable',
4343
checkedSwitcher: '.ant-switch-checked',

web/cypress/integration/route/create-route-both-use-uri-uris.spec.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ context('Create Route Both use uri and uris', () => {
2727
uris_1: '#uris_1',
2828
remote_addrs_0: '#remote_addrs_0',
2929
remote_addrs_1: '#remote_addrs_1',
30-
nodes_0_host: '#nodes_0_host',
31-
nodes_0_port: '#nodes_0_port',
32-
nodes_0_weight: '#nodes_0_weight',
30+
nodes_0_host: '#submitNodes_0_host',
31+
nodes_0_port: '#submitNodes_0_port',
32+
nodes_0_weight: '#submitNodes_0_weight',
3333
nameSelector: '[title=Name]',
3434
drawer: '.ant-drawer-content',
3535
monacoScroll: '.monaco-scrollable-element',

web/cypress/integration/route/create-route-when-not-select-upsteam-id.spec.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
context('Create Route without Upstream', () => {
2020
const selector = {
2121
name: '#name',
22-
nodes_0_host: '#nodes_0_host',
23-
nodes_0_port: '#nodes_0_port',
24-
nodes_0_weight: '#nodes_0_weight',
22+
nodes_0_host: '#submitNodes_0_host',
23+
nodes_0_port: '#submitNodes_0_port',
24+
nodes_0_weight: '#submitNodes_0_weight',
2525
input: ':input',
2626
nameSelector: '[title=Name]',
2727
deleteAlert: '.ant-modal-body',

web/cypress/integration/route/create-route-with-advanced-matching-conditions.spec.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
context('Create Route with advanced matching conditions', () => {
2020
const selector = {
2121
name: '#name',
22-
nodes_0_host: '#nodes_0_host',
23-
nodes_0_port: '#nodes_0_port',
24-
nodes_0_weight: '#nodes_0_weight',
22+
nodes_0_host: '#submitNodes_0_host',
23+
nodes_0_port: '#submitNodes_0_port',
24+
nodes_0_weight: '#submitNodes_0_weight',
2525
deleteAlert: '.ant-modal-body',
2626
notificationCloseIcon: '.ant-notification-close-icon',
2727
notification: '.ant-notification-notice-message',

web/cypress/integration/route/create-route-with-api-breaker-form.spec.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ context('Create and delete route with api-breaker form', () => {
2525
disabledSwitcher: '#disable',
2626
checkedSwitcher: '.ant-switch-checked',
2727
drawer: '.ant-drawer-content',
28-
nodes_0_host: '#nodes_0_host',
29-
nodes_0_port: '#nodes_0_port',
30-
nodes_0_weight: '#nodes_0_weight',
28+
nodes_0_host: '#submitNodes_0_host',
29+
nodes_0_port: '#submitNodes_0_port',
30+
nodes_0_weight: '#submitNodes_0_weight',
3131
break_response_code: '#break_response_code',
3232
alert: '.ant-form-item-explain-error [role=alert]',
3333
deleteAlert: '.ant-modal-body',

web/cypress/integration/route/create-route-with-chash-upstream.spec.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ context('Create and Edit Route With Custom CHash Key Upstream', () => {
2525
defaultCHashKey: '[value="remote_addr"]',
2626
upstreamType: '.ant-select-item-option-content',
2727
hashPosition: '.ant-select-item-option-content',
28-
nodes_0_host: '#nodes_0_host',
29-
nodes_0_port: '#nodes_0_port',
30-
nodes_0_weight: '#nodes_0_weight',
28+
nodes_0_host: '#submitNodes_0_host',
29+
nodes_0_port: '#submitNodes_0_port',
30+
nodes_0_weight: '#submitNodes_0_weight',
3131
nameSelector: '[title=Name]',
3232
chash_key: '#key',
3333
deleteAlert: '.ant-modal-body',

0 commit comments

Comments
 (0)