mirror of
https://github.com/status-im/consul.git
synced 2025-01-19 02:03:00 +00:00
b78ef1fee0
* Upgrade consul-api-dobule to version 3.1.3 * Create ConsulInstaceChecks component with test * Redesign: Service Instaces tab in for a Node * Update Node tests to work with the ConsulServiceInstancesList * Style fix to the copy button in the composite-row details * Delete helper and move logic to ConsulInstanceChecks component * Delete unused component consul-node-service-list
28 lines
989 B
JavaScript
28 lines
989 B
JavaScript
export default function(visitable, deletable, clickable, attribute, collection, tabs, text) {
|
|
return {
|
|
visit: visitable('/:dc/nodes/:node'),
|
|
tabs: tabs('tab', [
|
|
'health-checks',
|
|
'service-instances',
|
|
'round-trip-time',
|
|
'lock-sessions',
|
|
'metadata',
|
|
]),
|
|
healthchecks: collection('[data-test-node-healthcheck]', {
|
|
name: attribute('data-test-node-healthcheck'),
|
|
}),
|
|
services: collection('.consul-service-instance-list > ul > li:not(:first-child)', {
|
|
name: text('[data-test-service-name]'),
|
|
port: attribute('data-test-service-port', '[data-test-service-port]'),
|
|
externalSource: attribute('data-test-external-source', '[data-test-external-source]'),
|
|
}),
|
|
sessions: collection(
|
|
'#lock-sessions [data-test-tabular-row]',
|
|
deletable({
|
|
TTL: attribute('data-test-session-ttl', '[data-test-session-ttl]'),
|
|
})
|
|
),
|
|
metadata: collection('#metadata [data-test-tabular-row]', {}),
|
|
};
|
|
}
|