From 8643565b309e08622dd588560c9011df8a58b0df Mon Sep 17 00:00:00 2001
From: Kenia <19161242+kaxcode@users.noreply.github.com>
Date: Wed, 22 Apr 2020 10:40:59 -0400
Subject: [PATCH] ui: Instance detail redesign (#7683)
* Remove Proxy link and add ExternalSource to instance detail page header
* Create HealthChecks tab with route and styling
* Fix up tests to fit redesign of Service Instances Detail page
---
.../app/components/healthcheck-list/index.hbs | 4 +-
ui-v2/app/router.js | 7 +-
.../{nodechecks.js => healthchecks.js} | 0
.../app/routes/dc/services/instance/index.js | 2 +-
.../dc/services/instance/servicechecks.js | 14 --
ui-v2/app/styles/app.scss | 1 -
.../styles/base/components/tabs/layout.scss | 6 +
.../styles/components/app-view/layout.scss | 3 +
ui-v2/app/styles/routes/dc/service/index.scss | 9 -
ui-v2/app/templates/dc/services/instance.hbs | 29 +--
.../dc/services/instance/healthchecks.hbs | 24 +++
.../dc/services/instance/nodechecks.hbs | 12 --
.../dc/services/instance/servicechecks.hbs | 11 --
.../dc/services/instances/gateway.feature | 4 +-
.../dc/services/instances/proxy.feature | 176 ------------------
.../dc/services/instances/show.feature | 77 +-------
.../services/instances/sidecar-proxy.feature | 30 ---
.../dc/services/instances/with-proxy.feature | 21 ---
.../services/instances/with-sidecar.feature | 42 -----
ui-v2/tests/pages/dc/services/instance.js | 15 +-
20 files changed, 56 insertions(+), 431 deletions(-)
rename ui-v2/app/routes/dc/services/instance/{nodechecks.js => healthchecks.js} (100%)
delete mode 100644 ui-v2/app/routes/dc/services/instance/servicechecks.js
delete mode 100644 ui-v2/app/styles/routes/dc/service/index.scss
create mode 100644 ui-v2/app/templates/dc/services/instance/healthchecks.hbs
delete mode 100644 ui-v2/app/templates/dc/services/instance/nodechecks.hbs
delete mode 100644 ui-v2/app/templates/dc/services/instance/servicechecks.hbs
delete mode 100644 ui-v2/tests/acceptance/dc/services/instances/proxy.feature
delete mode 100644 ui-v2/tests/acceptance/dc/services/instances/sidecar-proxy.feature
delete mode 100644 ui-v2/tests/acceptance/dc/services/instances/with-proxy.feature
delete mode 100644 ui-v2/tests/acceptance/dc/services/instances/with-sidecar.feature
diff --git a/ui-v2/app/components/healthcheck-list/index.hbs b/ui-v2/app/components/healthcheck-list/index.hbs
index c91a0488e0..17abb62e84 100644
--- a/ui-v2/app/components/healthcheck-list/index.hbs
+++ b/ui-v2/app/components/healthcheck-list/index.hbs
@@ -1,7 +1,7 @@
-
+
{{#each (sort-by (action 'sortChecksByImportance') items) as |item| }}
{{! TODO: this component and its child should be moved to a single component }}
-
+
{{item.Name}}
diff --git a/ui-v2/app/router.js b/ui-v2/app/router.js
index caee36d51d..38e3101cca 100644
--- a/ui-v2/app/router.js
+++ b/ui-v2/app/router.js
@@ -28,11 +28,8 @@ export const routes = {
},
instance: {
_options: { path: '/:name/instances/:node/:id' },
- servicechecks: {
- _options: { path: '/service-checks' },
- },
- nodechecks: {
- _options: { path: '/node-checks' },
+ healthchecks: {
+ _options: { path: '/health-checks' },
},
upstreams: {
_options: { path: '/upstreams' },
diff --git a/ui-v2/app/routes/dc/services/instance/nodechecks.js b/ui-v2/app/routes/dc/services/instance/healthchecks.js
similarity index 100%
rename from ui-v2/app/routes/dc/services/instance/nodechecks.js
rename to ui-v2/app/routes/dc/services/instance/healthchecks.js
diff --git a/ui-v2/app/routes/dc/services/instance/index.js b/ui-v2/app/routes/dc/services/instance/index.js
index f289ee0e85..e552f0338a 100644
--- a/ui-v2/app/routes/dc/services/instance/index.js
+++ b/ui-v2/app/routes/dc/services/instance/index.js
@@ -2,5 +2,5 @@ import Route from '@ember/routing/route';
import to from 'consul-ui/utils/routing/redirect-to';
export default Route.extend({
- redirect: to('servicechecks'),
+ redirect: to('healthchecks'),
});
diff --git a/ui-v2/app/routes/dc/services/instance/servicechecks.js b/ui-v2/app/routes/dc/services/instance/servicechecks.js
deleted file mode 100644
index 9793d62c02..0000000000
--- a/ui-v2/app/routes/dc/services/instance/servicechecks.js
+++ /dev/null
@@ -1,14 +0,0 @@
-import Route from '@ember/routing/route';
-
-export default Route.extend({
- model: function() {
- const parent = this.routeName
- .split('.')
- .slice(0, -1)
- .join('.');
- return this.modelFor(parent);
- },
- setupController: function(controller, model) {
- controller.setProperties(model);
- },
-});
diff --git a/ui-v2/app/styles/app.scss b/ui-v2/app/styles/app.scss
index 4361e8e8f0..e9d733c4e3 100644
--- a/ui-v2/app/styles/app.scss
+++ b/ui-v2/app/styles/app.scss
@@ -13,7 +13,6 @@
@import 'core/layout';
@import 'routes/dc/settings/index';
-@import 'routes/dc/service/index';
@import 'routes/dc/nodes/index';
@import 'routes/dc/intention/index';
@import 'routes/dc/kv/index';
diff --git a/ui-v2/app/styles/base/components/tabs/layout.scss b/ui-v2/app/styles/base/components/tabs/layout.scss
index 36df93be92..ea6bf3180c 100644
--- a/ui-v2/app/styles/base/components/tabs/layout.scss
+++ b/ui-v2/app/styles/base/components/tabs/layout.scss
@@ -16,3 +16,9 @@
padding-top: 13px;
padding-bottom: 13px;
}
+%tab-section section h3 {
+ margin: 24px 0;
+}
+%tab-section section:not(:last-child) {
+ border-bottom: 1px solid $gray-200;
+}
diff --git a/ui-v2/app/styles/components/app-view/layout.scss b/ui-v2/app/styles/components/app-view/layout.scss
index 433a7df7e6..d2ee8cf442 100644
--- a/ui-v2/app/styles/components/app-view/layout.scss
+++ b/ui-v2/app/styles/components/app-view/layout.scss
@@ -20,6 +20,9 @@
%app-view-header dt {
font-weight: bold;
}
+%app-view-header dd > a {
+ color: $black;
+}
%app-view-header .title-bar {
display: flex;
align-items: center;
diff --git a/ui-v2/app/styles/routes/dc/service/index.scss b/ui-v2/app/styles/routes/dc/service/index.scss
deleted file mode 100644
index 6e8e878690..0000000000
--- a/ui-v2/app/styles/routes/dc/service/index.scss
+++ /dev/null
@@ -1,9 +0,0 @@
-/* TODO: need to standardize on the selectors used here */
-/* I would guess at the time of writing this we shojuld prefer */
-/* classes */
-html.template-instance.template-show #addresses table tr,
-html.template-instance.template-show #upstreams table tr,
-html.template-instance.template-show #meta-data table tr,
-html.template-instance.template-show table.exposedpaths tr {
- cursor: default;
-}
diff --git a/ui-v2/app/templates/dc/services/instance.hbs b/ui-v2/app/templates/dc/services/instance.hbs
index 971564ecce..f2b03daacd 100644
--- a/ui-v2/app/templates/dc/services/instance.hbs
+++ b/ui-v2/app/templates/dc/services/instance.hbs
@@ -11,19 +11,12 @@
-
- {{ item.ID }}
-{{#let (service/external-source item) as |externalSource| }}
- {{#if externalSource }}
- Registered via {{externalSource}}
- {{/if}}
-{{/let}}
-{{#if (eq item.Kind 'connect-proxy')}}
- Proxy
-{{else if (eq item.Kind 'mesh-gateway')}}
- Mesh Gateway
-{{/if}}
-
+
+
+ {{ item.ID }}
+
+
+
- Service Name
- {{item.Service}}
@@ -34,13 +27,6 @@
{{#if proxy.ServiceName}}
-{{#if proxy.ServiceProxy.DestinationServiceID}}
- - Sidecar Proxy
- - {{proxy.ServiceID}}
-{{else}}
- - Proxy
- - {{proxy.ServiceName}}
-{{/if}}
{{/if}}
{{#if (eq item.Kind 'connect-proxy')}}
@@ -65,8 +51,7 @@
+
+ {{#if (gt item.ServiceChecks.length 0) }}
+
+ {{else}}
+
+ This instance has no service health checks.
+
+ {{/if}}
+ {{#if (gt item.NodeChecks.length 0) }}
+
+ {{else}}
+
+ This instance has no node health checks.
+
+ {{/if}}
+
+
diff --git a/ui-v2/app/templates/dc/services/instance/nodechecks.hbs b/ui-v2/app/templates/dc/services/instance/nodechecks.hbs
deleted file mode 100644
index b4118f97a6..0000000000
--- a/ui-v2/app/templates/dc/services/instance/nodechecks.hbs
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
- {{#if (gt item.NodeChecks.length 0) }}
-
- {{else}}
-
- This instance has no node health checks.
-
- {{/if}}
-
-
-
diff --git a/ui-v2/app/templates/dc/services/instance/servicechecks.hbs b/ui-v2/app/templates/dc/services/instance/servicechecks.hbs
deleted file mode 100644
index be9fbe4eb9..0000000000
--- a/ui-v2/app/templates/dc/services/instance/servicechecks.hbs
+++ /dev/null
@@ -1,11 +0,0 @@
-
-
- {{#if (gt item.ServiceChecks.length 0) }}
-
- {{else}}
-
- This instance has no service health checks.
-
- {{/if}}
-
-
diff --git a/ui-v2/tests/acceptance/dc/services/instances/gateway.feature b/ui-v2/tests/acceptance/dc/services/instances/gateway.feature
index 51d0a66c1e..895d6ea381 100644
--- a/ui-v2/tests/acceptance/dc/services/instances/gateway.feature
+++ b/ui-v2/tests/acceptance/dc/services/instances/gateway.feature
@@ -23,9 +23,9 @@ Feature: dc / services / instances / gateway: Show Gateway Service Instance
node: node-0
id: gateway-with-id
---
- Then the url should be /dc1/services/gateway/instances/node-0/gateway-with-id/service-checks
+ Then the url should be /dc1/services/gateway/instances/node-0/gateway-with-id/health-checks
- And I see serviceChecksIsSelected on the tabs
+ And I see healthChecksIsSelected on the tabs
When I click addresses on the tabs
And I see addressesIsSelected on the tabs
diff --git a/ui-v2/tests/acceptance/dc/services/instances/proxy.feature b/ui-v2/tests/acceptance/dc/services/instances/proxy.feature
deleted file mode 100644
index d82211f3bb..0000000000
--- a/ui-v2/tests/acceptance/dc/services/instances/proxy.feature
+++ /dev/null
@@ -1,176 +0,0 @@
-@setupApplicationTest
-Feature: dc / services / instances / proxy: Show Proxy Service Instance
- @onlyNamespaceable
- Scenario: A Proxy Service instance with a namespace
- Given 1 datacenter model with the value "dc1"
- And 1 instance model from yaml
- ---
- - Service:
- Kind: connect-proxy
- Name: service-0-proxy
- ID: service-0-proxy-with-id
- Proxy:
- DestinationServiceName: service-0
- Expose:
- Checks: false
- Paths: []
- Upstreams:
- - DestinationType: service
- DestinationName: service-1
- DestinationNamespace: default
- LocalBindAddress: 127.0.0.1
- LocalBindPort: 1111
- - DestinationType: prepared_query
- DestinationName: service-group
- LocalBindAddress: 127.0.0.1
- LocalBindPort: 1112
- ---
- When I visit the instance page for yaml
- ---
- dc: dc1
- service: service-0-proxy
- node: node-0
- id: service-0-proxy-with-id
- ---
-
- When I click upstreams on the tabs
- And I see upstreamsIsSelected on the tabs
- And I see 2 of the upstreams object
- And I see name on the upstreams like yaml
- ---
- - service-1 default
- - service-group
- ---
- @notNamespaceable
- Scenario: A Proxy Service instance with no exposed checks
- Given 1 datacenter model with the value "dc1"
- And 1 instance model from yaml
- ---
- - Service:
- Kind: connect-proxy
- Name: service-0-proxy
- ID: service-0-proxy-with-id
- Proxy:
- DestinationServiceName: service-0
- Expose:
- Checks: false
- Paths: []
- Upstreams:
- - DestinationType: service
- DestinationName: service-1
- DestinationNamespace: default
- LocalBindAddress: 127.0.0.1
- LocalBindPort: 1111
- - DestinationType: prepared_query
- DestinationName: service-group
- LocalBindAddress: 127.0.0.1
- LocalBindPort: 1112
- ---
- When I visit the instance page for yaml
- ---
- dc: dc1
- service: service-0-proxy
- node: node-0
- id: service-0-proxy-with-id
- ---
- Then the url should be /dc1/services/service-0-proxy/instances/node-0/service-0-proxy-with-id/service-checks
- And I see destination on the proxy like "service"
-
- And I see serviceChecksIsSelected on the tabs
-
- When I click serviceChecks on the tabs
- And I don't see exposed on the serviceChecks
-
- When I click upstreams on the tabs
- And I see upstreamsIsSelected on the tabs
- And I see 2 of the upstreams object
- And I see name on the upstreams like yaml
- ---
- - service-1
- - service-group
- ---
- And I see type on the upstreams like yaml
- ---
- - service
- - prepared_query
- ---
- And I don't see exposedPaths on the tabs
-
- Scenario: A Proxy Service instance with no automatically exposed checks but with paths
- Given 1 datacenter model with the value "dc1"
- And 1 instance model from yaml
- ---
- - Service:
- Kind: connect-proxy
- Name: service-0-proxy
- ID: service-0-proxy-with-id
- Address: 10.0.0.1
- Proxy:
- DestinationServiceName: service-0
- Expose:
- Paths:
- - Path: /grpc-metrics
- Protocol: grpc
- LocalPathPort: 8081
- ListenerPort: 8080
- - Path: /http-metrics
- Protocol: http
- LocalPathPort: 8082
- ListenerPort: 8083
- ---
- When I visit the instance page for yaml
- ---
- dc: dc1
- service: service-0-proxy
- node: node-0
- id: service-0-proxy-with-id
- ---
- Then the url should be /dc1/services/service-0-proxy/instances/node-0/service-0-proxy-with-id/service-checks
- And I see serviceChecksIsSelected on the tabs
-
- When I click serviceChecks on the tabs
- And I don't see exposed on the serviceChecks
-
- When I click exposedPaths on the tabs
- And I see exposedPaths on the tabs
- And I see 2 of the exposedPaths object
- And I see combinedAddress on the exposedPaths like yaml
- ---
- - 10.0.0.1:8080/grpc-metrics
- - 10.0.0.1:8083/http-metrics
- ---
- Scenario: A Proxy Service instance with only automatically exposed checks but no paths
- Given 1 datacenter model with the value "dc1"
- And 1 instance model from yaml
- ---
- - Service:
- Kind: connect-proxy
- Name: service-0-proxy
- ID: service-0-proxy-with-id
- Address: 10.0.0.1
- Proxy:
- DestinationServiceName: service-0
- Expose:
- Checks: true
- Paths: []
- Checks:
- - Name: http-check
- Type: http
- ---
- When I visit the instance page for yaml
- ---
- dc: dc1
- service: service-0-proxy
- node: node-0
- id: service-0-proxy-with-id
- ---
- Then the url should be /dc1/services/service-0-proxy/instances/node-0/service-0-proxy-with-id/service-checks
- And I see serviceChecksIsSelected on the tabs
-
- And I don't see exposedPaths on the tabs
-
- When I click serviceChecks on the tabs
- And I don't see exposed on the serviceChecks
-
- When I click nodeChecks on the tabs
- And I don't see exposed on the nodeChecks
diff --git a/ui-v2/tests/acceptance/dc/services/instances/show.feature b/ui-v2/tests/acceptance/dc/services/instances/show.feature
index d2e9d3e390..36a1de3924 100644
--- a/ui-v2/tests/acceptance/dc/services/instances/show.feature
+++ b/ui-v2/tests/acceptance/dc/services/instances/show.feature
@@ -47,12 +47,6 @@ Feature: dc / services / instances / show: Show Service Instance
Status: critical
---
Scenario: A Service instance has no Proxy
- Given 1 proxy model from yaml
- ---
- - ServiceProxy:
- DestinationServiceName: service-1
- DestinationServiceID: ~
- ---
When I visit the instance page for yaml
---
dc: dc1
@@ -60,16 +54,12 @@ Feature: dc / services / instances / show: Show Service Instance
node: another-node
id: service-0-with-id
---
- Then the url should be /dc1/services/service-0/instances/another-node/service-0-with-id/service-checks
- Then I don't see type on the proxy
+ Then the url should be /dc1/services/service-0/instances/another-node/service-0-with-id/health-checks
Then I see externalSource like "nomad"
And I don't see upstreams on the tabs
- And I see serviceChecksIsSelected on the tabs
+ And I see healthChecksIsSelected on the tabs
And I see 3 of the serviceChecks object
-
- When I click nodeChecks on the tabs
- And I see nodeChecksIsSelected on the tabs
And I see 3 of the nodeChecks object
When I click tags on the tabs
@@ -98,67 +88,6 @@ Feature: dc / services / instances / show: Show Service Instance
node: node-0
id: service-0-with-id
---
- Then the url should be /dc1/services/service-0/instances/node-0/service-0-with-id/service-checks
+ Then the url should be /dc1/services/service-0/instances/node-0/service-0-with-id/health-checks
And an external edit results in 0 instance models
And pause until I see the text "deregistered" in "[data-notification]"
-
- Scenario: A Service instance with a Proxy with only automatically exposed checks but no paths
- Given 1 proxy model from yaml
- ---
- - ServiceProxy:
- DestinationServiceName: service-0
- DestinationServiceID: ~
- Expose:
- Checks: true
- Paths: []
- ---
- When I visit the instance page for yaml
- ---
- dc: dc1
- service: service-0
- node: another-node
- id: service-0-with-id
- ---
- Then the url should be /dc1/services/service-0/instances/another-node/service-0-with-id/service-checks
- And I see serviceChecksIsSelected on the tabs
-
- And I don't see exposedPaths on the tabs
-
- When I click serviceChecks on the tabs
- And I see exposed on the serviceChecks
-
- When I click nodeChecks on the tabs
- And I don't see exposed on the nodeChecks
-
- Scenario: A Service Instance with a Proxy with no automatically exposed checks
- Given 1 proxy model from yaml
- ---
- - ServiceProxy:
- DestinationServiceName: service-0
- DestinationServiceID: ~
- Expose:
- Checks: false
- Paths: []
- ---
- When I visit the instance page for yaml
- ---
- dc: dc1
- service: service-0
- node: another-node
- id: service-0-with-id
- ---
- Then the url should be /dc1/services/service-0/instances/another-node/service-0-with-id/service-checks
- And I see serviceChecksIsSelected on the tabs
-
- And I don't see exposedPaths on the tabs
-
- When I click serviceChecks on the tabs
- And I don't see exposed on the serviceChecks
-
- When I click nodeChecks on the tabs
- And I don't see exposed on the nodeChecks
-
- @ignore
- Scenario: A Service Instance's proxy blocking query is closed when the instance is deregistered
- Then ok
-
diff --git a/ui-v2/tests/acceptance/dc/services/instances/sidecar-proxy.feature b/ui-v2/tests/acceptance/dc/services/instances/sidecar-proxy.feature
deleted file mode 100644
index 6c8f23accc..0000000000
--- a/ui-v2/tests/acceptance/dc/services/instances/sidecar-proxy.feature
+++ /dev/null
@@ -1,30 +0,0 @@
-@setupApplicationTest
-Feature: dc / services / instances / sidecar-proxy: Show Sidecar Proxy Service Instance
- Scenario: A Sidecar Proxy Service instance
- Given 1 datacenter model with the value "dc1"
- And 1 service model from yaml
- ---
- - Service:
- Kind: connect-proxy
- Name: service-0-sidecar-proxy
- ID: service-0-sidecar-proxy-with-id
- Proxy:
- DestinationServiceName: service-0
- DestinationServiceID: service-0-with-id
- ---
- When I visit the instance page for yaml
- ---
- dc: dc1
- service: service-0-sidecar-proxy
- node: node-0
- id: service-0-sidecar-proxy-with-id
- ---
- Then the url should be /dc1/services/service-0-sidecar-proxy/instances/node-0/service-0-sidecar-proxy-with-id/service-checks
- And I see destination on the proxy like "instance"
-
- And I see serviceChecksIsSelected on the tabs
-
- When I click upstreams on the tabs
- And I see upstreamsIsSelected on the tabs
-
-
diff --git a/ui-v2/tests/acceptance/dc/services/instances/with-proxy.feature b/ui-v2/tests/acceptance/dc/services/instances/with-proxy.feature
deleted file mode 100644
index fc0bc45814..0000000000
--- a/ui-v2/tests/acceptance/dc/services/instances/with-proxy.feature
+++ /dev/null
@@ -1,21 +0,0 @@
-@setupApplicationTest
-Feature: dc / services / instances / with-proxy: Show Service Instance with a proxy
- Scenario: A Service instance has a Proxy (no DestinationServiceID)
- Given 1 datacenter model with the value "dc1"
- And 1 proxy model from yaml
- ---
- - ServiceProxy:
- DestinationServiceID: ~
- ---
- When I visit the instance page for yaml
- ---
- dc: dc1
- service: service-0
- node: node-0
- id: service-0-with-id
- ---
- Then the url should be /dc1/services/service-0/instances/node-0/service-0-with-id/service-checks
- And I see type on the proxy like "proxy"
-
- And I see serviceChecksIsSelected on the tabs
- And I don't see upstreams on the tabs
diff --git a/ui-v2/tests/acceptance/dc/services/instances/with-sidecar.feature b/ui-v2/tests/acceptance/dc/services/instances/with-sidecar.feature
deleted file mode 100644
index 53a57743fa..0000000000
--- a/ui-v2/tests/acceptance/dc/services/instances/with-sidecar.feature
+++ /dev/null
@@ -1,42 +0,0 @@
-@setupApplicationTest
-Feature: dc / services / instances / with-sidecar: Show Service Instance with a Sidecar Proxy
- Scenario: A Service instance has a Sidecar Proxy (a DestinationServiceID)
- Given 1 datacenter model with the value "dc1"
- And 1 proxy model from yaml
- ---
- - Node: node-0
- ServiceProxy:
- DestinationServiceID: service-0-with-id
- DestinationServiceName: ~
- ---
- When I visit the instance page for yaml
- ---
- dc: dc1
- service: service-0
- node: node-0
- id: service-0-with-id
- ---
- Then the url should be /dc1/services/service-0/instances/node-0/service-0-with-id/service-checks
- And I see type on the proxy like "sidecar-proxy"
- And I see serviceChecksIsSelected on the tabs
- And I don't see upstreams on the tabs
- Scenario: A Service instance has no Sidecar Proxy (a DestinationServiceID) on the same node
- Given 1 datacenter model with the value "dc1"
- And 1 proxy model from yaml
- ---
- - Node: node-1
- ServiceProxy:
- DestinationServiceID: service-0-with-id
- DestinationServiceName: ~
- ---
- When I visit the instance page for yaml
- ---
- dc: dc1
- service: service-0
- node: node-0
- id: service-0-with-id
- ---
- Then the url should be /dc1/services/service-0/instances/node-0/service-0-with-id/service-checks
- Then I don't see type on the proxy
-
-
diff --git a/ui-v2/tests/pages/dc/services/instance.js b/ui-v2/tests/pages/dc/services/instance.js
index 553c32bc8c..f61e4d144f 100644
--- a/ui-v2/tests/pages/dc/services/instance.js
+++ b/ui-v2/tests/pages/dc/services/instance.js
@@ -1,20 +1,21 @@
export default function(visitable, attribute, collection, text, tabs) {
return {
visit: visitable('/:dc/services/:service/instances/:node/:id'),
- externalSource: attribute('data-test-external-source', 'h1 span'),
+ externalSource: attribute('data-test-external-source', '[data-test-external-source]', {
+ scope: '.title-bar',
+ }),
tabs: tabs('tab', [
- 'service-checks',
- 'node-checks',
+ 'health-checks',
'addresses',
'upstreams',
'exposed-paths',
'tags',
'meta-data',
]),
- serviceChecks: collection('#service-checks [data-test-healthchecks] li', {
+ serviceChecks: collection('[data-test-service-checks] li', {
exposed: attribute('data-test-exposed', '[data-test-exposed]'),
}),
- nodeChecks: collection('#node-checks [data-test-healthchecks] li', {
+ nodeChecks: collection('[data-test-node-checks] li', {
exposed: attribute('data-test-exposed', '[data-test-exposed]'),
}),
upstreams: collection('#upstreams [data-test-tabular-row]', {
@@ -30,9 +31,5 @@ export default function(visitable, attribute, collection, text, tabs) {
address: text('[data-test-address]'),
}),
metaData: collection('#meta-data [data-test-tabular-row]', {}),
- proxy: {
- type: attribute('data-test-proxy-type', '[data-test-proxy-type]'),
- destination: attribute('data-test-proxy-destination', '[data-test-proxy-destination]'),
- },
};
}