2020-12-07 09:14:30 +00:00
|
|
|
export default function(
|
|
|
|
visitable,
|
|
|
|
deletable,
|
|
|
|
clickable,
|
|
|
|
attribute,
|
|
|
|
collection,
|
|
|
|
tabs,
|
|
|
|
text,
|
|
|
|
healthChecks
|
|
|
|
) {
|
2018-07-04 14:06:20 +00:00
|
|
|
return {
|
|
|
|
visit: visitable('/:dc/nodes/:node'),
|
2020-04-08 09:56:36 +00:00
|
|
|
tabs: tabs('tab', [
|
2019-08-02 11:53:52 +00:00
|
|
|
'health-checks',
|
2020-07-01 14:27:29 +00:00
|
|
|
'service-instances',
|
2019-08-02 11:53:52 +00:00
|
|
|
'round-trip-time',
|
|
|
|
'lock-sessions',
|
2020-05-04 18:06:25 +00:00
|
|
|
'metadata',
|
2019-08-02 11:53:52 +00:00
|
|
|
]),
|
2020-12-07 09:14:30 +00:00
|
|
|
healthChecks: healthChecks(),
|
2020-07-01 14:27:29 +00:00
|
|
|
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]'),
|
2018-07-04 14:06:20 +00:00
|
|
|
}),
|
2020-08-20 14:29:16 +00:00
|
|
|
sessions: collection('.consul-lock-session-list [data-test-list-row]', {
|
|
|
|
TTL: attribute('data-test-session-ttl', '[data-test-session-ttl]'),
|
|
|
|
delay: text('[data-test-session-delay]'),
|
|
|
|
actions: clickable('label'),
|
|
|
|
...deletable(),
|
|
|
|
}),
|
2020-05-04 18:06:25 +00:00
|
|
|
metadata: collection('#metadata [data-test-tabular-row]', {}),
|
2018-07-04 14:06:20 +00:00
|
|
|
};
|
|
|
|
}
|