2020-04-08 09:56:36 +00:00
|
|
|
export default function(visitable, attribute, collection, text, tabs) {
|
2019-03-07 10:51:39 +00:00
|
|
|
return {
|
2020-04-08 09:56:36 +00:00
|
|
|
visit: visitable('/:dc/services/:service/instances/:node/:id'),
|
2020-04-22 14:40:59 +00:00
|
|
|
externalSource: attribute('data-test-external-source', '[data-test-external-source]', {
|
2020-05-07 13:57:15 +00:00
|
|
|
scope: '.title',
|
2020-04-22 14:40:59 +00:00
|
|
|
}),
|
2020-06-03 17:46:20 +00:00
|
|
|
tabs: tabs('tab', ['health-checks', 'proxy-info', 'addresses', 'tags-&-meta']),
|
2020-05-07 13:57:15 +00:00
|
|
|
serviceChecks: collection('[data-test-service-checks] li'),
|
|
|
|
nodeChecks: collection('[data-test-node-checks] li'),
|
|
|
|
upstreams: collection('[data-test-proxy-upstreams] > li', {
|
2019-03-07 10:51:39 +00:00
|
|
|
name: text('[data-test-destination-name]'),
|
|
|
|
}),
|
2020-05-07 13:57:15 +00:00
|
|
|
exposedPaths: collection('[data-test-proxy-exposed-paths] > tbody tr', {
|
2019-11-25 18:45:10 +00:00
|
|
|
combinedAddress: text('[data-test-combined-address]'),
|
|
|
|
}),
|
2020-05-07 13:57:15 +00:00
|
|
|
proxyChecks: collection('[data-test-proxy-checks] li'),
|
2019-07-05 08:07:25 +00:00
|
|
|
addresses: collection('#addresses [data-test-tabular-row]', {
|
|
|
|
address: text('[data-test-address]'),
|
|
|
|
}),
|
2020-06-03 17:46:20 +00:00
|
|
|
metadata: collection('.metadata [data-test-tabular-row]', {}),
|
2019-03-07 10:51:39 +00:00
|
|
|
};
|
|
|
|
}
|