Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: added default values & missing fields to Upstream #1764

Merged
merged 62 commits into from
Apr 15, 2021
Merged
Show file tree
Hide file tree
Changes from 50 commits
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
c39993e
chore: added TLS
juzhiyuan Apr 13, 2021
6a6fa02
chore: added TLS
juzhiyuan Apr 13, 2021
9bb5146
chore: added i18n for Others
juzhiyuan Apr 13, 2021
acfa1d8
chore: update active.type
juzhiyuan Apr 13, 2021
900e6a3
chore: update active.timeout
juzhiyuan Apr 13, 2021
881f365
chore: added Concurrency
juzhiyuan Apr 13, 2021
c7eb03e
Merge branch 'master' into juzhiyuan/upstream-fields
juzhiyuan Apr 13, 2021
7a0ccd9
chore: added concurrency i18n
juzhiyuan Apr 13, 2021
fb54a38
chore: update host fields
juzhiyuan Apr 13, 2021
823c2b1
chore: update Port
juzhiyuan Apr 13, 2021
04f2f29
chore: update Port
juzhiyuan Apr 13, 2021
0c0c663
chore: added type tooltip
juzhiyuan Apr 13, 2021
8f8d109
chore: update HTTP Path
juzhiyuan Apr 13, 2021
8f5de24
chore: update Host
juzhiyuan Apr 13, 2021
309d336
chore: added verify_https_certificate
juzhiyuan Apr 13, 2021
02feece
chore: update i18n
juzhiyuan Apr 13, 2021
1f7b685
chore: added TODO
juzhiyuan Apr 13, 2021
4df5ec7
chore: update active check interval
juzhiyuan Apr 13, 2021
d544309
chore: update active check interval
juzhiyuan Apr 13, 2021
ece1c97
chore: update successes
juzhiyuan Apr 13, 2021
8ebe5b9
chore: added active http_statues
juzhiyuan Apr 13, 2021
9f0bcd0
chore: update timeouts
juzhiyuan Apr 13, 2021
be690b9
chore: update interval
juzhiyuan Apr 13, 2021
e16ac2a
chore: update HttpFailures & HttpStatues
juzhiyuan Apr 14, 2021
0efb744
chore: update TCP failures
juzhiyuan Apr 14, 2021
b5886e6
chore: update req headers
juzhiyuan Apr 14, 2021
3589ec6
chore: update ReqHeaders
juzhiyuan Apr 14, 2021
c3df0c2
chore: update components
juzhiyuan Apr 14, 2021
0878486
chore: update UpstreamForm
juzhiyuan Apr 14, 2021
0844b3a
chore: update passive
juzhiyuan Apr 14, 2021
41d9e28
chore: added License
juzhiyuan Apr 14, 2021
61a4899
chore: added new line
juzhiyuan Apr 14, 2021
7072aab
chore: update i18n
juzhiyuan Apr 14, 2021
098bb21
chore: added License
juzhiyuan Apr 14, 2021
df5bf44
style: added port width
juzhiyuan Apr 14, 2021
3b2b4aa
chore: remove upstream form
juzhiyuan Apr 14, 2021
d49319f
chore: update i18n
juzhiyuan Apr 14, 2021
681747b
chore: hidden service_name & discovery_type
juzhiyuan Apr 14, 2021
914f7e5
chore: update Nodes
juzhiyuan Apr 14, 2021
38c6421
chore: update TLS
juzhiyuan Apr 14, 2021
df33afb
chore: update Timeout
juzhiyuan Apr 14, 2021
97641d8
chore: show HttpsVerifyCert when using https type
juzhiyuan Apr 14, 2021
3372a6d
chore: update nodes
juzhiyuan Apr 14, 2021
5773954
chore: update Retries
juzhiyuan Apr 14, 2021
b412e2e
chore: update Upstream Transform
juzhiyuan Apr 14, 2021
155fb08
chore: update Route
juzhiyuan Apr 14, 2021
b51dbc7
chore: update initial values
juzhiyuan Apr 14, 2021
e4d62bb
fix: ci
juzhiyuan Apr 14, 2021
6021971
fix: ci
juzhiyuan Apr 14, 2021
47db0f7
Merge branch 'master' into juzhiyuan/upstream-fields
juzhiyuan Apr 14, 2021
9cb53d2
Update selector.json
juzhiyuan Apr 14, 2021
3a5d75a
chore: added plugin
juzhiyuan Apr 14, 2021
154eff4
Merge branch 'juzhiyuan/upstream-fields' of github.com:juzhiyuan/apis…
juzhiyuan Apr 14, 2021
202b523
fix: CI
juzhiyuan Apr 14, 2021
d38c7ca
fix: CI
juzhiyuan Apr 14, 2021
c1f8582
chore: remove extra line
juzhiyuan Apr 14, 2021
bbe67a5
chore: update typing
juzhiyuan Apr 14, 2021
c7ea9a1
Merge branch 'master' into juzhiyuan/upstream-fields
juzhiyuan Apr 14, 2021
d829414
fix: ci
juzhiyuan Apr 14, 2021
2810a54
fix: ci
LiteSun Apr 15, 2021
8644a28
Merge branch 'master' into juzhiyuan/upstream-fields
juzhiyuan Apr 15, 2021
1890dc7
chore: sync CI codes
juzhiyuan Apr 15, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 4 additions & 16 deletions web/cypress/fixtures/selector.json
Original file line number Diff line number Diff line change
@@ -1,37 +1,33 @@
{
"codeMirror": ".CodeMirror",
"username": "#username",

"languageSwitcher": ".ant-space-align-center",
"dropdown": ".rc-virtual-list",
"notification": ".ant-notification-notice-message",
"drawerBody": ".ant-drawer-wrapper-body",
"notificationCloseIcon": ".ant-notification-close-icon",
"notificationDesc": ".ant-notification-notice-description",
"errorNotification:": ".ant-notification-notice-error",

"pluginCard": ".ant-card",
"pluginCardBordered": ".ant-card-bordered",
"pageContent": ".ant-pro-page-container",

"tableBody":".ant-table-tbody",
"tableBody": ".ant-table-tbody",
"tableCell": ".ant-table-cell",
"empty": ".ant-empty-normal",
"refresh": ".anticon-reload",
"codemirror": ".CodeMirror",
"disabledSwitcher": "#disable",
"checkedSwitcher": ".ant-switch-checked",
"deleteButton": ".ant-btn-dangerous",

"name": "#name",
"nodes_0_host": "#nodes_0_host",
"nodes_0_port": "#nodes_0_port",
"nodes_0_weight": "#nodes_0_weight",
"upstream_id": "#upstream_id",
"input": ":input",
"nameSelector": "[title=Name]",
"serviceSelector": "[title=test_service]",
"nameSearch": "[title=Name]",

"description": "#desc",
"upstreamSelector": "[data-cy=upstream_selector]",
"addHost": "[data-cy=addHost]",
Expand All @@ -43,27 +39,21 @@
"ruleCard": ".ant-modal",
"operator": "#operator",
"value": "#value",

"fileSelector": "[type=file]",
"fileTypeRadio": "[type=radio]",
"fileSelectorClose": ".ant-modal-close",

"debugUri": "#debugUri",

"hosts_0": "#hosts_0",
"labels_0_labelKey": "#labels_0_labelKey",
"labels_0_labelValue": "#labels_0_labelValue",
"labelSelector": "[title=Labels]",
"labelSelect_0": ".ant-select-selection-overflow",

"pageContainer": ".ant-pro-page-container",
"notificationMessage": ".ant-notification-notice-message",
"avatar": ".ant-space-align-center",
"grafanaURL": "#grafanaURL",
"explain": ".ant-form-item-explain",

"upstreamType": ".ant-select-item-option-content",

"errorExplain": ".ant-form-item-explain",
"usernameInput": "#control-ref_username",
"passwordInput": "#control-ref_password",
Expand All @@ -76,7 +66,6 @@
"notificationClose": ".anticon-close",
"redirectURIInput": "#redirectURI",
"redirectCodeSelector": "#ret_code",

"paginationOptions": ".ant-pagination-options",
"fiftyPerPage": "[title=\"50 / page\"]",
"twentyPerPage": "[title=\"20 / page\"]",
Expand All @@ -85,7 +74,6 @@
"pageTwoActived": ".ant-pagination-item-2.ant-pagination-item-active",
"selectDropdown": ".ant-select-dropdown",
"codeMirrorMode": "[data-cy='code-mirror-mode']",
"selectJSON":".ant-select-dropdown [label=JSON]",

"selectJSON": ".ant-select-dropdown [label=JSON]",
"deleteAlert": ".ant-modal-body"
}
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

new line please.

This file was deleted.

71 changes: 0 additions & 71 deletions web/cypress/integration/plugin/create-edit-delete-plugin.spec.js

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ context('Create PluginTemplate Binding To Route', () => {
cy.get(this.domSelector.name).type(this.data.routeName);
cy.contains('Next').click();
cy.get(this.domSelector.nodes_0_host).type(this.data.ip1);
cy.get(this.domSelector.nodes_0_port).clear().type('7000');
cy.get(this.domSelector.nodes_0_weight).clear().type(1);
cy.contains('Next').click();
cy.contains('Custom').should('be.visible');
cy.get(this.domSelector.customSelector).click();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ context('Can select service_id skip upstream in route', () => {

cy.get(this.domSelector.name).type(this.data.upstreamName);
cy.get(this.domSelector.nodes_0_host).type(this.data.ip1);
cy.get(this.domSelector.nodes_0_port).clear().type('7000');
cy.get(this.domSelector.nodes_0_weight).clear().type(1);
cy.contains('Next').click();
cy.contains('Submit').click();
cy.get(this.domSelector.notification).should('contain', this.data.createUpstreamSuccess);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ context('Create and Delete Service ', () => {
cy.get(this.domSelector.description).type(this.data.description);
cy.get(this.domSelector.nodes_0_host).click();
cy.get(this.domSelector.nodes_0_host).type(this.data.ip1);
cy.get(this.domSelector.nodes_0_port).clear().type('7000');
cy.get(this.domSelector.nodes_0_weight).clear().type(1);

cy.contains('Next').click();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ context('Edit Service with Upstream', () => {
cy.contains('Create').click();
cy.get(this.domSelector.name).type(this.data.upstreamName);
cy.get(this.domSelector.nodes_0_host).type(this.data.ip1);
cy.get(this.domSelector.nodes_0_port).clear().type('7000');
cy.get(this.domSelector.nodes_0_weight).clear().type(1);
cy.contains('Next').click();
cy.contains('Submit').click();
cy.get(this.domSelector.notification).should('contain', this.data.createUpstreamSuccess);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ context('Create and Delete Upstream', () => {

cy.get(this.domSelector.nodes_0_host).type(this.data.ip1);
cy.get(this.domSelector.nodes_0_port).clear().type('7000');
cy.get(this.domSelector.nodes_0_weight).clear().type(1);
cy.contains('Next').click();
cy.contains('Submit').click();
cy.get(this.domSelector.notification).should('contain', this.data.createUpstreamSuccess);
Expand Down Expand Up @@ -78,18 +79,19 @@ context('Create and Delete Upstream', () => {
cy.get(this.domSelector.upstreamType).within(() => {
cy.contains('CHash').click();
});
cy.get('#hash_on').click();
cy.get('#hash_on').click({ force: true });
cy.get(this.domSelector.upstreamType).within(() => {
cy.contains('vars').click();
});
cy.get('#key').click();
cy.get('#key').click({ force: true });
cy.get(this.domSelector.upstreamType).within(() => {
cy.contains('remote_addr').click();
});

// add first upstream node
cy.get(this.domSelector.nodes_0_host).type(this.data.ip1);
cy.get(this.domSelector.nodes_0_port).clear().type('7000');
cy.get(this.domSelector.nodes_0_weight).clear().type(1);

// add second upstream node
cy.get('.ant-btn-dashed').click();
Expand Down
Loading