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]', {
|
|
|
|
scope: '.title-bar',
|
|
|
|
}),
|
2020-04-08 09:56:36 +00:00
|
|
|
tabs: tabs('tab', [
|
2020-04-22 14:40:59 +00:00
|
|
|
'health-checks',
|
2019-08-02 11:53:52 +00:00
|
|
|
'addresses',
|
|
|
|
'upstreams',
|
2019-11-25 18:45:10 +00:00
|
|
|
'exposed-paths',
|
2019-08-02 11:53:52 +00:00
|
|
|
'tags',
|
2020-05-04 18:06:25 +00:00
|
|
|
'metadata',
|
2019-08-02 11:53:52 +00:00
|
|
|
]),
|
2020-04-22 14:40:59 +00:00
|
|
|
serviceChecks: collection('[data-test-service-checks] li', {
|
2019-11-25 18:45:10 +00:00
|
|
|
exposed: attribute('data-test-exposed', '[data-test-exposed]'),
|
|
|
|
}),
|
2020-04-22 14:40:59 +00:00
|
|
|
nodeChecks: collection('[data-test-node-checks] li', {
|
2019-11-25 18:45:10 +00:00
|
|
|
exposed: attribute('data-test-exposed', '[data-test-exposed]'),
|
|
|
|
}),
|
2019-03-07 10:51:39 +00:00
|
|
|
upstreams: collection('#upstreams [data-test-tabular-row]', {
|
|
|
|
name: text('[data-test-destination-name]'),
|
|
|
|
datacenter: text('[data-test-destination-datacenter]'),
|
|
|
|
type: text('[data-test-destination-type]'),
|
|
|
|
address: text('[data-test-local-bind-address]'),
|
|
|
|
}),
|
2019-11-25 18:45:10 +00:00
|
|
|
exposedPaths: collection('#exposed-paths [data-test-tabular-row]', {
|
|
|
|
combinedAddress: text('[data-test-combined-address]'),
|
|
|
|
}),
|
2019-07-05 08:07:25 +00:00
|
|
|
addresses: collection('#addresses [data-test-tabular-row]', {
|
|
|
|
address: text('[data-test-address]'),
|
|
|
|
}),
|
2020-05-04 18:06:25 +00:00
|
|
|
metadata: collection('#metadata [data-test-tabular-row]', {}),
|
2019-03-07 10:51:39 +00:00
|
|
|
};
|
|
|
|
}
|