mirror of
https://github.com/status-im/consul.git
synced 2025-01-10 13:55:55 +00:00
ui: tags, service fixture changes
This commit is contained in:
parent
03138104b9
commit
b7591880dd
@ -86,6 +86,9 @@
|
||||
{{#if model}}
|
||||
<h2 class="no-margin">{{ model.1.ServiceName }}</h2>
|
||||
<hr>
|
||||
<h5>Tags</h5>
|
||||
<p>Pending...</p>
|
||||
|
||||
<h5>Nodes</h5>
|
||||
|
||||
{{#each node in model }}
|
||||
|
@ -8,6 +8,10 @@
|
||||
|
||||
window.fixtures = {}
|
||||
|
||||
//
|
||||
// The array route, i.e /ui/services, should return _all_ services
|
||||
// in the DC
|
||||
//
|
||||
fixtures.services = [
|
||||
{
|
||||
"Name": "vagrant-cloud-http",
|
||||
@ -53,12 +57,17 @@ fixtures.services = [
|
||||
},
|
||||
]
|
||||
|
||||
// This is both of the fixture services full response. We
|
||||
// would just expect one of these, inside of the top level
|
||||
// key. We require that key just for the fixture lookup.
|
||||
//
|
||||
// This one is slightly more complicated to allow more UI interaction.
|
||||
// It represents the route /ui/services/<service> BUT it's what is
|
||||
// BELOW the top-level key.
|
||||
//
|
||||
// So, what is actually returned should be similar to the /catalog/service/<service>
|
||||
// endpoint.
|
||||
fixtures.services_full = {
|
||||
"vagrant-cloud-http": [
|
||||
// A node
|
||||
"vagrant-cloud-http":
|
||||
// This array is what is actually expected from the API.
|
||||
[
|
||||
{
|
||||
"ServicePort": 80,
|
||||
"ServiceTags": null,
|
||||
|
Loading…
x
Reference in New Issue
Block a user