Update catalog mock data for Mode attr

This commit is contained in:
kenia 2021-04-14 17:45:52 -04:00
parent c514664ad1
commit f2d8c6fadf
2 changed files with 2 additions and 2 deletions

View File

@ -58,7 +58,7 @@ as |route|>
</h1>
<Consul::ExternalSource @item={{item}} />
<Consul::Kind @item={{item}} @withInfo={{true}} />
{{#if proxy.ServiceProxy.Mode}}
{{#if (eq proxy.ServiceProxy.Mode 'transparent')}}
<Consul::TransparentProxy />
{{/if}}
</BlockSlot>

View File

@ -49,7 +49,7 @@ ${range(env('CONSUL_EXPOSED_COUNT', 3)).map((i) => `
`)}
]
},
"Mode": ${fake.random.boolean()},
"Mode": "${fake.helpers.randomize(['', 'direct', 'transparent'])}",
"DestinationServiceName": "${location.pathname.slice(4)}"
${ location.pathname.slice(4) === "service-0" ? `
,