2019-03-07 10:51:39 +00:00
|
|
|
export default function(visitable, attribute, collection, text, radiogroup) {
|
|
|
|
return {
|
2019-06-11 09:18:50 +00:00
|
|
|
visit: visitable('/:dc/services/:service/:node/:id'),
|
2019-03-07 10:51:39 +00:00
|
|
|
externalSource: attribute('data-test-external-source', 'h1 span'),
|
|
|
|
tabs: radiogroup('tab', ['service-checks', 'node-checks', 'upstreams', 'tags']),
|
|
|
|
serviceChecks: collection('#service-checks [data-test-healthchecks] li', {}),
|
|
|
|
nodeChecks: collection('#node-checks [data-test-healthchecks] li', {}),
|
|
|
|
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]'),
|
|
|
|
}),
|
|
|
|
proxy: {
|
|
|
|
type: attribute('data-test-proxy-type', '[data-test-proxy-type]'),
|
|
|
|
destination: attribute('data-test-proxy-destination', '[data-test-proxy-destination]'),
|
|
|
|
},
|
|
|
|
};
|
|
|
|
}
|