2020-04-08 09:56:36 +00:00
|
|
|
export default function(visitable, deletable, clickable, attribute, collection, tabs) {
|
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',
|
|
|
|
'services',
|
|
|
|
'round-trip-time',
|
|
|
|
'lock-sessions',
|
2020-05-04 18:06:25 +00:00
|
|
|
'metadata',
|
2019-08-02 11:53:52 +00:00
|
|
|
]),
|
2018-07-04 14:06:20 +00:00
|
|
|
healthchecks: collection('[data-test-node-healthcheck]', {
|
|
|
|
name: attribute('data-test-node-healthcheck'),
|
|
|
|
}),
|
|
|
|
services: collection('#services [data-test-tabular-row]', {
|
2018-07-12 12:35:33 +00:00
|
|
|
id: attribute('data-test-service-id', '[data-test-service-id]'),
|
2018-07-12 13:46:56 +00:00
|
|
|
name: attribute('data-test-service-name', '[data-test-service-name]'),
|
2018-07-04 14:06:20 +00:00
|
|
|
port: attribute('data-test-service-port', '.port'),
|
2018-09-12 19:23:39 +00:00
|
|
|
externalSource: attribute('data-test-external-source', 'a span'),
|
2018-07-04 14:06:20 +00:00
|
|
|
}),
|
|
|
|
sessions: collection(
|
|
|
|
'#lock-sessions [data-test-tabular-row]',
|
|
|
|
deletable({
|
|
|
|
TTL: attribute('data-test-session-ttl', '[data-test-session-ttl]'),
|
|
|
|
})
|
|
|
|
),
|
2020-05-04 18:06:25 +00:00
|
|
|
metadata: collection('#metadata [data-test-tabular-row]', {}),
|
2018-07-04 14:06:20 +00:00
|
|
|
};
|
|
|
|
}
|