mirror of
https://github.com/status-im/consul.git
synced 2025-02-03 09:24:25 +00:00
ui: Never respond with empty gateway addresses (mock-api) (#10035)
We noticed that our mock API would sometimes respond with an empty array of addresses - which resulted in an empty space in the gateway upstream listing which looked as though it could be broken. I checked with backend, and as this will never happen, I made the change here also so the gateway upstream list is always fully populated with addresses.
This commit is contained in:
parent
76b2122f38
commit
f33feeeec4
@ -56,7 +56,7 @@ ${ fake.random.number({min: 1, max: 10}) > 2 ? `
|
|||||||
"GatewayConfig": {
|
"GatewayConfig": {
|
||||||
"Addresses": [
|
"Addresses": [
|
||||||
${
|
${
|
||||||
range(fake.random.number(6)).map(
|
range(fake.random.number({min: 1, max: 7)).map(
|
||||||
function(item, i)
|
function(item, i)
|
||||||
{
|
{
|
||||||
return `"${fake.random.number({min: 1, max: 10}) > 8 ? `*.`: ``}${fake.internet.domainName()}:${fake.random.number({min: 0, max: 65535})}"`;
|
return `"${fake.random.number({min: 1, max: 10}) > 8 ? `*.`: ``}${fake.internet.domainName()}:${fake.random.number({min: 0, max: 65535})}"`;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user